Previous Topic

Next Topic

Book Contents

System Information and Statistics Commands

This section describes the commands you use to view information about system features, components, and configurations.

show arp switch

This command displays the contents of the IP stack’s Address Resolution Protocol (ARP) table. The IP stack only learns ARP entries associated with the management interfaces -network or service ports. ARP entries associated with routing interfaces are not listed.

The display parameters for above command are:

show eventlog

This command displays the event log, which contains error messages from the system. The event log is not cleared on a system reset. The <unit> is the switch identifier.

The display parameters for above command are:

NOTE: Event log information is retained across a switch reset.

show hardware

This command displays inventory information for the switch.

NOTE: The show version command and the show hardware command display the same information. In future releases of the software, the show hardware command will not be available. For a description of the command output, see the “show version” command.

show inventory

This command displays the inventory information for the switch.

The display parameters for above command are:

IO Cards:

PSU Card Status:

SFP Status:

Port No of the uplink port

System Fan Status:

show psu

This command displays the information for power supply unit.

The display parameters for the above command are:

PSU Card Status:

show sfp

This command displays the information for SFP.

The display parameter for the above commands are:

Port No of the uplink port.

show fan

This command displays the information of the fan.

The display parameters for the above command are:

System Fan Status:

show version

This command displays inventory information for the switch.

NOTE: The show version command will replace the show hardware command in future releases of the software.

The display parameters for above command are:

IO Cards :

show Interface

This command displays a summary of statistics for a specific interface or a count of all CPU traffic based upon the argument.

The display parameters, when the argument is <unit/slot/port>, is as follows:

The display parameters, when the argument is “switchport” is as follows:

show interface ethernet

This command displays detailed statistics for a specific interface or for all CPU traffic based upon the argument.

The when you specify a value for <unit/slot/port>, the command displays the following information:

If you use the switchport keyword, the following information appears:

show mac-addr-table

This command displays the forwarding database entries. These entries are used by the transparent bridging function to determine how to forward a received frame. Enter all or no parameter to display the entire table. Enter a MAC Address and VLAN ID to display the table entry for the requested MAC address on the specified VLAN. Enter the count parameter to view summary information about the forwarding database table. Use the interface <unit/slot/port> parameter to view MAC addresses on a specific interface. Use the vlan <vlan_id> parameter to display information about MAC addresses on a specified VLAN.

The following information displays if you do not enter a parameter, the keyword all, or the MAC address and VLAN ID. If you enter vlan <vlan_id>, only the Mac Address, Interface, and Status fields appear.

If you enter the interface <unit/slot/port> parameter, in addition to the MAC Address and Status fields, the following field appears:

clear mac-addr-table static

This command clears the static and sticky mac-addresses for a specified unit/slot/port, for all the ports, or for the entire switch based upon the argument.

Format:

clear mac-addr-table static

clear mac-addr-table static interface <unit/slot/port>

Mode: Privileged EXEC

clear mac-addr-table-dynamic

This command clears the dynamic and sticky mac-addresses for a specified unit/slot/port, for all the ports, or for the entire switch based upon the argument.

Format:

clear mac-addr-table dynamic

clear mac-addr-table dynamic interface <unit/slot/port>

Mode: Privileged EXEC

show process cpu

This command provides the percentage utilization of the CPU by different tasks.

NOTE: It is not necessarily the traffic to the CPU, but different tasks that keep the CPU busy. This command is available in VxWorks and Linux 2.6 only.

show running-config

Use this command to display or capture the current setting of different protocol packages supported on the switch. This command displays or captures commands with settings and configurations that differ from the default value. To display or capture the commands with settings and configurations that are equal to the default value, include the [all] option.

NOTE: Show running-config does not display the User Password, even if you set one different from the default.

The output is displayed in script format, which can be used to configure another switch with the same configuration. If the optional <scriptname> is provided with a file name extension of “.scr”, the output is redirected to a script file.

NOTE 1: If you issue the show running-config command from a serial connection, access to the switch through remote connections (such as Telnet) is suspended while the output is being generated and displayed.

NOTE 2: If you use a text-based configuration file, the show running-config command will only display configured physical interfaces, i.e. if any interface only contains the default configuration, that interface will be skipped from the show running-config command output. This is true for any configuration mode that contains nothing but default configuration. That is, the command to enter a particular config mode, followed immediately by its exit command, are both omitted from the show running-config command output (and hence from the startup-config file when the system configuration is saved.)

This command captures the current settings of OSPFv2 trapflag status:

show sysinfo

This command displays switch information.

The display parameters for above command are:

show tech-support

Use the show tech-support command to display system and configuration information when you contact technical support. The output of the show tech-support command combines the output of the following commands:

length value

Use this command to set the pagination length to value number of lines for the sessions specified by configuring on different Line Config modes (telnet/ssh/console) and is persistent.

no length value

Use this command to set the pagination length to the default value number of lines.

terminal length

Use this command to set the pagination length to value number of lines for the current session. This command configuration takes an immediate effect on the current session and is nonpersistent.

no terminal length

Use this command to set the value to the length value configured on Line Config mode depending on the type of session.

show terminal length

Use this command to display all the configured terminal length values.

show flash

This command displays “ROM and RAM” information like free and total ROM memory, files present in software partition, free and total RAM memory.

show bootvar

This command displays the images of currently available on the flash.

The display parameters for above command are:

See also

Utility Commands

Logging Commands

Email Alerting and Mail Server Commands

System Utility and Clear Commands

Simple Network Time Protocol (SNTP) Commands

DHCP Server Commands

DNS Client Commands

IP Address Conflict Commands

Serviceability Packet Tracing Commands

Cable Test Command

sFlow Commands

Switch Database Management Template Commands