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

Table of Contents

enable
format
frame
history---ROM Monitor
history---switch

enable

Use the enable command to activate privileged mode. In privileged mode, additional commands are available, and certain commands display additional information.

enable
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 (enable) in the prompt indicates that the system is in privileged mode and that commands can be entered.

Example

This example shows how to enter privileged mode:

Console> enable
Enter password:
Console> (enable) 
Related Command

disable

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

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.

Example

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>
 

hometocprevnextglossaryfeedbacksearchhelp
Posted: Thu Feb 4 18:32:45 PST 1999
Copyright 1989-1999©Cisco Systems Inc.