Table Of Contents
del
delete
dir—ROM monitor
dir—switch
disable
disconnect
enable
format
help—ROM monitor
history—ROM monitor
history—switch
meminfo
ping—ROM monitor
ping—switch
pwd
quit
reconfirm vmps
repeat
reset—ROM monitor
reset—switch
session
2
del
Use the del command to delete files.
del device:filename
Syntax Description
device:
|
Name of the device.
|
filename
|
Name of the system image or configuration file.
|
Defaults
This command has no default settings.
Command Types
ROM monitor command.
Command Modes
Normal.
Usage Guidelines
The Catalyst 4000 family, 2948G, and 2980G switches only support the bootflash: Flash device.
A file cannot be undeleted if a valid file with the same name exists. Instead, you must delete the existing one first and then undelete the desired file. A file can be deleted or undeleted up to 15 times. To permanently remove all deleted files on a device, use the squeeze command. You need to use the squeeze command to reclaim the space used by the deleted file.
Examples
This example shows how to delete a file:
rommon 1 > del bootflash:cat4000.6-1-1.bin
Related Commands
undelete—ROM monitor
squeeze—ROM monitor
delete
Use the delete command to delete a file on a Flash device.
delete [file-id]
Syntax Description
file-id
|
The file to delete, where file-id is in the format [[m/]device:][filename].
m/ = The module where the Flash device is located (such as the standby supervisor engine, an FDDI module, or an ATM module). Module 1 is assumed if no module is specified.
device: = Device where the file is located. Valid Flash devices are bootflash:, slot0:, and slot1:. The colon (:) is required after the device name.
filename = Name of the system image or configuration file.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The Catalyst 4000 family switches support only the bootflash: Flash device:
Use the undelete—switch command to recover a deleted file.
A file cannot be undeleted if a valid file with the same name exists. Instead, you must delete the existing one first and then undelete the desired file. A file can be deleted or undeleted up to 15 times. To permanently remove all deleted files on a device, use the squeeze—switch command.
Examples
This example shows how to delete a file from a Flash device:
Console> (enable) delete bootflash:switch_config.cfg
Related Commands
dir—switch
undelete—switch
show flash
squeeze—switch
dir—ROM monitor
Use the dir command to list the files on a Flash device.
dir device
Syntax Description
device
|
Name of the Flash device.
|
Defaults
This command has no defaults.
Command Types
ROM monitor command.
Command Modes
Normal.
Examples
This example shows how to list the files on a Flash device:
rommon 6 > dir bootflash:
File size Checksum File name
14086 bytes (0x3706) 0xa6a84c93 switch_config.cfg (deleted)
5415 bytes (0x1527) 0x53bbccda 5509_config.cfg
446464 bytes (0x6d000) 0x8503219d cat5000-sup3.5-1-1.bin (deleted)
4231861 bytes (0x4092b5) 0x1d6092f4 cat5000-sup3.5-2-1.bin
dir—switch
Use the dir command to display a list of files on a Flash device.
dir file-id [all | deleted | long]
Syntax Description
file-id
|
The file on which to perform the copy action, where file-id is of the format [[m/]device:][filename].
m/ = The module where the Flash device is located (such as the standby supervisor engine, an FDDI module, or an ATM module). Module 1 is assumed if no module is specified.
device: = Device where the file is located. Valid Flash devices are bootflash:, slot0:, and slot1:. You can also specify tftp: as the device name. The colon (:) is required after the device name.
filename = Name of the system image or configuration file.
|
all
|
(Optional) Keyword that specifies to display all files on the device, including deleted files.
|
deleted
|
(Optional) Keyword that specifies to display only deleted files.
|
long
|
(Optional) Keyword that specifies to display files that have not been deleted, in long format.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal and privileged.
Usage Guidelines
When you omit all keywords (all, deleted, or long), the system displays file information in short format.
Table 2-2 explains the short format output.
Table 2-2 Short Format File Information
Column Heading
|
Description
|
#
|
File index number
|
length
|
File length
|
date/time
|
Date and time the file was created
|
name
|
Filename
|
When you use one of the keywords, the system displays file information in long format.
Table 2-3 explains the long format output.
Table 2-3 Long Format File Information
Column Heading
|
Description
|
#
|
File index number
|
ED
|
Letter to indicate whether the file contains an error (E) or is deleted (D)
|
type
|
File type (1 = configuration file, 2 = image file); when the file type is unknown, the system displays a zero or FFFFFFFF in this field
|
crc
|
File cyclic redundancy check
|
seek
|
Offset into the file system of the next file
|
nlen
|
Filename length
|
length
|
File length
|
date/time
|
Date and time the file was created
|
name
|
Filename
|
Examples
This example shows how to display the file information in short format:
-#- -length- -----date/time------ name
2 3761580 Jun 14 2000 14:16:05 cat4000.6-1-0-104-ORL.bin
3 3773884 Jul 10 2000 09:06:25 cat4000.6-1-0-126-ORL.bin
21040 bytes available (11382224 bytes used)
This example shows how to display the file information in long format:
Console> (enable) dir long
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
2 .. ffffffff d69fff2c 781794 25 3761580 Jun 14 2000 14:16:05 cat4000.6-1-
3 .. ffffffff d3b83f6b b1add0 25 3773884 Jul 10 2000 09:06:25 cat4000.6-1-
21040 bytes available (11382224 bytes used)
This example shows the file with index number 1 deleted:
Console> (enable) dir all
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .D ffffffff 9be31a86 3eb168 28 3846376 Jun 14 2000 14:13:10 cat4000-k4.6
2 .. ffffffff d69fff2c 781794 25 3761580 Jun 14 2000 14:16:05 cat4000.6-1-
3 .. ffffffff d3b83f6b b1add0 25 3773884 Jul 10 2000 09:06:25 cat4000.6-1-
21040 bytes available (11382224 bytes used)
Related Commands
show flash
disable
Use the disable command to return to normal mode from privileged mode.
disable
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to return to normal mode:
Console> (enable) disable
Related Commands
enable
disconnect
Use the disconnect command to close an active console port or Telnet session.
disconnect {ip_addr | console}
Syntax Description
ip_addr
|
Source IP address or IP alias of the session to disconnect; in dot notation, for example, 101.102.103.104.
|
console
|
Keyword that specifies to clear an active session on the console port.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If multiple sessions from the same IP address exist, the system checks if the current session originated from the specified IP address. If the session did not originate from the specified IP address, all Telnet sessions from the address are disconnected. If the session does originate from the specified address, all sessions, other than the current session, are disconnected. The system prompts whether to disconnect the current Telnet session. You can answer n and remain connected or answer y and be disconnected.
Examples
This example shows how to close a Telnet session to host 192.168.255.255 (the 1 in parenthesis indicates the number of active sessions disconnected):
Console> (enable) disconnect 192.168.255.255
Telnet session from 192.168.255.255 disconnected. (1)
This example shows how to close the current console session:
Console> (enable) disconnect console
Console session disconnected.
Related Commands
telnet
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.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
The (enable) in the prompt indicates that privileged commands can be entered.
Examples
This example shows how to enter privileged mode:
Related Commands
disable
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:.
|
Defaults
The default number of spare sectors is 0.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
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.
Examples
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):
Format device slot1 completed.
help—ROM monitor
Use the help command to display a listing of commands you can use to set switch features.
help
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
ROM monitor command.
Command Modes
Normal.
Examples
This example shows how to display the commands list:
alias set and display aliases command
dir list files in file system
squeeze remove deleted files
history monitor command history
repeat repeat a monitor command
boot boot an image from flash/network
clear clear configurations, use 'clear help' for more info
help print list of available commands
set show/set environment vars, use 'set help' for more info
show show config parameters, use 'show help' for more info
sprom display sprom contents
version display version info
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.
Defaults
This command has no defaults.
Command Types
ROM monitor command.
Command Modes
Normal.
Usage Guidelines
This command is aliased to h by the ROM monitor for convenience.
Examples
This example shows how to use the history command:
=============================================================================
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.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
The history buffer size is fixed at 20 commands. Refer to the "Command-Line Interfaces" chapter for detailed information about the command history feature.
Examples
This example shows how to display the command history and execute the second entry in the command history buffer:
meminfo
Use the meminfo command to display information about the main memory, packet memory, and NVRAM.
meminfo [-l]
Syntax Description
-l
|
(Optional) Keyword to specify the long listing, which displays the supported DRAM configurations.
|
Defaults
This command has no default setting.
Command Types
ROM monitor command.
Command Modes
Normal.
Usage Guidelines
The minus sign (-) is required with the -l option.
Examples
This example shows how to use the meminfo command:
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.
ping—ROM monitor
Use the ping command to send ICMP echo-request packets to another node on the network.
ping host
Syntax Description
host
|
IP address of the host.
|
Defaults
This command has no default settings.
Command Types
ROM monitor command.
Command Modes
Normal.
Usage Guidelines
You must enter the IP address of the node because ROM monitor does not support DNS name resolution.
Examples
This example shows how to ping 10.1.1.1:
ping—switch
Use the ping command set to send ICMP echo-request packets to another node on the network. You can also use the ping command without arguments to configure ping.
ping -s host
ping -s host [packet_size] [packet_count]
Syntax Description
-s
|
Keyword to cause ping to send one datagram per second, printing one line of output for every response received.
|
host
|
IP address or IP alias of the host.
|
packet_size
|
(Optional) Number of bytes in a packet, from 56 to 1472 bytes.
|
packet_count
|
(Optional) Number of packets to send; valid values are from 0 to 2,147,483,647.
|
Defaults
The defaults for ping -s are:
•
packet_size is 56 bytes
•
packet_count is 2,147,483,647
The defaults for ping with no arguments are:
•
packet_size is 56 bytes
•
packet_count is 5
•
Wait time is 2 seconds
•
Target IP address is none (this is a mandatory field)
•
Source address is the host IP address
Command Types
Switch command.
Command Modes
Normal. Privileged to configure ping.
Usage Guidelines
The following guidelines are general ping command guidelines:
•
Pinging stops when you press Ctrl-C.
•
A continuous ping occurs when packets are generated continuously and are dispatched to the host unless you press Ctrl-C to stop pinging.
•
The actual packet size is 8 bytes larger than the size you specify because the switch adds header information.
•
Normal response—The normal response occurs in 1 to 10 seconds, depending on network traffic.
The following guidelines are for the ping -s command:
•
The maximum waiting time before timing out is 2 seconds.
•
A new ping packet is generated after one second of sending the previous packet, regardless of whether an echo-reply is received or not.
•
A continuous ping occurs if you do not enter a packet count.
•
Network or host unreachable—The switch found no corresponding entry in the route table.
•
Destination does not respond—If the host does not respond, a "no answer from host" appears in 2 seconds.
•
Destination unreachable—The gateway for this destination indicates that the destination is unreachable.
The following guidelines are for the ping command without arguments:
•
The ping ip_address command is accepted in normal mode only. The parameters take the default values automatically.
•
The target IP address is a mandatory field to be entered.
•
The maximum waiting time is configurable.
•
A new ping packet is generated only when a echo-reply is received.
•
A continuous ping occurs if you enter a packet count of 0.
•
Output returns only when a response is received or you press Return. This is available in privileged mode only.
•
When configuring ping, you must either press Return or enter a response. Valid responses and appropriate values are as follows:
–
Target IP address—IP address or host name of the destination node you plan to ping.
–
Number of Packets—Number of ping packets to be sent to the destination address; valid values are from 0 to 2,147,483,647 (0 specifies continuous ping).
–
Datagram size—Size of the ping packet; valid values are from 56 to 1472 bytes.
–
Timeout in seconds—Timeout interval; valid values are from 0 to 3600 seconds.
–
Source IP Address [(default)]—IP address or IP alias of the source.
This example shows how to ping a host with IP alias elvis a single time:
-----172.20.52.19 PING Statistics------
5 packets transmitted, 5 packets received, 0% packet loss
round-trip (ms) min/avg/max = 1/1/1
This example shows how to ping a host with the IP alias elvis once per second until you press Ctrl-C to stop pinging:
ping elvis: 56 data bytes
64 bytes from elvis: icmp_seq=0. time=11 ms
64 bytes from elvis: icmp_seq=1. time=8 ms
64 bytes from elvis: icmp_seq=2. time=8 ms
64 bytes from elvis: icmp_seq=3. time=7 ms
64 bytes from elvis: icmp_seq=4. time=11 ms
64 bytes from elvis: icmp_seq=5. time=7 ms
64 bytes from elvis: icmp_seq=6. time=7 ms
----elvis PING Statistics----
7 packets transmitted, 7 packets received, 0% packet loss
round-trip (ms) min/avg/max = 7/8/11
This example shows how to configure ping:
Target IP Address []: 172.20.52.19
Timeout in seconds [2]: 1
Source IP Address [172.20.52.18]:
----172.20.52.19 PING Statistics----
6 packets transmitted, 6 packets received, 0% packet loss
round-trip (ms) min/avg/max = 1/1/1
Related Commands
set interface
set ip route—switch
show interface—switch
show ip route—switch
pwd
Use the pwd command to show the current default Flash device.
pwd [mod]
Syntax Description
mod
|
(Optional) Module number of the supervisor engine for which to display the current default Flash device.
|
Defaults
If no module number is specified, pwd defaults to the active supervisor engine.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to use the pwd command to display the current default Flash device:
Default flash device set to slot0.
quit
Use the quit command to exit a CLI session.
quit
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
The exit and logout commands perform the same function as the quit command.
Examples
This example shows how to quit a CLI session:
Connection closed by foreign host.
reconfirm vmps
Use the reconfirm vmps command to reconfirm the current dynamic port VLAN membership assignments with the VMPS server.
reconfirm vmps
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
VMPS database changes are not conveyed automatically to switches participating in VMPS. Therefore, after making a VMPS database change, use this command on VMPS clients and servers to apply the database changes.
Examples
This example shows how to reconfirm the current dynamic port VLAN membership with VMPS:
Console (enable) reconfirm vmps
reconfirm process started
Use 'show dvlan statistics' to see reconfirm status
Related Commands
show dvlan statistics
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.
|
Defaults
If no argument is specified, the last command is repeated.
Command Types
ROM monitor command.
Command Modes
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:
File size Checksum File name
1973032 bytes (0x1e1b28) 0xdadf5e24 llue
File size Checksum File name
1973032 bytes (0x1e1b28) 0xdadf5e24 llue
Main memory size: 0x1000000
Available main memory starts at 0xa000e000, size 0xff2000
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 that specifies to reset the entire switch.
|
Defaults
This command has no default setting.
Command Types
ROM monitor command.
Command Modes
Normal.
Examples
This example shows how to use the reset command:
System Bootstrap, Version 3.1(1.69)
Copyright (c) 1994-1997 by cisco Systems, Inc.
Supervisor III processor with 16384 Kbytes of main memory
===========================================================================
reset—switch
Use the reset command to restart the system or an individual module and to schedule a system reset.
reset [mod_num | system | mindown]
reset [mindown] at {hh:mm} [mm/dd] [reason]
reset [mindown] in [hh:] {mm} [reason]
reset cancel
Syntax Description
mod_num
|
(Optional) Number of the module to be restarted.
|
system
|
(Optional) Keyword that specifies to reset the system.
|
mindown
|
(Optional) Keyword that specifies to perform a reset as part of a minimal downtime software upgrade in a system with redundant supervisor engine modules.
|
at
|
Keyword that specifies to schedule a system reset at a specific future time.
|
hh:mm
|
Variable specifying the hour and minute of the scheduled reset.
|
mm/dd
|
(Optional) Month and data of scheduled reset.
|
in
|
Keyword that specifies to schedule a system reset in a specific time.
|
hh:
|
(Optional) Variable specifying how many hours into the future to reset the switch.
|
mm
|
Variable specifying how many minutes into the future to reset the switch.
|
reason
|
(Optional) Variable indicating the reason for the reset.
|
cancel
|
Keyword that specifies to cancel a scheduled reset.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
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-Catalyst 4000 Family, 2948G, and 2980G Switches.
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.
Examples
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
This example shows how to schedule a reset for a specific future time and include a reason for the reset:
cat> (enable) reset at 23:00 8/18 Software upgrade to 5.3(1).
Reset scheduled at 23:00:00, Wed Aug 18 2000.
Reset reason: Software upgrade to 5.3(1).
Proceed with scheduled reset? (y/n) [n]? y
Reset scheduled for 23:00:00, Wed Aug 18 2000 (in 0 day 8 hours 39 minutes).
This example shows how to schedule a reset with minimum down time.
cat> (enable) reset mindown at 23:00 8/18 Software upgrade to 5.3(1).
Reset scheduled at 23:00:00, Wed Aug 18 2000.
Reset reason: Software upgrade to 5.3(1).
Proceed with scheduled reset? (y/n) [n]? y
Reset mindown scheduled for 23:00:00, Wed Aug 18 2000 (in 0 day 8 hours 39 minutes).
This example shows how to schedule a reset after a specified time:
cat> (enable) reset in 5:20 Configuration update
Reset scheduled in 5 hours 20 minutes.
Reset reason: Configuration update
Proceed with scheduled reset? (y/n) [n]? y
Reset scheduled for 19:56:01, Wed Aug 18 2000 (in 5 hours 20 minutes).
Reset reason: Configuration update
This example shows how to cancel a scheduled reset:
cat> (enable) reset cancel
Cancel reset scheduled for 19:56:01, Wed Aug 18 2000 (in 5 hours 20 minutes).
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
Syntax Description
mod
|
Number of the ATM or RSM module.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
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.
Examples
This example shows how to open a session with an ATM module (module 4):
Escape character is `^]'.