How does the IOS load on a CAT6500 Switch with a MSFC

Dragon0x40
Dragon0x40 used Ask the Experts™
on
Can someone explain how the boot system commands work?

What is the difference between these three commands?

boot system flash bootflash:c6msfc2-dsv-xx.000-00.E5.bin
boot system bootflash:c6msfc2-psv-xx.000-00.E6.bin
boot bootldr bootflash:c6msfc2-boot-xx.000-00.E6.bin

I don't understand how the boot process works on this 6500 switch with a MSFC.

Does the switch boot and then the MSFC?

How can I look at all the memory devices using the directory command?

I think there is NVRAM, bootflash and Flash but how can you tell if they are onboard or a flash card?

> (enable) session 16
Trying Router-16...
Connected to Router-16.
Escape character is '^]'.

Router>en
Router#sh run
Building configuration...

Current configuration : 435 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
boot system flash bootflash:c6msfc2-dsv-xx.000-00.E5.bin
boot system bootflash:c6msfc2-psv-xx.000-00.E6.bin
boot bootldr bootflash:c6msfc2-boot-xx.000-00.E6.bin
!
clock timezone PDT -7
ip subnet-zero
!
!
!
!
!
!
ip classless
no ip http server
!
!
!
line con 0
 exec-timeout 0 0
line vty 0 4
 login
!
!
end

Router# config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#exit
Router#
2y44w: %SYS-5-CONFIG_I: Configured from console by vty0 (127.0.0.11)
Router#sh boot
BOOT variable = bootflash:c6msfc2-dsv-xx.000-00.E5.bin,1;bootflash:c6msfc2-psv-xx.000-00.E6.bin,12
CONFIG_FILE variable does not exist
BOOTLDR variable = bootflash:c6msfc2-boot-xx.000-00.E6.bin
Configuration register is 0x102

Router#sh ip int br
Interface                  IP-Address      OK? Method Status                Protocol
Router#dir
Directory of bootflash:/

    1  -rw-     1851224  Jun 07 2005 12:07:57 -07:00  c6msfc2-boot-xx.000-00.E6.bin
    2  -rw-    13480796  Jun 07 2005 12:08:12 -07:00  c6msfc2-psv-xx.000-00.E6.bin

31981568 bytes total (16649292 bytes free)
Router#dir flash
%Error opening bootflash:/flash (File not found)
Router#sh flash
           ^
% Invalid input detected at '^' marker.

Router#dir ?
  /all             List all files
  /recursive       List files recursively
  all-filesystems  List files on all filesystems
  bootflash:       Directory or file name
  cns:             Directory or file name
  microcode:       Directory or file name
  null:            Directory or file name
  nvram:           Directory or file name
  slavebootflash:  Directory or file name
  slavenvram:      Directory or file name
  system:          Directory or file name
  <cr>

Router>sh ver
Cisco Internetwork Operating System Software
IOS (tm) MSFC2 Software (C6MSFC2-PSV-M), Version 12.1(22)E6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Fri 29-Apr-05 20:42 by ccai
Image text-base: 0x40008F90, data-base: 0x41928000

ROM: System Bootstrap, Version 12.2(17r)S1, RELEASE SOFTWARE (fc1)
BOOTLDR: MSFC2 Software (C6MSFC2-PSV-M), Version 12.1(22)E6, RELEASE SOFTWARE (fc1)

Router uptime is 2 years, 44 weeks, 3 days, 10 hours, 41 minutes
System returned to ROM by power-on
System image file is "bootflash:c6msfc2-psv-xx.000-00.E6.bin"

cisco MSFC2 (R7000) processor with 229376K/32768K bytes of memory.
Processor board ID SAL09018RBP
R7000 CPU at 300Mhz, Implementation 39, Rev 3.3, 256KB L2, 1024KB L3 Cache
Last reset from power-on
X.25 software, Version 3.0.0.
Bridging software.
509K bytes of non-volatile configuration memory.

32768K bytes of Flash internal SIMM (Sector size 512K).
Configuration register is 0x102
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Don JohnstonInstructor
Top Expert 2015
Commented:
boot system flash bootflash:c6msfc2-dsv-xx.000-00.E5.bin
Tells the bootstrap loader to load the specified file from bootfash. The "flash" keyword is required on some images.

boot system bootflash:c6msfc2-psv-xx.000-00.E6.bin
Same as above.

boot bootldr bootflash:c6msfc2-boot-xx.000-00.E6.bin
Sets (in the boot environment variable) the device and filename of the image to be loaded.

Does the switch boot and then the MSFC?
Yes. First the supervisor is started and then it's OS is loaded. Then the MSFC is started and it's OS is loaded.

