|
This chapter provides a quick command reference for the Catalyst 5000 series switch command-line interface (CLI).
Table 1-1 lists command aliases that have been defined for ease of use. Like regular commands, aliases are not case sensitive. However, unlike regular commands, some aliases cannot be abbreviated.
Alias | Command |
---|---|
? | help |
batch | configure |
di | show |
earl | cam |
exit | quit |
logout | quit |
Table 1-2 identifies each command in the switch command set, shows the command syntax, provides a short description, and specifies the mode for the command.
Command | Syntax | Description | Mode1 |
---|---|---|---|
clear alias | clear alias {name | all} | Clears the specified alias of a command. | P |
clear arp | clear arp {ip_address | all} | Clears ARP2 table entries. | P |
clear banner motd | clear banner motd | Clears the message of the day banner. | P |
clear cam | clear cam {mac_addr | dynamic | static | permanent} [vlan] | Clears CAM3 table entries. | P |
clear cgmp statistics | clear cgmp statistics | Clears CGMP4 statistical information. | P |
clear config | clear config {mod_num | rmon | all} | Clears the configuration and resets the system. | P |
clear counters | clear counters | Clears MAC5 and port counters. | P |
clear help | clear help | Lists the available clear commands. | P |
clear ip alias | clear ip alias {name | all} | Clears aliases of IP addresses. | P |
clear ip dns domain | clear ip dns domain | Clears the default DNS6 domain name. | P |
clear ip dns server | clear ip dns server {ip address | all} | Clears the IP address of a DNS server. | P |
clear ip permit | clear ip permit {ip_address | all} | Clears hosts from the IP permit list | P |
clear ip route | clear ip route {destination gateway | all} | Clears IP routing table entries. | P |
clear log | clear log [mod_num] | Deletes all entries in the system error log. | P |
clear logging buffer | clear logging buffer | Clears the system logging buffer. | P |
clear logging server | clear logging server ip_addr | Deletes a syslog server from the configuration. | P |
clear multicast router | clear multicast router {mod_num/port_num | all} | Clears multicast router ports. | P |
clear ntp server | clear ntp server {ip_addr | all} | Deletes an NTP7 server from the server table. | P |
clear port broadcast | clear port broadcast mod_num/port_num | Disables broadcast/multicast suppression on one or more ports. | P |
clear snmp trap | clear snmp trap {rcvr_address | all} | Clears SNMP8 trap receiver addresses. | P |
clear spantree portvlanpri | clear spantree portvlanpri mod_num/port_num vlans | Clears spanning-tree port VLAN9 priority. | P |
clear tacacs key | clear tacacs key | Clears the key used for TACACS+10 authentication and encryption. | P |
clear tacacs server | clear tacacs server ip_addr | Removes a host from the list of TACACS+ servers. | P |
clear timezone | clear timezone | Clears NTP time zone information. | P |
clear trunk | clear trunk mod_num/port_num [vlans] | Resets trunk ports and clears information from the trunk table. | P |
clear vlan | clear vlan vlan_num | Deletes a VLAN from a management domain. | P |
clear vmps server | clear vmps server ip_addr | Removes a VMPS11 server from the VMPS table. | P |
clear vmps statistics | clear vmps statistics | Deletes VMPS statistics. | P |
clear vtp pruneeligible | clear vtp pruneeligible vlan_num | Turns off the pruning eligibility of a VLAN. | P |
clear vtp statistics | clear vtp statistics | Clears VTP12 statistics. | P |
configure | configure {host file | network} | Downloads a configuration file from the network and executes each command in the file. | P |
disable | disable | Returns the CLI to normal mode. | P |
disconnect | disconnect {ip_addr | console} | Closes an active console port or Telnet session. | P |
download | download host file [module_num] | Copies a software image from a host to a module's Flash memory. | P |
download serial | download serial | Copies software images to the supervisor card or Flash memory through a serial port. | P |
download vmps | download vmps | Downloads VMPS database information. | P |
enable | enable | Activates CLI privileged mode. | N |
help | help | Lists the commands available in the current command mode. | N, P |
history | history | Shows the contents of the command history buffer. | N |
ping | ping [-s] host [packet_size] [packet_count] | Sends ICMP echo request packets to another node on the network. | N |
quit | quit | Exits the CLI session. | N |
reconfirm vmps | reconfirm vmps | Reconfirms the current dynamic port VLAN membership with VMPS. | P |
reset | reset {mod_num | system} | Sets the system to its default values or configures the system as an individual module. | P |
session | session mod_num | Connects the CLI to a session on a module (such as the ATM13 or RSM14 modules). | P |
set alias | set alias name command [parameter] [parameter] | Creates an alias for a command. | P |
set arp | set arp {ip_addr hw_addr | agingtime agingtime} | Creates an ARP table entry, and sets the ARP entry aging time. | P |
set authentication enable | set authentication enable {tacacs | local} {enable | disable} | Sets TACACS+ enable authentication (for privileged mode access). | P |
set authentication login | set authentication login {tacacs | local} {enable | disable} | Sets TACACS+ login authentication (for login access). | P |
set banner motd | set banner motd c [text] c | Sets the message-of-the-day banner. | P |
set bridge apart | set bridge apart {enable | disable} | Enables or disables APaRT15 on FDDI.16 | P |
set bridge fddicheck | set bridge fddicheck {enable | disable} | Enables or disables FDDICHECK on FDDI. | P |
set bridge help | set bridge help | Lists the available set bridge commands. | P |
set bridge ipx 8022toether | set bridge ipx 8022toether {8023 | SNAP | EII | 8023RAW} | Sets the default mode for translating IPX frames from FDDI 802.2 to Ethernet. | P |
set bridge ipx 8023rawtofddi | set bridge ipx 8023rawtofddi {8022 | SNAP | FDDIRAW} | Sets the default mode for translating IPX frames from Ethernet 802.3 raw to FDDI. | P |
set bridge ipx snaptoether | set bridge ipx snaptoether {8023 | SNAP | EII | 8023RAW} | Sets the default mode for translating IPX FDDI SNAP17 frames to Ethernet frames. | P |
set cam | set cam {dynamic | static | permanent} {unicast_mac | multicast_mac} mod/ports [vlan] set cam agingtime vlan agingtime | Creates a CAM table entry, and sets the CAM aging time. | P |
set cdp | set cdp {enable | disable} {mod_num/port_num | all} | Enables or disables CDP18 on a port. | P |
set cdp interval | set cdp interval {mod_num/port_num | all} interval | Sets the message interval for CDP. | P |
set cgmp | set cgmp {enable | disable} | Enables or disables CGMP. | P |
set enablepass | set enablepass | Sets the enable (privileged) password. | P |
set fddi alarm | set fddi alarm mod_num/port_num value | Sets the LER19-alarm value. | P |
set fddi cutoff | set fddi cutoff mod_num/port_num value | Sets the LER-cutoff value. | P |
set fddi help | set fddi help | Lists the available set fddi commands. | P |
set fddi tlmin | set fddi tlmin mod_num/port_num microseconds | Sets the TL_MIN value for an FDDI port. | P |
set fddi tnotify | set fddi tnotify mod_num time | Sets the T_Notify timer value for an FDDI port. | P |
set fddi treq | set fddi treq mod_num time | Sets the TRequest value for an FDDI module. | P |
set fddi userdata | set fddi userdata mod_num [userdata_string] | Sets the user-data string in the SMT20 MIB21 of an FDDI module. | P |
set help | set help | Lists the available set commands. | N |
set interface | set interface {sc0 | sl0} {up | down} set interface sc0 [ip_address [netmask [broadcast]]] set interface sl0 slip_address dest_address | Sets a network interface configuration. | P |
set ip alias | set ip alias name ip_addr | Creates an alias for an IP address. | P |
set ip dns | set ip dns {enable | disable} | Enables or disables DNS. | P |
set ip dns domain | set ip dns domain name | Sets the default DNS domain name. | P |
set ip dns server | set ip dns server ip_addr [primary] | Sets the IP address of a DNS server. | P |
set ip fragmentation | set ip fragmentation {enable | disable} | Enables or disables IP fragmentation for packets bridged between FDDI and Ethernet networks. | P |
set ip help | set ip help | Lists the available set ip commands. | P |
set ip permit | set ip permit {enable | disable} set ip permit ip_address [mask] | Enables or disables the IP permit list, and creates entries in the IP permit list. | |
set ip redirect | set ip redirect {enable | disable} | Enables or disables ICMP redirect messages. | |
set ip route | set ip route destination gateway [metric] | Adds entries to the IP routing table. | P |
set ip unreachable | set ip unreachable {enable | disable} | Enables or disables ICMP unreachable messages. | P |
set length | set length number [default] | Sets the number of lines in the terminal display screen. | N |
set logging console | set logging console {enable | disable} | Enables and disables system message logging to the console. | P |
set logging level | set logging level facility severity [default] | Sets the facility and severity level for system message logging. | P |
set logging server | set logging server {enable | disable} set logging server ip_addr | Enables or disables system message logging to syslog servers, and adds syslog servers to the system logging server table. | P |
set logging session | set logging session {enable | disable} | Enables and disables system logging messages to the current login session. | P |
set logout | set logout timeout | Sets the number of minutes before an automatic logout. | P |
set module disable | set module disable mod_num | Disables a module. | P |
set module enable | set module enable mod_num | Enables a module. | P |
set module help | set module help | Lists the available set module commands. | P |
set module name | set module name module_num [module_name] | Sets the name of a module. | P |
set multicast router | set multicast router mod_num/port_num | Configures multicast router ports. | P |
set ntp broadcastclient | set ntp broadcastclient {enable | disable} | Enables or disables NTP in broadcast-client mode. | P |
set ntp broadcastdelay | set ntp broadcastdelay microseconds | Configures a delay for the receiving of broadcast NTP packets. | P |
set ntp client | set ntp client {enable | disable} | Enables or disables the switch as an NTP client. | P |
set ntp server | set ntp server ip_addr | Configures the IP address of the NTP server. | P |
set password | set password | Sets the console password. | P |
set port broadcast | set port broadcast mod_num/port_num threshold[%] | Sets the broadcast/multicast suppression for one or more ports. | P |
set port channel | set port channel port_list {on | off} | Enables or disables Fast EtherChannel on two or more ports. | P |
set port | set port {enable | disable} mod_num/port_num | Enables or disables a port. | P |
set port duplex | set port duplex mod_num/port_num {full | half} | Sets the port duplex mode. | P |
set port help | set port help | Lists the available set port commands. | P |
set port level | set port level mod_num/port_num {normal | high} | Sets the priority level of a port. | P |
set port membership | set port membership mod_num/port_num {dynamic | static} | Dynamically or statically assigns a port to a VLAN membership. | P |
set port name | set port name mod_num/port_num [name_string] | Sets the name of a port. | P |
set port security | set port security mod_num/port_num {enable | disable} [mac_addr] | Enables or disables port security on a port of an Ethernet module. | P |
set port speed | set port speed mod_num/port_num {10 | 100 | auto} | Sets the port speed. | P |
set port trap | set port trap mod_num/port_num {enable | disable} | Enables or disables the standard SNMP link trap (up or down) for a port. | P |
set prompt | set prompt prompt_string | Sets the CLI prompt. | P |
set snmp community | set snmp community {read-only | read-write | read-write-all} [community_string] | Sets SNMP communities and associated access types. | P |
set snmp help | set snmp help | Lists the available set snmp commands. | P |
set snmp rmon | set snmp rmon {enable | disable} | Enables or disables SNMP RMON22 support. | P |
set snmp trap | set snmp trap {enable | disable} [all | module | chassis | bridge | repeater | auth | vtp | ippermit] set snmp trap rcvr_address rcvr_community | Enables or disables SNMP traps, and sets the SNMP trap receiver address and community. | P |
set span | set span {enable | disable} set span {src_mod/src_port | src_vlan} dest_mod/dest_port [rx | tx | both] | Enables or disables SPAN23 and sets the source and destination SPAN ports. | P |
set spantree disable | set spantree disable [vlan] | Disables spanning tree. | P |
set spantree enable | set spantree enable [vlan] | Enables spanning tree. | P |
set spantree fwddelay | set spantree fwddelay delay [vlan] | Sets the bridge forward delay for a VLAN. | P |
set spantree hello | set spantree hello interval [vlan] | Sets the bridge hello interval for a VLAN. | P |
set spantree help | set spantree help | Lists the available set spantree commands. | P |
set spantree maxage | set spantree maxage agingtime [vlan] | Sets the bridge maximum aging time for a VLAN. | P |
set spantree portcost | set spantree portcost mod_num/port_num cost | Sets the bridge path cost for a port. | P |
set spantree portfast | set spantree portfast mod_num/port_num {enable | disable} | Enables or disables fast-start mode on a port. | P |
set spantree portpri | set spantree portpri mod_num/port_num priority | Sets the bridge priority for a spanning-tree port. | P |
set spantree portvlanpri | set spantree portvlanpri mod_num/port_num priority [vlans] | Sets the port priority for a subset of VLANs in the trunk port. | P |
set spantree priority | set spantree priority bridge_priority [vlan] | Sets the bridge priority for a VLAN. | P |
set summertime | set summertime {enable | disable} [zone] | Sets the clock adjustment for daylight saving time. | P |
set system baud | set system baud rate | Sets the console port baud rate. | P |
set system contact | set system contact [contact_string] | Sets the system contact information. | P |
set system help | set system help | Lists the available set system commands. | P |
set system location | set system location [location_string] | Sets the system location information. | P |
set system modem | set system modem {enable | disable} | Enables or disables modem control lines on the console port. | P |
set system name | set system name [name_string] | Sets the system name. | P |
set tacacs attempts | set tacacs attempts count | Sets the maximum number of TACACS+ login attempts allowed. | P |
set tacacs directedrequest | set tacacs directedrequest {enable | disable} | Sets the TACACS+ directed-request option. | P |
set tacacs key | set tacacs key key | Sets the TACACS+ authentication and encryption key. | P |
set tacacs server | set tacacs server ip_addr [primary] | Sets the IP address of TACACS+ servers. | P |
set tacacs timeout | set tacacs timeout seconds | Sets the response timeout interval for the TACACS+ server daemon. | P |
set time | set time [day_of_week] [mm/dd/yy] [hh:mm:ss] | Sets the system time. | P |
set timezone | set timezone [zone_name] [hours [minutes]] | Sets the time zone. | P |
set trunk | set trunk mod_num/port_num [on | off | desirable | auto] [vlan_range] | Configures trunk ports. | P |
set vlan | set vlan vlan_num mod/ports set vlan vlan_num [name name] [type {ethernet | fddi | token_ring | fddi_net | tr_net}] [state {active | suspend}] [said said] [mtu mtu] [ring ring_number] [bridge bridge_number] [stp {ieee | ibm}] [parent vlan_num] [translation vlan_num] | Creates and configures options for VLANs. | P |
set vmps server | set vmps server ip_addr [primary] | Sets the IP address of the VMPS server. | P |
set vmps state | set vmps state {enable | disable} | Enables or disables VMPS. | P |
set vmps tftpserver | set vmps tftpserver ip_addr [filename] | Specifies the IP address of the VMPS TFTP24 server. | P |
set vtp | set vtp [domain name] [mode {client | server | transparent}] [passwd passwd] [pruning {enable | disable}] | Sets VTP options. | P |
set vtp pruneeligible | set vtp pruneeligible vlan_range | Configures pruning eligibility for the device. | P |
show alias | show alias [name] | Shows aliases for commands. | N |
show arp | show arp [noalias] | Shows the ARP table. | N |
show bridge | show bridge | Displays bridge information. | N |
show cam | show cam {dynamic | static | permanent | system} [vlan] show cam {dynamic | static | permanent} mod_num/port_num show cam mac_addr [vlan] | Shows the CAM table. | N |
show cam agingtime | show cam agingtime | Shows CAM aging time information for all configured VLANs. | N |
show cdp | show cdp neighbors [mod_num[/port_num]] [detail] show cdp port [mod_num[/port_num]] | Shows CDP information. | N |
show cgmp statistics | show cgmp statistics [vlan_id] | Displays CGMP statistical information. | N |
show config | show config | Shows the current system configuration. | P |
show dvlan statistics | show dvlan statistics | Shows statistics based on results of the reconfirm vmps command. | N |
show fddi | show fddi | Displays the settings of the FDDI/CDDI modules. | N |
show fddicam | show fddicam mod_num [fddi] [mac_addr] | Displays the CAM table for the FDDI/CDDI modules. | N |
show flash | show flash | Lists Flash code information. | P |
show help | show help | Lists the available show commands. | N |
show interface | show interface | Shows information about network interfaces. | N |
show ip alias | show ip alias [name] | Shows aliases for IP addresses. | N |
show ip dns | show ip dns | Shows the DNS name server and the default domain name. | N |
show ip help | show ip help | Lists the show ip commands. | N |
show ip permit | show ip permit [noalias] | Shows IP permit list information. | N |
show ip route | show ip route [noalias] | Displays the IP routing table. | N |
show log | show log [mod_num] | Displays system and module error logs. | N |
show logging | show logging | Displays the system message log configuration. | N |
show logging buffer | show logging buffer [-] [number_of_messages] | Displays system messages from the internal buffer. | N |
show mac | show mac [mod_num[/port_num]] | Shows MAC counters. | N |
show module | show module [mod_num] | Shows module information. | N |
show multicast group | show multicast group [cgmp] [mac_addr] [vlan_id] | Displays the multicast group configuration. | N |
show multicast router | show multicast router [cgmp] [mod_num/port_num] [vlan_id] | Displays the multicast router configuration. | N |
show netstat | show netstat [tcp | udp | ip | icmp | routes | stats | interfaces] | Shows currently active network connections and network statistics for the TCP/IP stack. | N |
show ntp | show ntp | Displays the current NTP status. | N |
show port | show port [mod_num[/port_num]] | Shows port status and counters. | N |
show port channel | show port channel [mod_num[/port_num] | Shows Fast EtherChannel information. | N |
show snmp | show snmp [noalias] | Shows SNMP information. | N |
show span | show span | Shows SPAN port monitoring information. | N |
show spantree | show spantree [vlan] show spantree mod_num/port_num | Shows spanning-tree information. | N |
show summertime | show summertime | Displays the current status of the summertime feature. | N |
show system | show system | Shows system information. | N |
show tacacs | show tacacs [noalias] | Displays the TACACS+ configuration. | N |
show test | show test [mod_num] | Shows the results of diagnostic tests. | N |
show time | show time | Shows the current system time. | N |
show timezone | show timezone | Shows the current time zone and offset. | N |
show trunk | show trunk [mod_num[/port_num]] | Shows trunking information for the switch. | N |
show users | show users [noalias] | Shows whether the console port is active, and lists all active Telnet sessions. | N |
show version | show version | Shows software and hardware version information. | N |
show vlan | show vlan [vlan] [trunk | notrunk] | Shows VLAN information. | N |
show vmps | show vmps [noalias] | Displays VMPS configuration information. | N |
show vmps mac | show vmps mac [mac_address] | Displays the MAC-address-to-VLAN mapping table. | N |
show vmps server | show vmps server [noalias] | Displays the IP addresses of VMPS servers. | N |
show vmps statistics | show vmps statistics | Displays VMPS statistics. | N |
show vmps vlan | show vmps vlan vlan_name | Displays MAC address to VLAN mappings in the VMPS table. | N |
show vmps vlanports | show vmps vlanports vlan_name | Displays ports belonging to a restricted VLAN. | N |
show vtp domain | show vtp domain | Shows VTP domain information. | N |
show vtp help | show vtp help | Lists the available show vtp commands. | N |
show vtp statistics | show vtp statistics | Shows VTP statistics. | N |
slip | slip {attach | detach} | Attaches or detaches SLIP25 for the console port. | P |
telnet | telnet host [port] | Starts a Telnet connection to a remote host. | P |
test help | test help | Lists the available test commands. | P |
test snmp trap | test snmp trap trap_number [specific_number] | Sends an SNMP trap message to the trap receivers. | P |
upload | upload host file [module_num] | Uploads a software image to a network host. | P |
wait | wait seconds | Causes the CLI to pause for a specified number of seconds. | N |
write | write {host file | network | terminal} | Uploads the current configuration to a host or displays it on the terminal. | P |
|