|
|
Use the enable command to activate privileged mode. In privileged mode, additional commands are available, and certain commands display additional information.
enableThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Normal.
The (enable) in the prompt indicates that privileged commands can be entered.
This example shows how to enter privileged mode:
Console> enable Enter password: Console> (enable)
Use the format command to format a Flash device. Flash PC cards must be formatted before it can be used.
format [spare spare-num] [m/]device1: [[device2:][monlib_filename]]
spare spare_num | (Optional) Number of spare sectors to reserve for use if other sectors fail; valid values are 0 to 16. |
m/ | (Optional) Module number of the supervisor engine containing the Flash device. |
device1: | Flash device to be formatted. A colon (:) is required after the specified device. |
device2: | (Optional) Flash device that contains the monlib file to be used to format device1:. A colon (:) is required after the specified device. |
monlib_filename | Name of the monlib file to be used to format device 1:. |
The default number of spare sectors is 0.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This command is not supported on the Catalyst 5000 family Supervisor Engine II, II G, and III G.
You can reserve up to 16 spare sectors for use when other sectors fail. If you do not reserve spare sectors and later some sectors on the device fail, you will have to reformat the entire Flash device, which will erase all existing data.
The monlib file is the ROM monitor library used by the ROM monitor to access files in the Flash file system. The file is also compiled into the system image. In the command syntax, device1: is the device to format and device2: contains the monlib file to use.
When you omit the [device2:][monlib-filename]] argument, the system formats device1: using the monlib that is bundled with the system software.
When you omit device2: from the [[device2:][monlib-filename]] argument, the system formats device1: using the named monlib file from the default Flash device (specified by the cd command).
When you omit monlib-filename from the [[device2:][monlib-filename]] argument, the system formats device1: using the monlib file from device2:. When you specify the whole [[device2:][monlib-filename]] argument, the system formats device1: using the specified monlib file from the specified device.
You can also specify device1:monlib_filename as the device and filename to be used, as follows:
format device1: [device1: [monlib_filename]]If monlib_filename is omitted, the system formats device1: using the built-in monlib file on the device.
This example shows how to format a Flash device (Flash PC card in slot1):
Console> (enable) format slot1: All sectors will be erased, proceed (y/n) [n]?y Enter volume id (up to 31 characters): Formatting sector 1 Format device slot1 completed. Console> (enable)
Use the history command to display the command history (the last 16 commands executed in the ROM monitor environment).
historyThis command has no arguments or keywords.
This command has no defaults.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
ROM monitor command.
Normal.
This command is aliased to h by the ROM monitor for convenience.
This example shows how to use the history command:
rommon 13 > history 1 help 2 break -s 0x20090 3 break -s 10090 4 break -s 0xa0001000 5 cont 6 help 7 dev 8 dir 9 dir bootflash: 10 dis 11dis 0xa0001000 12dis 0xbe000000 13history =============================================================================
Use the history command to show the contents of the command history buffer.
historyThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Normal.
The history buffer size is fixed at 20 commands. Refer to the "Command-Line Interfaces" chapter for detailed information about the command history feature.
This example shows how to display the command history and execute the second entry in the command history buffer:
Console> history
1 help
2 history
Console> !2
history
1 help
2 history
3 history
Console>
Use the meminfo command to display information about the main memory, packet memory, and NVRAM.
meminfo [-l]
-l | (Optional) Keyword to specify long listing, which displays the supported DRAM configurations. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
ROM monitor command.
Normal.
The minus sign (-) is required with the -l option.
This example shows how to use the meminfo command:
rommon 9 > meminfo Main memory size: 16 MB in 32 bit mode. Available main memory starts at 0xa000e000, size 16328KB IO (packet) memory size: 25 percent of main memory. NVRAM size: 32KB
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Tue Oct 5 10:54:59 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.