|
|
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.
Switch command.
Normal.
The (enable) in the prompt indicates that the system is in privileged mode and that 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 PC card. A Flash PC card 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 when other sectors fail. |
m/ | (Optional) Module number of the supervisor engine containing the Flash device. |
device1: | Flash device to be formatted. |
device2: | (Optional) Flash device that contains the monlib file to be used to format device1:. |
monlib-filename | (Optional) Name of the monlib file. |
The default number of spare sectors is 0.
Switch command.
Privileged.
A colon (:) is required after the specified device.
You can reserve up to 16 spare sectors for use when other sectors fail. If you do not reserve a spare sector and later some sectors fail, you will have to reformat the entire Flash memory, 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. It 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 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 PC card:
Console> (enable) format slot0: All sectors will be erased, proceed (y/n) [n]?y Enter volume id (up to 31 characters): Formatting sector 1 Format device slot0 completed. Console> (enable)
Use the frame command to display an individual stack frame.
frame [-d | -p] [num]
-d | (Optional) Keyword to specify a monitor context. |
-p | (Optional) Keyword to specify a booted image process level context. |
num | (Optional) Number of the frame to display, where 0 = youngest frame. |
The default is a booted image Kernel context---the youngest frame.
ROM monitor command.
Normal.
The minus sign (-) is required with the -d and -p options.
This example shows how to use the frame command to specify a booted image process level context, frame 1:
rommon 6 > frame -p 1 Stack Frame 1, SP = 0x80007ed8, Size = 32 bytes [0x80007ed8 : sp + 0x000] = 0x6031de50 [0x80007edc : sp + 0x004] = 0x6031c000 [0x80007ee0 : sp + 0x008] = 0x00000000 [0x80007ee4 : sp + 0x00c] = 0x80007ec4 [0x80007ee8 : sp + 0x010] = 0x00000002 [0x80007eec : sp + 0x014] = 0x00000000 [0x80007ef0 : sp + 0x018] = 0x60008770 [0x80007ef4 : sp + 0x01c] = 0x600087f0
Use the history command to display the command history (the last 16 commands executed in the ROM monitor environment). This command is aliased to "h" by the ROM monitor for convenience.
historyThis command has no arguments or keywords.
This command has no default setting.
ROM monitor command.
Normal.
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.
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.
In this example, the history command lists the contents of the command history buffer:
Console> history
1 help
2 history
Console> !2
history
1 help
2 history
3 history
Console>
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon May 17 11:30:57 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.