|
|
This chapter contains an alphabetical listing of all switch and ROM monitor commands available on the Catalyst 5000 family, 4000 family, 2926G series, and 2948G switches.
Use the alias command to set and display aliases.
alias [name=value]
name= | (Optional) Name you give to the alias. |
value | (Optional) Value of the alias. |
This command has no default settings.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
ROM monitor command.
Normal.
If value contains white space or other special (shell) characters, you must use quotation marks. If value has a space as its last character, the next command line word is checked for an alias (normally, only the first word on a command line is checked).
Without an argument, this command prints a list of all aliased names with their values.
An equal sign (=) is required between the name and value of the alias.
This example shows how to display a list of available alias commands and how to create an alias for the set command:
rommon 1 > alias r=repeat h=history ?=help b=boot ls=dir i=reset k=stack rommon 2 > alias s=set rommon 3 > alias r=repeat h=history ?=help b=boot ls=dir i=reset k=stack s=set rommon 4 > s PS1=rommon ! > BOOT=bootflash:RTSYNC_llue_11,1;slot0:f1,1; =========================================================================
Use the boot command to boot up an external process.
boot [-xv] [device][imagename]
-x | (Optional) Load the image but do not execute. |
-v | (Optional) Toggle verbose mode. |
device | (Optional) ID of the device. |
imagename | (Optional) Name of the image. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
ROM monitor command.
Normal.
With no arguments, boot will boot the first image in Flash. Specify an image by typing its name. Specify the device by typing the device ID.
You must specify a device name.
This example shows how to use the boot command:
rommon> boot -x bootflash:cat5000-sup3.5-1-0-59.bin CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC Uncompressing file: ####################################################################################################################################################################################################################################################################
Use the cd command to set the default Flash device for the system.
cd [[m/]device:]]
m/ | (Optional) Module number of the supervisor engine containing the Flash device. |
device: | (Optional) Flash device name. Valid devices include bootflash:, slot0:, and slot1:. |
The default Flash device is bootflash.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
A colon (:) is required after the specified device.
For those commands where device is an option, the device set by cd is used if a Flash device is not specified.
In the Catalyst 5000 family switches, this command is supported on the Supervisor Engine III and III F.
This example shows how to set the system default Flash device to bootflash:
Console> (enable) cd bootflash: Console> (enable)
Use the clear alias command to clear the shorthand versions of commands.
clear alias {name | all}
name | Alternate identifier of the command. |
all | Keyword that identifies every alternate identifier previously created. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to erase the arpdel alias:
Console> (enable) clear alias arpdel Command alias deleted. Console> (enable)
This example shows how to erase all the aliases:
Console> (enable) clear alias all Command alias table cleared. (1) Console> (enable)
(1) indicates the number of entries cleared.
Use the clear arp command to delete a specific entry or all entries from the ARP table.
clear arp {ip_addr | all}
ip_addr | Specific IP address in the ARP table to be cleared. An IP alias or host name that can be resolved through the DNS can be specified instead of an IP address. |
all | Keyword that specifies every IP address in the ARP table. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to remove IP address 198.133.219.209 from the ARP table:
Console> (enable) clear arp 198.133.219.209 ARP entry deleted. Console> (enable)
This example shows how to remove all entries from the ARP table:
Console> (enable) clear arp all ARP table cleared. (1) Console> (enable)
(1) indicates the number of entries cleared.
Use the clear banner motd command to clear the message-of-the-day banner.
clear banner motdThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
You can use either the clear banner motd command or the set banner motd ## command to clear the message-of-the-day banner.
This example shows how to clear the message-of-the-day banner:
Console> (enable) clear banner motd MOTD banner cleared Console> (enable)
Use the clear boot command to clear the contents of the BOOT environment variable and the configuration register setting.
clear boot system all [mod]
all | Keyword to specify clearing the whole BOOT environment variable. |
mod | (Optional) Module number of the supervisor engine on which to clear the BOOT environment variable. |
flash | Keyword to specify the Flash file system. |
device: | (Optional) Valid devices include bootflash, slot0, and slot1 for Catalyst 5000 family and 2926G series switches and bootflash for the Catalyst 4000 family and 2948G switches. |
filename | (Optional) Filename of the system image on the Flash device. |
auto-config | Keyword to specify the auto-config file. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
If you want to rearrange the booting order, you can use the prepend keyword with the set boot system command or you can clear the entire BOOT environment variable using the clear boot system command and then redefine the list.
In the Catalyst 5000 family switches, this command is supported on the Supervisor Engine III and III F.
This example shows how to clear the contents of the flash device:
Console> (enable) clear boot system all BOOT variable = Console> (enable)
This example shows how to clear the auto-config file:
Console> (enable) clear boot auto-config CONFIG_FILE variable = Console> (enable)
show boot
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Tue Oct 5 10:57:03 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.