Thursday 5 November 2015

CISCO SWITCH ADMIN PART-1 (MDS 9148 switch firmware up gradation/administration)


FIRMWARE UPGRADATION OF CISCO MDS 9148 SWITCH

# ssh admin@(IP OF SWITCH)
Password:
Cisco Nexus Operating System (NX-OS) Software

1)To show vesion
EDGESWITCH# show version

Software
  BIOS:      version 1.0.18
  loader:    version N/A
  kickstart: version 5.0(1a)
  system:    version 5.0(1a)
  BIOS compile time:       01/07/10
  kickstart image file is: bootflash:/m9100-s3ek9-kickstart-mz.5.0.1a.bin
  kickstart compile time:  12/25/2020 12:00:00 [02/21/2010 20:09:44]
  system image file is:    bootflash:/m9100-s3ek9-mz.5.0.1a.bin
  system compile time:     2/2/2010 17:00:00 [02/21/2010 23:13:41]

Hardware
  cisco MDS 9148 FC (1 Slot) Chassis ("1/2/4/8 Gbps FC/Supervisor-3")
  Motorola, e500v2  with 1036308 kB of memory.
  Processor Board ID JAF1642ANFC
  Device name: IDC1-SW05
  bootflash:    1000944 kB
Kernel uptime is 0 day(s), 2 hour(s), 29 minute(s), 4 second(s)
Last reset
  Reason: Unknown
  System version: 5.0(1a)
  Service:
EDGESWITCH# dir bootflash:
        950    Oct 21 23:04:07 2012  license_AMS16350858_15.lic
      16384    Oct 21 22:59:21 2012  lost+found/
   18693120    Oct 21 23:00:58 2012  m9100-s3ek9-kickstart-mz.5.0.1a.bin
   73579433    Oct 21 23:03:36 2012  m9100-s3ek9-mz.5.0.1a.bin
       2085    Oct 11 06:06:04 2013  mts.log
Usage for bootflash://sup-local
  143601664 bytes used
  533508096 bytes free
  677109760 bytes total
2)copy Firmware files (m9100-s3ek9-mz.6.2.3.bin & m9100-s3ek9-kickstart-mz.6.2.3.bin)
EDGESWITCH# copy ftp://<SERVERIP>/tmp/nos/9148/m9100-s3ek9-mz.6.2.3.bin  bootflash:
Enter username: sap
Password:

EDGESWITCH# dir bootflash:
        950    Oct 21 23:04:07 2012  license_AMS16350858_15.lic
      16384    Oct 21 22:59:21 2012  lost+found/
   18693120    Oct 21 23:00:58 2012  m9100-s3ek9-kickstart-mz.5.0.1a.bin
   19984384    Oct 11 08:36:34 2013  m9100-s3ek9-kickstart-mz.6.2.3.bin
   73579433    Oct 21 23:03:36 2012  m9100-s3ek9-mz.5.0.1a.bin
   73345328    Oct 11 08:37:10 2013  m9100-s3ek9-mz.6.2.3.bin
       2085    Oct 11 06:06:04 2013  mts.log
Usage for bootflash://sup-local
  237035520 bytes used
  440074240 bytes free
  677109760 bytes total


3)upgrade switches

# install all kickstart bootflash:m9100-s3ek9-kickstart-mz.6.2.3.bin system bootflash:m9100-s3ek9-mz.6.2.3.bin

