cc/td/doc/product/lan/cat6000/sw_5_4
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

format
frame
history---ROM monitor
history---switch
meminfo

format

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]]

Syntax Description

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.

Default

The default number of spare sectors is 0.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

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.


Note When the system cannot find a monlib file, the system terminates the formatting process.
Example

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) 
 

frame

Use the frame command to display an individual stack frame.

frame [-d | -p] [num]

Syntax Description

-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.

Default

The default is a booted image kernel context---the youngest frame.

Command Type

ROM monitor command.

Command Mode

Normal.

Usage Guideline

The minus sign (-) is required with the -d and -p options.

Examples

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
 

history---ROM monitor

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.

history

Syntax Description

This command has no arguments or keywords.

Default

This command has no default setting.

Command Type

ROM monitor command.

Command Mode

Normal.

Example

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
=============================================================================

history---switch

Use the history command to show the contents of the command history buffer.

history

Syntax Description

This command has no arguments or keywords.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Usage Guideline

The history buffer size is fixed at 20 commands. Refer to the "Command-Line Interfaces" chapter for detailed information about the command history feature.

Example

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>

meminfo

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]

Syntax Description

-l

(Optional) Keyword to specify long listing---displays DRAM configurations.

Default

This command has no default setting.

Command Type

ROM monitor command.

Command Mode

Normal.

Usage Guideline

The minus sign (-) is required with the -l option.

Example

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
 
 
 

hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri Mar 3 07:07:59 PST 2000
Copyright 1989 - 2000©Cisco Systems Inc.