>How can I look at all the memory devices using the directory command?
From the supervisor, you'll only be able to see the supervisor flash.
IIFC, from the MSFC, you can use the "show sup-bootflash..." show sup-slot0..." commands to see the supervisor memory. But I'm not positive since it's been a while since I've done anything with a hybrid mode 6500.

>I think there is NVRAM, bootflash and Flash but how can you tell if they are onboard or a flash card?

The only removable flash are the cards in slot0 and slot1. Everything else is internal.

Author

Commented:
thanks memo tnt and donjohnston,
why do you need the first two commands when you have the third command?
boot system flash bootflash:c6msfc2-dsv-xx.000-00.E5.bin
boot system bootflash:c6msfc2-psv-xx.000-00.E6.bin
boot bootldr bootflash:c6msfc2-boot-xx.000-00.E6.bin (seems this one would be the only one required)

These two commands load different ios images? The bootldr command selects which command is used?
boot system flash bootflash:c6msfc2-dsv-xx.000-00.E5.bin
boot system bootflash:c6msfc2-psv-xx.000-00.E6.bin

Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
These two commands load different "VERSIONS" of the ios images? The bootldr command selects which command is used?
boot system flash bootflash:c6msfc2-dsv-xx.000-00.E5.bin
boot system bootflash:c6msfc2-psv-xx.000-00.E6.bin

Commented:
yes i agree with you ,,
what is results for """show boot"""" command

what's the config-register there ??
be sure to be 0x2102
if not then do it by:

(config)# config-register 0x2102




Don JohnstonInstructor
Top Expert 2015

Commented:
I thought you were interested in the commands themselves.

Some MSFC's require a bootloader to be loaded in order to load the actual IOS. A two-step boot process if you will.

The two boot system commands in your example are loading different IOS versions.

Author

Commented:
Router#sh boot
BOOT variable = bootflash:c6msfc2-dsv-xx.000-00.E5.bin,1;bootflash:c6msfc2-psv-xx.000-00.E6.bin,12
CONFIG_FILE variable does not exist
BOOTLDR variable = bootflash:c6msfc2-boot-xx.000-00.E6.bin
Configuration register is 0x102

Author

Commented:
Is this how it works?

boot bootldr bootflash:c6msfc2-boot-xx.000-00.E6.bin  (this loads 1st - bootloader)
boot system flash bootflash:c6msfc2-dsv-xx.000-00.E5.bin (boot variable loads this IOS after bootload)
boot system bootflash:c6msfc2-psv-xx.000-00.E6.bin (this IOS will only be used if above IOS fails)
Don JohnstonInstructor
Top Expert 2015
Commented:
The "flash" keyword is not always mandatory and doesn't change the operation.

From http://www.cisco.com/en/US/docs/ios/12_2/configfun/command/reference/frf010.html#wp1017705

 On all platforms except the Cisco 1600 series, Cisco 3600 series, and Cisco 7000 family routers, this keyword boots the router from internal Flash memory. If you omit all arguments that follow this keyword, the system searches internal Flash for the first bootable image.  
On the Cisco 1600 series, Cisco 3600 series, and Cisco 7000 family routers, this keyword boots the router from a Flash device, as specified by the device: argument. On the Cisco 1600 series and Cisco 3600 series routers, if you omit all optional arguments, the router searches internal Flash memory for the first bootable image. On the Cisco 7000 family routers, when you omit all arguments that follow this keyword, the system searches the PCMCIA slot 0 for the first bootable image.

Commented:
yes that's the way it's and the booting order ..

Author

Commented:
I am reading the links that you gave me.

Trying to understand how the boot process works.

Do new cisco switches boot the same way?

In other words will learning how the Hybrid switch boots help me in the future?

Still have to maintain these legacy switches for a while anyway.
Don JohnstonInstructor
Top Expert 2015

Commented:
Do new cisco switches boot the same way?

No.

>In other words will learning how the Hybrid switch boots help me in the future?

Unless you're going to be supporting a bunch of hybrid mode 6500's, I wouldn't worry too much about it.


Author

Commented:
We are supposed to be getting rid of the hybrids within the next year but it could drag on.

We just had to reload the IOS and config on one of them and I learned a lot but also learned that I did not understand how the boot process works.

I am reading the links that you gave me from Cisco but they are long and don't really summarize the boot process very well.

Any other docs that you know of that summarizes  the boot process of a hybrid?
Don JohnstonInstructor
Top Expert 2015

Commented:
If you've got sup 2's, you could run your 6500's in native mode (IOS only).

Author

Commented:
There was talk about running IOS in native mode but I don't think we had enough RAM or Flash.

The cost of equipment and the time spent upgrading may not be worth it if we are going to replace them in the next year or so.
Don JohnstonInstructor
Top Expert 2015

Commented:
I'd agree with that assessment.

Author

Commented:
Is this line being used?
boot system flash bootflash:c6msfc2-dsv-mz.121-13.E5.bin

