|
|
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 11 dis 0xa0001000 12 dis 0xbe000000 13 history =============================================================================
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>
Use the meminfo command to display information about the main memory, packet memory, and NVRAM. With the -l option, the supported DRAM configurations are displayed.
meminfo [-l]
-l | (Optional) Keyword to specify long listing---displays DRAM configurations. |
This command has no default setting.
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
On a Cisco 3640 router, meminfo -l displays the following tables. The size of the SIMM indicated is its total size. The "-DUAL" attached to the size indicates that the SIMM is a dual-bank SIMM. For example, "8M" indicates that the SIMM is a single bank with a total size of 8 MB. "8M-DUAL" indicates that the SIMM is dual bank with a total size of 8 MB (4 MB on each bank).
rommon 10 > meminfo -l Supported 64 bit configurations: SIMM 0 SIMM 1 SIMM 2 SIMM 3 -------------------------------------- 4M 4M 4M 4M 8M 8M 8M-DUAL 8M-DUAL 8M 8M 4M 4M 8M-DUAL 8M-DUAL 4M 4M 8M 8M 8M 8M 8M 8M 8M-DUAL 8M-DUAL 8M-DUAL 8M-DUAL 8M 8M 8M-DUAL 8M-DUAL 8M-DUAL 8M-DUAL 16M 16M 16M 16M 4M 4M 16M 16M 8M 8M 16M 16M 8M-DUAL 8M-DUAL 16M 16M 16M 16M 32M-DUAL 32M-DUAL 32M-DUAL 32M-DUAL 4M 4M 32M-DUAL 32M-DUAL 8M 8M 32M-DUAL 32M-DUAL 8M-DUAL 8M-DUAL 32M-DUAL 32M-DUAL 16M 16M 32M-DUAL 32M-DUAL 32M-DUAL 32M-DUAL Supported 32 bit configurations: SIMM 0 SIMM 1 SIMM 2 SIMM 3 -------------------------------------- 4M 4M 4M 4M 8M 4M 16M 4M 4M 4M 4M 4M 8M 8M 8M 4M 8M 16M 8M 8M 4M 8M 8M 8M 8M 8M 16M 8M 8M 4M 8M 8M 8M 8M 4M 16M 16M 4M 16M 8M 16M 16M 4M 16M 16M 8M 16M 16M 16M 16M 16M 4M 8M 16M 16M 4M 16M 16M 16M 8M 4M 16M 16M 8M 16M 16M 16M 16M 4M 16M 16M 16M 8M
On a Cisco 3620 router, meminfo -l displays the following table:
rommon 10 > meminfo -l Supported memory configurations: SIMM 0 SIMM 1 SIMM 2 SIMM 3 -------------------------------------- 4M 4M 4M 4M 8M 4M 16M 4M 4M 4M 4M 4M 8M 4M 4M 4M 4M 8M 8M 4M 8M 8M 8M 16M 8M 8M 4M 8M 8M 8M 8M 8M 16M 8M 8M 4M 4M 8M 8M 4M 8M 8M 8M 8M 4M 8M 8M 8M 8M 16M 16M 4M 16M 8M 16M 16M 16M 16M 4M 16M 16M 8M 16M 16M 16M 16M 16M 4M 4M 16M 16M 4M 8M 16M 16M 4M 16M 16M 16M 8M 4M 16M 16M 8M 8M 16M 16M 8M 16M 16M 16M 16M 4M 16M 16M 16M 8M 16M 16M 16M 16M
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Fri Dec 31 10:56:55 PST 1999
Copyright 1989-1999©Cisco Systems Inc.