Verifying image bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin for boot variable "kickstart".
[####################] 100% -- SUCCESS
Verifying image bootflash:/m9100-s3ek9-mz.6.2.3.bin for boot variable "system".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Extracting "system" version from image bootflash:/m9100-s3ek9-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Extracting "kickstart" version from image bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Extracting "bios" version from image bootflash:/m9100-s3ek9-mz.6.2.3.bin.
[#                   ]   0%                                                    [####################] 100% -- SUCCESS
Performing Compact Flash and TCAM sanity test.
[####################] 100% -- SUCCESS
Performing module support checks.                                              [####################] 100% -- SUCCESS
Notifying services about system upgrade.                                       [####################] 100% -- SUCCESS

Compatibility check is done:
Module  bootable          Impact  Install-type  Reason
------  --------  --------------  ------------  ------
     1       yes  non-disruptive         reset

Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1      system                                   5.0(1a)                6.2(3)           yes
     1   kickstart                                   5.0(1a)                6.2(3)           yes
     1        bios     v1.0.18(01/07/10):  v1.0.18(01/07/10)     v1.0.19(02/01/10)           yes

Do you want to continue with the installation (y/n)?  [n]

EDGESWITCH# install all kickstart bootflash:m9100-s3ek9-kickstart-mz.6.2.3.bin system bootflash:m9100-s3ek9-mz.6.2.3.bin
Verifying image bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin for boot variable "kickstart".
[####################] 100% -- SUCCESS
Verifying image bootflash:/m9100-s3ek9-mz.6.2.3.bin for boot variable "system".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Extracting "system" version from image bootflash:/m9100-s3ek9-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Extracting "kickstart" version from image bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Extracting "bios" version from image bootflash:/m9100-s3ek9-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Performing Compact Flash and TCAM sanity test.
[####################] 100% -- SUCCESS
Performing module support checks.                                              [####################] 100% -- SUCCESS
Notifying services about system upgrade.                                       [####################] 100% -- SUCCESS

Compatibility check is done:
Module  bootable          Impact  Install-type  Reason
------  --------  --------------  ------------  ------
     1       yes  non-disruptive         reset

Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1      system                                   5.0(1a)                6.2(3)           yes
     1   kickstart                                   5.0(1a)                6.2(3)           yes
     1        bios     v1.0.18(01/07/10):  v1.0.18(01/07/10)     v1.0.19(02/01/10)           yes

Do you want to continue with the installation (y/n)?  [n] y
Install is in progress, please wait.
Performing runtime checks.                                                     [####################] 100% -- SUCCESS
Notifying services about the upgrade.                                          [####################] 100% -- SUCCESS
Setting boot variables.
[####################] 100% -- SUCCESS
Performing configuration copy.
[####################] 100% -- SUCCESS
Module 1: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Upgrade can no longer be aborted, any failure will result in a disruptive upgrade.
Freeing memory in the file system.                                             [####################] 100% -- SUCCESS
Loading images into memory.                                                    [####################] 100% -- SUCCESS
Saving linecard runtime state.                                                 [####################] 100% -- SUCCESS
Saving supervisor runtime state.                                               [####################] 100% -- SUCCESS
Saving mts state.                                                              [####################] 100% -- SUCCESS
Rebooting the switch to proceed with the upgrade.

# ssh admin@xx.xx.xx.xx

Password:
EDGESWITCH# show version

Software
  BIOS:      version 1.0.19
  loader:    version N/A
  kickstart: version 6.2(3)
  system:    version 6.2(3)
  BIOS compile time:       02/01/10
  kickstart image file is: bootflash:///m9100-s3ek9-kickstart-mz.6.2.3.bin
  kickstart compile time:  7/10/2013 2:00:00 [07/31/2013 10:05:08]
  system image file is:    bootflash:///m9100-s3ek9-mz.6.2.3.bin
  system compile time:     7/10/2013 2:00:00 [07/31/2013 11:15:29]

Hardware
  cisco MDS 9148 FC (1 Slot) Chassis ("1/2/4/8 Gbps FC/Supervisor-3")
  Motorola, e500v2  with 1036300 kB of memory.
  Processor Board ID JAF1642ANFC
  Device name: IDC1-SW05
  bootflash:    1000944 kB
Kernel uptime is 0 day(s), 0 hour(s), 2 minute(s), 44 second(s)
Last reset at 431992 usecs after  Fri Oct 11 08:45:32 2013
  Reason: Reset due to upgrade
  System version: 5.0(1a)
  Service:
IDC1-SW05#
IDC1-SW05# reload
This command will reboot the system. (y/n)?  [n] y
Read from remote host 10.128.38.55: Connection reset by peer
Connection to 10.128.38.55 closed.
sap@P072XSTRMG # ssh admin@xx.xx.xx.xx
Could not create directory '/home/sap/.ssh'.
The authenticity of host '10.128.38.55 (10.128.38.55)' can't be established.
RSA key fingerprint is a8:ab:9b:b0:39:a8:15:03:c2:ee:76:73:96:09:14:4f.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/sap/.ssh/known_hosts).
User Access Verification
Password:
Cisco Nexus Operating System (NX-OS) Software
Copyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at

IDC1-SW05#
IDC1-SW05# show version
Cisco Nexus Operating System (NX-OS) Software
Copyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software are covered under the GNU Public
License. A copy of the license is available at
Software
  BIOS:      version 1.0.19
  loader:    version N/A
  kickstart: version 6.2(3)
  system:    version 6.2(3)
  BIOS compile time:       02/01/10
  kickstart image file is: bootflash:///m9100-s3ek9-kickstart-mz.6.2.3.bin
  kickstart compile time:  7/10/2013 2:00:00 [07/31/2013 10:05:08]
  system image file is:    bootflash:///m9100-s3ek9-mz.6.2.3.bin
  system compile time:     7/10/2013 2:00:00 [07/31/2013 11:15:29]

Hardware
  cisco MDS 9148 FC (1 Slot) Chassis ("1/2/4/8 Gbps FC/Supervisor-3")
  Motorola, e500v2  with 1036300 kB of memory.
  Processor Board ID JAF1642ANFC
  Device name: IDC1-SW05
  bootflash:    1000944 kB
Kernel uptime is 0 day(s), 0 hour(s), 2 minute(s), 7 second(s)
Last reset at 856438 usecs after  Fri Oct 11 08:49:19 2013
  Reason: Reset Requested by CLI command reload
  System version: 6.2(3)
  Service:


===============
1.To SHOW MODULE:-
IDC1-CSW02# show module
Mod  Ports  Module-Type                         Model              Status
---  -----  ----------------------------------- ------------------ ----------
1    32     1/2/4/8/10 Gbps Advanced FC Module  DS-X9232-256K9     ok
2    32     1/2/4/8/10 Gbps Advanced FC Module  DS-X9232-256K9     ok
3    32     1/2/4/8/10 Gbps Advanced FC Module  DS-X9232-256K9     ok
4    32     1/2/4/8/10 Gbps Advanced FC Module  DS-X9232-256K9     ok
7    0      Supervisor/Fabric-2a                DS-X9530-SF2AK9    active *
8    0      Supervisor/Fabric-2a                DS-X9530-SF2AK9    ha-standby
Mod  Sw              Hw      World-Wide-Name(s) (WWN)
---  --------------  ------  --------------------------------------------------
1    6.2(3)          1.1     20:01:54:7f:ee:af:95:40 to 20:20:54:7f:ee:af:95:40
2    6.2(3)          1.1     20:41:54:7f:ee:af:95:40 to 20:60:54:7f:ee:af:95:40
3    6.2(3)          1.1     20:81:54:7f:ee:af:95:40 to 20:a0:54:7f:ee:af:95:40
4    6.2(3)          1.1     20:c1:54:7f:ee:af:95:40 to 20:e0:54:7f:ee:af:95:40
7    6.2(3)          1.4     --
8    6.2(3)          1.4     --

Mod  MAC-Address(es)                         Serial-Num
---  --------------------------------------  ----------
1    68-ef-bd-a8-da-dc to 68-ef-bd-a8-da-df  JAF1723AABS
2    68-ef-bd-a8-db-44 to 68-ef-bd-a8-db-47  JAF1723AADD
3    68-ef-bd-a8-db-38 to 68-ef-bd-a8-db-3b  JAF1723AACA
4    68-ef-bd-a8-da-a0 to 68-ef-bd-a8-da-a3  JAF1723AABA
7    c8-9c-1d-41-d3-3c to c8-9c-1d-41-d3-3f  JAF1722BFSF
8    c8-9c-1d-41-d3-2c to c8-9c-1d-41-d3-2f  JAF1723ACAK
Xbar Ports  Module-Type                         Model              Status
---  -----  ----------------------------------- ------------------ ----------
1    0      Fabric Module 3                     DS-13SLT-FAB3      ok
2    0      Fabric Module 3                     DS-13SLT-FAB3      ok
Xbar Sw              Hw      World-Wide-Name(s) (WWN)
---  --------------  ------  --------------------------------------------------
1    NA              1.4     --
2    NA              1.4     --

Xbar MAC-Address(es)                         Serial-Num
---  --------------------------------------  ----------
1    NA                                      JAF1721ANEA
2    NA                                      JAF1721ANGN
* this terminal session

edge switch:-
IDC1-SW06# show module
Mod  Ports  Module-Type                         Model              Status
---  -----  ----------------------------------- ------------------ ----------
1    48     1/2/4/8 Gbps FC/Supervisor-3        DS-C9148-K9-SUP    active *
Mod  Sw              Hw      World-Wide-Name(s) (WWN)
---  --------------  ------  --------------------------------------------------
1    6.2(3)          1.1     20:01:54:7f:ee:b8:08:d8 to 20:30:54:7f:ee:b8:08:d8

Mod  MAC-Address(es)                         Serial-Num
---  --------------------------------------  ----------
1    30-f7-0d-c9-8b-c8 to 30-f7-0d-c9-8b-cb  JAF1642ANJH
* this terminal session

===========================================
2)To see the interface information
IDC1-CSW02(config)# show interface
fc1/1 is up
    Hardware is Fibre Channel, SFP is short wave laser w/o OFC (SN)
    Port WWN is 20:01:54:7f:ee:af:95:40
    Admin port mode is FX, trunk mode is on
    snmp link state traps are enabled
    Port mode is F, FCID is 0x090000
    Port vsan is 20
    Speed is 8 Gbps
    Rate mode is shared
    Transmit B2B Credit is 20
    Receive B2B Credit is 32
    Receive data field Size is 2112
    Beacon is turned off
    5 minutes input rate 4314112 bits/sec,539264 bytes/sec, 266 frames/sec
    5 minutes output rate 24544 bits/sec,3068 bytes/sec, 59 frames/sec
      128838407 frames input,164820321624 bytes
        0 discards,0 errors
        0 invalid CRC/FCS,0 unknown class
        0 too long,0 too short
      420867885 frames output,810133110612 bytes
        0 discards,0 errors
      0 input OLS,0  LRR,0 NOS,0 loop inits
      1 output OLS,1 LRR, 0 NOS, 1 loop inits
      32 receive B2B credit remaining
      20 transmit B2B credit remaining
      20 low priority transmit B2B credit remaining
    Interface last changed at Fri Nov 15 09:47:29 2013
    Last clearing of "show interface" counters  :never
similarly it shows all switch ports
=============================================================
3)to show all switch interfaces information breafly
IDC1-CSW02(config)# show interface brief
-------------------------------------------------------------------------------
Interface  Vsan   Admin  Admin   Status       SFP    Oper  Oper   Port
                  Mode   Trunk                       Mode  Speed  Channel
                         Mode                              (Gbps)
-------------------------------------------------------------------------------
fc1/1      20     FX     on      up           swl   F      8      --
fc1/2      20     FX     on      up           swl   F      8      --
fc1/3      20     FX     on      up           swl   F      8      --
fc1/4      20     FX     on      up           swl   F      8      --
fc1/5      20     FX     on      up           swl   F      8      --
fc1/6      20     FX     on      up           swl   F      8      --
fc1/7      20     auto   on      trunking     swl   TE     8      --
;
;
;
fc1/12     20     FX     on      notConnected swl    --    --     --
;
;
fc1/23     20     auto   on      trunking     swl   TE     8      --
fc1/24     20     auto   on      trunking     swl   TE     8      --
;
;
fc4/23     20     auto   on      trunking     swl   TE     8      --
fc4/24     20     auto   on      trunking     swl   TE     8      --
fc4/25     20     FX     on      up           swl   F      8      --
fc4/26     20     FX     on      notConnected swl    --    --     --
fc4/27     20     FX     on      up           swl   F      8      --
fc4/28     20     FX     on      notConnected swl    --    --     --
fc4/29     20     FX     on      up           swl   F      8      --
fc4/30     20     FX     on      notConnected swl    --    --     --
fc4/31     20     FX     on      up           swl   F      8      --
fc4/32     20     FX     on      notConnected swl    --    --     --
-------------------------------------------------------------------------------
Interface                Status                            Speed
                                                           (Gbps)
-------------------------------------------------------------------------------
sup-fc0                  up                                1
-------------------------------------------------------------------------------
Interface               Status     IP Address         Speed     MTU
-------------------------------------------------------------------------------
mgmt0                    up         10.128.38.50/27    1 Gbps   1500

========================================================

4)to show version of switch
IDC1-CSW02(config)# show version

Software
  BIOS:      version 1.0.10
  loader:    version N/A
  kickstart: version 6.2(3)
  system:    version 6.2(3)
  BIOS compile time:       01/08/09
  kickstart image file is: bootflash:///m9500-sf2ek9-kickstart-mz.6.2.3.bin
  kickstart compile time:  7/10/2013 2:00:00 [07/31/2013 10:05:06]
  system image file is:    bootflash:///m9500-sf2ek9-mz.6.2.3.bin
  system compile time:     7/10/2013 2:00:00 [07/31/2013 11:31:55]

Hardware
  cisco MDS 9513 (13 Slot) Chassis ("Supervisor/Fabric-2a")
  Motorola, 7447A, altivec  with 2071288 kB of memory.
  Processor Board ID JAF1722BFSF
  Device name: IDC1-CSW02
  bootflash:    1000944 kB
  slot0:              0 kB (expansion flash)
Kernel uptime is 14 day(s), 0 hour(s), 25 minute(s), 57 second(s)
Last reset at 232586 usecs after  Fri Nov 15 09:41:51 2013
  Reason: Reset Requested by CLI command reload
  System version: 6.2(3)
  Service:
plugin
  Core Plugin


5)How to change switch port speed
IDC1-CSW02(config)# interface fc3/15
IDC1-CSW02(config-if)# show interface fc3/15
fc3/15 is up
    Hardware is Fibre Channel, SFP is short wave laser w/o OFC (SN)
    Port WWN is 20:8f:54:7f:ee:af:95:40
    Admin port mode is FX, trunk mode is on
    snmp link state traps are enabled
    Port mode is F, FCID is 0x0904a0
    Port vsan is 20
    Speed is 8 Gbps
    Rate mode is shared
    Transmit B2B Credit is 20
    Receive B2B Credit is 32
    Receive data field Size is 2112
    Beacon is turned off
    5 minutes input rate 0 bits/sec,0 bytes/sec, 0 frames/sec
    5 minutes output rate 0 bits/sec,0 bytes/sec, 0 frames/sec
      13 frames input,1132 bytes
        0 discards,0 errors
        0 invalid CRC/FCS,0 unknown class
        0 too long,0 too short
      13 frames output,896 bytes
        0 discards,0 errors
      0 input OLS,0  LRR,0 NOS,0 loop inits
      1 output OLS,1 LRR, 0 NOS, 1 loop inits
      32 receive B2B credit remaining
      20 transmit B2B credit remaining
      20 low priority transmit B2B credit remaining
    Interface last changed at Fri Nov 15 09:47:32 2013
    Last clearing of "show interface" counters  :never
IDC1-CSW02(config-if)# show interface fc3/15 brief
-------------------------------------------------------------------------------
Interface  Vsan   Admin  Admin   Status       SFP    Oper  Oper   Port
                  Mode   Trunk                       Mode  Speed  Channel
                         Mode                              (Gbps)
-------------------------------------------------------------------------------
fc3/15     20     FX     on      up           swl   F      8      --
IDC1-CSW02(config-if)# switchport speed 4000
IDC1-CSW02(config-if)# show interface fc3/15 brief
-------------------------------------------------------------------------------
Interface  Vsan   Admin  Admin   Status       SFP    Oper  Oper   Port
                  Mode   Trunk                       Mode  Speed  Channel
                         Mode                              (Gbps)
-------------------------------------------------------------------------------
fc3/15     20     FX     on      up           swl   F      4      --
IDC1-CSW02(config-if)# switchport speed auto
IDC1-CSW02(config-if)# show interface fc3/15 brief
-------------------------------------------------------------------------------
Interface  Vsan   Admin  Admin   Status       SFP    Oper  Oper   Port
                  Mode   Trunk                       Mode  Speed  Channel
                         Mode                              (Gbps)
-------------------------------------------------------------------------------
fc3/15     20     FX     on      up           swl   F      8      --


6)PORT MODES
  FC port have only one mode at a time
  16 prot blade/slot default mode is AUTO
  32 port blade/slot default mode is FX
modes:-
i)E  --> used for expansion of fabric i.e one end of ISL
ii)F --> used for host/san i.e end devices
iii)N --> for end devices side
iv)FL --> for loop devices
v)Fx  --> for
vi)G  -->generic port
vii)SD 
iix)St
ix)TL
x)U


No comments:

Post a Comment