Conversion on Supervisor Engine 720

From NesevoWiki
Jump to navigationJump to search

This section uses this terminology:

   *
     Switch Processor (SP)—Refers to the switch component of the system or Supervisor Engine.
   *
     Route Processor (RP)—Refers to the router component of the system or MSFC3.

Note: The images that this document uses are for example purposes only. Replace the images with the images that you use in your switch environment. Make sure to refer to the Catalyst 6500 Series Release Notes for memory and ROMmon requirements.

Step 1

Establish a console connection to the SP.

Log your console session as a best practice. The log enables you to capture a record of the session and compare the log to the steps in this document, if you need to troubleshoot. For example, in HyperTerminal, choose Transfer > Capture Text in order to log a console session. Refer to Connecting a Terminal to the Console Port on Catalyst Switches for more information.

Step 2

Back up the CatOS configuration from the Supervisor Engine and the Cisco IOS Software configuration from the MSFC3.

You need to reconfigure the switch after you convert to Cisco IOS Software as the system software because the conversion process loses the configuration. If you back up the files, they can serve as a reference after the conversion or as a backup if you decide to convert back to CatOS. Issue the copy config tftp command on the Supervisor Engine and the copy start tftp command on the MSFC3 in order to back up the configurations.

Refer to Managing Software Images and Working with Configuration Files on Catalyst Switches for more information on how to use the copy config tftp and copy start tftp commands to back up configuration files.

Step 3

Verify that the Cisco IOS Software image (s720xy*) is available on the SP bootflash or a CompactFlash card in disk0 or disk1.

Issue the dir command in order to verify the location of the Cisco IOS Software image (s720xy*).

   Console> (enable) dir bootflash:
   -#- -length- -----date/time------ name
     1 13389508 Jul 11 2003 15:46:45 cat6000-sup720k8.8-1-1.bin
   !--- This is the SP bootflash and the location for the current
   !--- CatOS software version that runs on the SP.
      
   52059424 bytes available (13476576 bytes used)
   Console> (enable) dir disk0:
     2   -rw-  32983632    Nov 01 2003 14:33:05 s72033-psv-mz.122-14.SX1.bin
   !--- This is the CompactFlash Type II device with the name disk0:.
   !--- This is the Cisco IOS Software image (s720xy*) release for this conversion.
   95641600 bytes available (32985088 bytes used)
   Console> (enable)

If the Cisco IOS Software image (s720xy*) is missing from either bootflash: or disk0: or disk1:, download the image. Step 4 provides this procedure. If the image is present, go to Step 5. Step 4 (Optional)

Complete this step only if the Cisco IOS Software image (s720xy*) is missing from either the SP bootflash or the PC card in slot0. See Step 3 in order to determine if you need to complete this step.

Issue the copy tftp bootflash: command, the copy tftp disk0: command, or the copy tftp disk1: command in order to download the image to either the SP bootflash or to one of the flash cards.

Note: You might need to format the CompactFlash if it has never been used before or if it was formatted with the Cisco IOS Software algorithm. Issue the format disk0: command or the format disk1: command or both commands in order to format CompactFlash on a Supervisor Engine 720.

Note: You can free up space as necessary on either of these devices. Issue the delete bootflash: command, the delete disk0: command, or the delete disk1:filename command in order to delete the file. Then, issue the squeeze bootflash: command, the squeeze disk0: command, or the squeeze disk1: command in order to erase all deleted files from the device.

   Console> (enable) copy tftp disk0:
   IP address or name of remote host []? 10.1.1.2
   Name of file to copy from []? s72033-psv-mz.122-14.SX1.bin
   128626688 bytes available on device disk0, proceed (y/n) [n]? y
   /
   File has been copied successfully.
   Console> (enable)
   !--- Verify the image location.
   Console> (enable) dir disk0:
         2   -rw-  32983632    Nov 01 2003 14:33:05 s72033-psv-mz.122-14.SX1.bin
   95641600 bytes available (32985088 bytes used)
   Console> (enable)

Step 5