I don't see this filename in the dir?
Router#dir
Directory of bootflash:/

    1  -rw-     1851224  Jun 07 2005 12:07:57 -07:00  c6msfc2-boot-xx.000-00.E6.bin
    2  -rw-    13480796  Jun 07 2005 12:08:12 -07:00  c6msfc2-psv-xx.000-00.E6.bin
Don JohnstonInstructor
Top Expert 2015

Commented:
>Is this line being used?

If the file doesn't exist in the specified location then, no, it serves no purpose.

Author

Commented:
So does the switch try to boot ios cat6000-sup2k8.8-5-3.bin first?
And then if that fails it boots cat6000-sup2k8.7-3-1.bin?

switch&gt; (enable) sh boot
BOOT variable = bootflash:cat6000-sup2k8.8-5-3.bin,1;bootflash:cat6000-sup2k8.7-3-1.bin,1;
CONFIG_FILE variable = slot0:switch.cfg

Configuration register is 0x2
ignore-config: disabled
auto-config: non-recurring, overwrite, sync disabled
ROMMON console baud: 9600
boot: image specified by the boot system commands

Image auto sync is enabled
Image auto sync timer is 120 seconds
switch&gt; (enable) dir
-#- -length- -----date/time------ name
  1  6226324 Dec 25 2002 08:22:14 cat6000-sup2k8.7-3-1.bin
  2 10221856 May 13 2008 19:16:48 cat6000-sup2k8.8-5-3.bin
  3   494722 Dec 05 2009 23:42:53 SRBN197001-1

15038280 bytes available (16943288 bytes used)
switch&gt; (enable) sh run | inc boot
#set boot command
set boot config-register 0x2
set boot system flash bootflash:cat6000-sup2k8.8-5-3.bin
set boot system flash bootflash:cat6000-sup2k8.7-3-1.bin
switch&gt; (enable) sh ver
WS-C6509 Software, Version NmpSW: 8.5(3)
Copyright (c) 1995-2006 by Cisco Systems
NMP S/W compiled on Jan 28 2006, 18:03:10

System Bootstrap Version: 7.1(1)
System Boot Image File is 'bootflash:cat6000-sup2k8.8-5-3.bin'
System Configuration register is 0x2

Hardware Version: 3.0  Model: WS-C6509  Serial #: Serial Number

PS1  Module: WS-CAC-2500W    Serial #: Serial Number
PS2  Module: WS-CAC-2500W    Serial #: Serial Number

Mod Port Model               Serial #    Versions
--- ---- ------------------- ----------- --------------------------------------
1   2    WS-X6K-SUP2-2GE     Serial Number Hw : 3.11
                                         Fw : 7.1(1)
                                         Fw1: 6.1(3)
                                         Sw : 8.5(3)
                                         Sw1: 8.5(3)
         WS-F6K-PFC2         Serial Number Hw : 3.3
                                         Sw :
4   8    WS-X6408A-GBIC      Serial Number Hw : 2.1
                                         Fw : 5.4(2)
                                         Sw : 8.5(3)
6   48   WS-X6148-GE-TX      Serial Number Hw : 6.1
                                         Fw : 7.2(1)
                                         Sw : 8.5(3)
7   48   WS-X6348-RJ-45      Serial Number Hw : 6.1
                                         Fw : 5.4(2)
                                         Sw : 8.5(3)
8   48   WS-X6348-RJ-45      Serial Number Hw : 5.0
                                         Fw : 5.4(2)
                                         Sw : 8.5(3)
9   48   WS-X6348-RJ-45      Serial Number Hw : 6.2
                                         Fw : 5.4(2)
                                         Sw : 8.5(3)
15  1    WS-F6K-MSFC2        Serial Number Hw : 2.5
                                         Fw : 12.1(13)E12
                                         Sw : 12.1(13)E12

       DRAM                    FLASH                   NVRAM
Module Total   Used    Free    Total   Used    Free    Total Used  Free
------ ------- ------- ------- ------- ------- ------- ----- ----- -----
1      131072K  83235K  47837K  31232K  16547K  14685K  512K  426K   86K

Uptime is 52 days, 14 hours, 20 minutes
Don JohnstonInstructor
Top Expert 2015

Commented:
That is correct.

Author

Commented:
Can you tell me how that boot order is set?
Config register?
First IOS in flash?
Numerically/alphabetically?
Commented:
hi

depends in the order in which you enter them,,and here is the answer from cisco..

http://www.ciscosystems.com/en/US/docs/switches/lan/catalyst6500/catos/8.x/command/reference/ses_sete.html#wp1179219
Don JohnstonInstructor
Top Expert 2015

Commented:
The boot order is set by the order in which you enter the commands. If you want a subsequent command to take precedence, use the "prepend" keyword with the command.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial