cc/td/doc/product/lan/cat5000/rel_5_4
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

format
history---ROM monitor
history---switch

format

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

Syntax Description

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

(Optional) Name of the monlib file to be used to format device 1:.

Default

The default number of spare sectors is 0.

Supported Platforms

Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Catalyst 2980G switch

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

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.


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

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) 

history---ROM monitor

Use the history command to display the command history (the last 16 commands executed in the ROM monitor environment).

history

Syntax Description

This command has no arguments or keywords.

Default

This command has no defaults.

Supported Platforms

Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Catalyst 2980G switch

Command Type

ROM monitor command.

Command Mode

Normal.

Usage Guideline

This command is aliased to h by the ROM monitor for convenience.

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.

Supported Platforms

Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Catalyst 2980G switch

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

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>
 

hometocprevnextglossaryfeedbacksearchhelp
Posted: Tue Mar 21 09:08:33 PST 2000
Copyright 1989 - 2000©Cisco Systems Inc.