Issue either the switch console or the session module command in order to access the RP.

   Console> (enable) switch console
   Trying Router-15...
   Connected to Router-15.
   Type ^C^C^C to switch back...
   Router>
   !--- Issue the enable command in order to enter privileged EXEC mode.
   Router>enable
   Router#

Step 6

Change the configuration register setting in order to put the switch into ROMmon on reload.

Issue the show bootvar command in order to check the current configuration register setting.

   Router#show bootvar
   BOOT variable = bootflash:c6msfc3-jsv-mz.122-14.SX2,1
   CONFIG_FILE variable does not exist
   BOOTLDR variable does not exist
   Configuration register is 0x2102
   !---This is the current configuration register value.
   Router#
   Router#configure terminal
   Enter configuration commands, one per line. End with CNTL/Z.
   Router(config)#config-register 0x0
   !--- This changes the configuration register value of the router.
   Router(config)#end
   Router#

Verify the new configuration register setting:

   Router#show bootvar
   BOOT variable = bootflash:c6msfc3-jsv-mz.122-14.SX2,1
   CONFIG_FILE variable does not exist
   BOOTLDR variable does not exist
   Configuration register is 0x2102(will be 0x0 at next reload)
   Router#

Then, reload the router:

   Router#reload
   !--- Press Enter or Return.
   !--- This reloads the router.
   System configuration has been modified. Save? [yes/no]: no
   !--- Press Enter or Return.


   Proceed with reload? [confirm]


   !--- Press Enter or Return.


   System Bootstrap, Version 12.2(17r)S2, RELEASE SOFTWARE (fc1)
   TAC Support: http://www.cisco.com/tac
   Copyright (c) 2004 by cisco Systems, Inc.
   Cat6k-Sup720/RP platform with 524288 Kbytes of main memory
   !--- After this step is complete, the switch enters into RP ROMmon.
   rommon 1 >

Step 7

Erase NVRAM for the CatOS system software region in order to prevent any corrupted files from passing during this conversion. Then, change the configuration register back to the default.

   rommon 1 > priv
   !--- Press Enter or Return.
   !--- You have entered ROMmon privileged mode.
   !--- This output displays:
   You now have access to the full set of monitor commands.
   Warning: some commands will allow you to destroy your
   configuration and/or system images and could render
   the machine unbootable.
   !--- Issue the fill command from ROMmon privileged mode.
   rommon 2 > fill
   !--- Press Enter or Return.
   !--- Be sure to enter these parameters exactly as they appear here:


   Enter in hex the start address [0x0]: be000000
   !--- Press Enter or Return.
   Enter in hex the test size or length in bytes [0x0]: 80000
   !--- Press Enter or Return.
   Enter in hex the pattern to be written [0x0]: ffff
   !--- Press Enter or Return.
   Enter the operation size 'l'ong, 'w'ord, or 'b'yte []: l
   !--- Press Enter or Return.
   !--- After the NVRAM erase has completed, issue the reset command.
   rommom 3 > reset
   !--- Press Enter or Return.
   rommon 1 > confreg 0x2102
   !--- Press Enter or Return.

Step 8

In order to go back to the SP, press Ctrl-C three times:


   !--- Press Ctrl-C three times.
   rommon 2 > ^C
   rommon 2 > ^C
   rommon 2 > ^C
   Console> (enable) 
   !--- This is the SP console prompt.
    

Step 9

Change the configuration register setting on the SP so that the switch does not boot the CatOS image and goes to ROMmon.

   Console> (enable) set boot config-register 0x0
   Configuration register is 0x0
   ignore-config: disabled
   auto-config: non-recurring, overwrite, sync disabled
   console baud: 9600
   boot: the ROM monitor
   Console> (enable)
   !--- Verify the settings.
   Console> (enable) show boot
   BOOT variable = bootflash:cat6000-sup720k8.8-1-1.bin,1;
   CONFIG_FILE variable = bootflash:switch.cfg
   Configuration register is 0x0
   ignore-config: disabled
   auto-config: non-recurring, overwrite, sync disabled
   console baud: 9600
   boot: the ROM monitor
   Console> (enable)

