Chapter 2
Using the Command-Line Interface
ROM Monitor Command-Line Interface
The ROM monitor is a ROM-based program that executes when the switch is powered on, reset, or when
a fatal exception occurs. The system enters ROM monitor mode if the nonvolatile RAM (NVRAM)
configuration is corrupted, if the switch does not find a valid system image or if the configuration register
is set to enter ROM monitor mode. From the ROM monitor mode, you can load a system image manually
from Flash memory or the network interface (me1).
You can enter ROM monitor mode by pressing Ctrl-C within the first 5 seconds of startup.
Once you are in ROM monitor mode, the prompt changes to rommon>. Enter the ? command to see the
available ROM monitor commands.
Note
For complete descriptions of all ROM monitor commands, refer to the Command
Reference—Catalyst 4000 Family, Catalyst 2948G, and Catalyst 2980G Switches.
Catalyst 4003 Bootup Display Example
This example shows the bootup display of a Catalyst 4003 switch. The display on the Catalyst 4912G,
the Catalyst 2948G, and the Catalyst 2980G switches will be similar.
WS-X4012 bootrom version 4.5(1), built on 1999.03.29 21:04:04
H/W Revisions:
Supervisor MAC addresses: 00:d0:58:70:a1:00 through 00:d0:58:70:a4:ff (1024 addr
esses)
Installed memory: 32 MB
Testing LEDs.... done!
The system will autoboot in 5 seconds.
Type control-C to prevent autobooting.
rommon 1 >
The system will now begin autobooting.
Autobooting image: "bootflash:cat4000.5-1-1a.bin"
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCC############################
Starting Off-line Diagnostics
Mapping in TempFs
Board type is WS-X4012
DiagBootMode value is "post"
Loading diagnostics...
Power-on-self-test for Module 1:
Status: (. = Pass, F = Fail)
processor: .
enet console port: .
switch registers: .
switch port 2: .
switch port 5: .
switch port 8: .
switch port 11: .
Module 1 Passed
Power-on-self-test for Module 2:
Port status: (. = Pass, F = Fail)
1: .
9: .
17: .
78-12647-02
Meteor: 4
cpu sdram: .
nvram: .
switch port 0: .
switch port 3: .
switch port 6: .
switch port 9: .
switch bandwidth: .
2: .
3: .
4: .
5: .
10: .
11: .
12: .
13: .
18: .
19: .
20: .
21: .
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
Comet: 8
Board: 2
WS-X4012
temperature sensor: .
switch sram: .
switch port 1: .
switch port 4: .
switch port 7: .
switch port 10: .
WS-X4148
6: .
7: .
8: .
14: .
15: .
16: .
22: .
23: .
24: .
ROM Monitor Command-Line Interface
2-9