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

Table of Contents

repeat
reset---ROM monitor
reset---switch
session
set
set alias

repeat

Use the repeat ROM monitor command to repeat a command.

repeat [num | string]

Syntax Description

num

(Optional) Number of the command (from the command history buffer list).

string

(Optional) String that uniquely matches a command in the command history buffer list.

Default

If no argument is specified, the last command is repeated.

Supported Platforms

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

Command Type

ROM monitor command.

Command Mode

Normal.

Usage Guidelines

The optional num and string arguments specify which command in the command history buffer to repeat.

If you specify a string to match, the most recent command in the buffer to begin with the specified string is executed again.

If the string contains white space, you must use quotation marks.

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

Examples

These examples show how to use the repeat command. You use the history command to display the list of previously entered commands:

rommon 22 > history
 
8   dir 
9   dir bootflash:
10   dis
11   dis 0xa0001000
12   dis 0xbe000000
13   history
14   meminfo
15   meminfo -l
16   meminfo
17   meminfo -l
18   meminfo
19   meminfo
20   meminfo -l
21   meminfo -l
22   history
rommon 23 > repeat dir
dir bootflash:
         File size           Checksum   File name
   1973032 bytes (0x1e1b28)   0xdadf5e24    llue
rommon 24 > repeat
dir bootflash:
         File size           Checksum   File name
   1973032 bytes (0x1e1b28)   0xdadf5e24    llue
rommon 25 > repeat 15
meminfo -l
 
Main memory size: 16 MB.
Packet memory size: 0 MB
Main memory size: 0x1000000
Available main memory starts at 0xa000e000, size 0xff2000
NVRAM size: 0x20000
 
Parity Map for the DRAM Banks
Socket 0 in Bank 0 Has No Parity
Socket 1 in Bank 0 Has No Parity
Socket 0 in Bank 1 Has No Parity
Socket 1 in Bank 1 Has No Parity
==========================================================================

reset---ROM monitor

Use the reset ROM monitor command to perform a soft reset of the switch.

reset {mod_num | system}

Syntax Description

mod_num

Number of the module to be reset.

system

Keyword to reset the entire switch.

Default

This command has no default setting.

Supported Platforms

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

Command Type

ROM monitor command.

Command Mode

Normal.

Example

This example shows how to use the reset command:

rommon 26 > reset
 
System Bootstrap, Version 3.1(1.69)
Copyright (c) 1994-1997 by cisco Systems, Inc.
Supervisor III processor with 16384 Kbytes of main memory
 
rommon 1 > 
===========================================================================
 

reset---switch

Use the reset command to restart the system or an individual module.

reset [mod_num | system | mindown]

Syntax Description

mod_num

Number of the module to be restarted.

system

(Optional) Keyword to reset the system.

mindown

(Optional) Keyword to perform a reset as part of a minimal downtime software upgrade in a system with redundant supervisor engine modules.

Default

This command has no default setting.

Supported Platforms

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

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

If you do not specify a module number (either a switching module or the active supervisor engine module), the command resets the entire system.

You can use the reset mod_num command to switch to the standby supervisor engine, where mod_num is the module number of the active supervisor.

In software release 5.2 and later, you can use the reset mindown command to reset the switch as part of a minimal downtime software upgrade in a system with redundant supervisor engine modules. For complete information on performing a minimal downtime software upgrade, refer to the Software Configuration Guide for your switch.

Caution If you make configuration changes after entering the reset mindown command but before the active supervisor engine resets, the changes are not saved. Input from the CLI is still accepted by the switch while the standby supervisor engine is reset, but any changes you make to the configuration between the time when you enter the reset mindown command and the time when the supervisor engine comes online running the new software image are not saved or synchronized with the standby supervisor engine.

If you reset an intelligent module (such as the Catalyst 5000 family RSM or RSFC, or an ATM module), both the module hardware and software are completely reset.

Examples

This example shows how to reset the supervisor engine module on a Catalyst 5500 switch with redundant supervisors:

Console> (enable) reset 1
This command will force a switch-over to the standby supervisor module
and disconnect your telnet session.
Do you want to continue (y/n) [n]? y
Connection closed by foreign host.
host%
 

This example shows how to reset module 4:

Console> (enable) reset 4
This command will reset module 4 and may disconnect your telnet session.
Do you want to continue (y/n) [n]? y
Resetting module 4...
Console> (enable)
 

session

Use the session command to access the CLI of an intelligent module such as a Catalyst 5000 family RSM, RSFC, or ATM module.

session mod_num

Syntax Description

mod_num

Number of the ATM or RSM module.

Default

This command has no default setting.

Supported Platforms

Catalyst 5000 family switches

Command Type

Switch command.

Command Mode

Normal.

Usage Guidelines

After you enter this command, the system responds with the Enter Password: prompt, if a password is configured on the module.

To end the session with the intelligent module, enter the quit command.

Example

This example shows how to open a session with an ATM module (module 4):

Console> session 4
Trying ATM-4...
Connected to ATM-4.
Escape character is `^]'.
 
ATM>
 

set

Use the set command to display all of the ROM monitor command variable names with their values.

set

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

Command Type

ROM monitor command.

Command Mode

Normal.

Example

This example shows how to use the set command to display all of the monitor variable names with their values:

rommon 2 > set 
PS1=rommon ! > 
BOOT=
?=0
Related Command

varname=

set alias

Use the set alias command to define command aliases (shorthand versions of commands).

set alias name command [parameter] [parameter]

Syntax Description

name

Alias being created.

command

Command for which the alias is being created.

parameter

(Optional) Parameters that apply to the command for which an alias is being created. See the specific command for information about parameters that apply.

Default

No aliases configured.

Supported Platforms

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

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

The name all cannot be defined as an alias. Reserved words cannot be defined as aliases.

Example

This example shows how to set arpdel as the alias for the clear arp command:

Console> (enable) set alias arpdel clear arp
Command alias added.
Console> (enable) 
Related Commands
show alias

hometocprevnextglossaryfeedbacksearchhelp
Posted: Tue Oct 5 10:48:50 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.