Step 10

Reset the switch so that it goes into ROMmon:

   Console> (enable) reset
   This command will reset the system.
   Do you want to continue (y/n) [n]? y
   2003 Nov 01 16:08:31 %SYS-5-SYS_RESET:System reset from Console//
   Powering OFF all existing linecards
   2003 Nov 01 16:08:31 %ETHC-5-PORTFROMSTP:Port 1/1 left bridge port 1/1
   Console> (enable)
   System Bootstrap, Version 7.7(1)
   !--- This is the SP ROMmon image version.
   Copyright (c) 1994-2003 by cisco Systems, Inc.
   Cat6k-Sup720/SP processor with 524288 Kbytes of main memory
   !--- After this message, the router goes into SP ROMmon.
   rommon 1 >

Step 11

Boot the switch with the Cisco IOS Software image (s720xy*).

Issue the dir bootflash: command, or the dir disk0: command, or the dir disk1: command. The command you issue depends on the device to which you previously downloaded the Cisco IOS Software image (s720xy*). Then, issue the boot bootflash: command, or the boot disk0: command, or the boot disk1:filename command in order to start the bootup sequence.

   rommon 1 > dir disk0:
   Directory of disk0:
       2      32983632  -rw-     s72033-psv-mz.122-14.SX1.bin
   !--- The Cisco IOS Software image (s720xy*) is on disk0: in this case.
   !--- This is the device from which the image boots in this procedure.
   rommon 2 > boot disk0:s72033-psv-mz.122-14.SX1.bin
   Self decompressing the image : #################################################
   ################################################################################
   ################################################################################
   ############ [OK]
   !--- Output suppressed.
   System Bootstrap, Version 12.2(14r)S9, RELEASE SOFTWARE (fc1)
   TAC Support: http://www.cisco.com/tac
   Copyright (c) 2003 by cisco Systems, Inc.
   Cat6k-Sup720/RP platform with 524288 Kbytes of main memory
   Download Start
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!
   Download Completed! Booting the image.
   Self decompressing the image : #################################################
   ######################################################################### [OK]
   !--- Output suppressed.
   Press RETURN to get started!
   !--- Output suppressed.
   Router>

Step 12

At this point, the Cisco IOS Software image (s720xy*) has successfully booted, but the Supervisor Engine Flash devices are still formatted with the previous CatOS algorithm. Therefore, Cisco IOS Software cannot correctly write to sup-bootflash:, disk0:, or disk1:. You need to reformat these Flash devices and replace the images that are on the Flash devices.

Issue the format command in order to format the Flash devices.

   Router#format sup-bootflash:
   Format operation may take a while. Continue? [confirm]
   !--- Press Enter or Return.
   Format operation will destroy all data in "sup-bootflash:".  Continue? [confirm]
   !--- Press Enter or Return.
   Format of sup-bootflash complete
   Router#
   Router#format disk0:
   !--- Format the CompactFlash card in disk1: as well, if you have one.
   Format operation may take a while. Continue? [confirm]
   !--- Press Enter or Return.
   Format operation will destroy all data in "disk0:".  Continue? [confirm]
   !--- Press Enter or Return.
   Format: Drive communication & 1st Sector Write OK...
   Writing Monlib sectors..........................................................
   ..................................................
   Monlib write complete
   Format: All system sectors written. OK...
   Format: Total sectors in formatted partition: 251616
   Format: Total bytes in formatted partition: 128827392
   Format: Operation completed successfully.
   Format of disk0 complete
   Router#

Step 13

When you format the Supervisor Engine Flash devices in Step 12, the Cisco IOS Software image (s720xy*) that is used to boot the Supervisor Engine, as well as all data on the device, is erased. You need to recopy the Cisco IOS Software image (s720xy*).

Note: Remember that the conversion lost the configuration. You need to configure an IP address and possibly a static or dynamic routing in order to reestablish connectivity to your TFTP server. Verify that you can ping your TFTP server from the switch.

Issue the copy tftp command in order to copy the Cisco IOS Software image (s720xy*) to either the sup-bootflash: or the disk0: or disk1: Flash devices.

   Router#copy tftp sup-bootflash:
   !--- The Cisco IOS Software image (s720xy*) copies to the SP bootflash (sup-bootflash:) 
   !--- in this case.
   Address or name of remote host []? 10.1.1.2
   Source filename []? s72033-psv-mz.122-14.SX1.bin
   Destination filename [s72033-psv-mz.122-14.SX1.bin]?
   Accessing tftp://10.1.1.2/s72033-psv-mz.122-14.SX1.bin...
   Loading s72033-psv-mz.122-14.SX1.bin from 10.1.1.2 (via FastEthernet1/1): !
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !--- Output suppressed.
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   [OK - 32983632 bytes]
   32983632 bytes copied in 382.524 secs (86226 bytes/sec)
   Verifying compressed IOS image checksum...
   Verified compressed IOS image checksum for sup-bootflash:/s72033-psv-mz.122-14.S
   X1.bin
   Router#
   !--- Verify the image location in the SP bootflash.
   Router#dir sup-bootflash:
   Directory of sup-bootflash:/
       1  -rw-    32983632   Nov 01 2003 20:38:05  s72033-psv-mz.122-14.SX1.bin
   65536000 bytes total (32552240 bytes free)
   Router#
   Router#

Step 14

Set the boot variable to boot from the Cisco IOS Software image (s720xy*) in either sup-bootflash: or disk0: or disk1:.


   !---Check the current boot variable settings.
   Router#show bootvar
   BOOT variable = bootflash:c6msfc3-jsv-mz.122-14.SX2,1
   !--- The BOOT variable incorrectly points to an old MSFC3 image.
   CONFIG_FILE variable does not exist
   BOOTLDR variable does not exist
   Configuration register is 0x2102
   Standby is not up.
   Router#
   !--- Set the boot variable to boot the Cisco IOS Software image (s720xy*).
   Router#configure terminal
   Enter configuration commands, one per line.  End with CNTL/Z.
   Router(config)#boot system flash sup-bootflash:s72033-psv-mz.122-14.SX1.bin
   Router(config)#end
   !--- Save the changes.
   Router#write memory
   Building configuration...
   [OK]
   Router#

Step 15

Change the configuration register of the SP from 0x0 to 0x2102. Otherwise, upon reload, the router ends up in SP ROMmon. Issue the show bootvar command again.

   Router#show bootvar
   BOOT variable = sup-bootflash:s72033-psv-mz.122-14.SX1.bin,1
   CONFIG_FILE variable does not exist
   BOOTLDR variable does not exist
   Configuration register is 0x2102

This output seems to show that all the variables are set and that you can boot the switch automatically. However, if you reload the router at this point, you end up in SP ROMmon because the configuration register value for the SP that you set in Step 9 is still 0x0. Issue the remote command switch show bootvar command in order to verify this statement. The command displays the current environment variable settings on the SP.

   Router#remote command switch show bootvar
   BOOT variable = bootflash:s72033-psv-mz.122-14.SX1,1
   CONFIG_FILE variable =
   BOOTLDR variable =
   Configuration register is 0x0

Issue this set of commands on the RP in order to change the configuration register settings on the SP:


   !--- Set the configuration register.
   Router#configure terminal
   Enter configuration commands, one per line.  End with CNTL/Z.
   Router(config)#config-register 0x2102
   Router(config)#end
   !--- Save the changes.
   Router#write memory
   Building configuration...
   [OK]
   !--- Verify the settings on the SP.
   Router#remote command switch show bootvar
   BOOT variable = bootflash:s72033-psv-mz.122-14.SX1,12
   CONFIG_FILE variable =
   BOOTLDR variable =
   Configuration register is 0x0 (will be 0x2102 at next reload)

Step 16

Reload the switch.

   Router#reload
   Proceed with reload? [confirm]
   !--- Output suppressed.