Table Of Contents
show accounting
show alias
show arp
show authentication
show authorization
show boot
show boot device
show cam
show cam agingtime
show cam count
show cam msfc
show cdp
show channel
show channel group
show config
show config qos acl
show cops
show counters
22
show accounting
Use the show accounting command to display accounting setup and configuration information on the switch.
show accounting
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 the configuration details of a switch with RADIUS accounting enabled:
Console> (enable) show accounting
connect: Radius stop-only
TACACS+ Suppress for no username: disabled
Update Frequency: newinfo
Active Accounted actions on tty2168059284l, User NULL Priv 15
Task ID 3, EXEC Accounting record, 0,00:00:22 Elapsed
task_id=3 start_time=934463479 timezone=UTC service=shell
Active Accounted actions on tty0l, User kannank Priv 15
Task ID 2, EXEC Accounting record, 0,00:01:23 Elapsed
task_id=2 start_time=934463418 timezone=UTC service=shell
Active Accounted actions on tty2168059284l, User danny Priv 15
Task ID 4, Connection Accounting record, 0,00:00:07 Elapsed
task_id=4 start_time=934463495 timezone=UTC service=connection protocol=telnet
addr=-1407968771 cmd=telnet 172.20.25.253
Overall Accounting Traffic:
This example shows the configuration details of a switch with TACACS+ accounting enabled:
Console> (enable) show accounting
Update: periodic (25 seconds)
connect: disabled stop-only
system: disabled stop-only
network: disabled stop-only
config: disabled stop-only
connect: disabled stop-only
system: disabled stop-only
TACACS+ Suppress for no username: disabled
Update Frequency: newinfo
Active Accounted actions on tty2168059284l, User NULL Priv 15
Task ID 3, EXEC Accounting record, 0,00:00:22 Elapsed
task_id=3 start_time=934463479 timezone=UTC service=shell
Active Accounted actions on tty0l, User kannank Priv 15
Task ID 2, EXEC Accounting record, 0,00:01:23 Elapsed
task_id=2 start_time=934463418 timezone=UTC service=shell
Active Accounted actions on tty2168059284l, User danny Priv 15
Task ID 4, Connection Accounting record, 0,00:00:07 Elapsed
task_id=4 start_time=934463495 timezone=UTC service=connection protocol=telnet
addr=-1407968771 cmd=telnet 172.20.25.253
Overall Accounting Traffic:
Related Commands
set accounting commands
set accounting connect
set accounting exec
set accounting suppress
set accounting system
set accounting update
show alias
Use the show alias command to display a listing of defined command aliases.
show alias [name]
Syntax Description
name
|
(Optional) Name of the alias to be displayed.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
If name is not specified, all defined aliases are displayed.
Examples
This example shows how to display all aliases:
Related Commands
clear alias
set alias
show arp
Use the show arp command to display the ARP table.
show arp [ip_addr | hostname] [noalias]
Syntax Description
ip_addr
|
(Optional) Number of the IP address.
|
hostname
|
(Optional) Name of the host.
|
noalias
|
(Optional) Keyword to force the display to show only IP addresses, not IP aliases.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
ARP aging time is the period of time that indicates when an ARP entry is removed from the ARP table. Set this value by entering the set arp agingtime command. The remaining lines of the display show the mappings of IP addresses (or IP aliases) to MAC addresses.
Use the ip_addr or the hostname options to specify an IP host when the ARP cache is large.
Examples
This example shows how to display the ARP table:
Console> (enable) show arp
+ - Permanent Arp Entries
* 2.2.2.2 at 00-08-cc-44-aa-18 on vlan 5
+ 1.1.1.1 at 00-08-94-cc-02-aa on vlan 5
142.10.52.195 at 00-10-07-3c-05-13 port 7/1-4 on vlan 5
192.70.31.126 at 00-00-0c-00-ac-05 port 7/1-4 on vlan 5
121.23.79.121 at 00-00-1c-03-00-40 port 7/1-4 on vlan 5
Related Commands
clear arp
set arp
show authentication
Use the show authentication command to display authentication information.
show authentication
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Examples
This example shows how to display authentication information:
Console> show authentication
Console Session Telnet Session Http Session
--------------------- ---------------- --------------- -----------
tacacs disabled disabled disabled
radius disabled disabled enabled(*)
kerberos disabled disabled disabled
local enabled(*) enabled(*) enabled
local enabled(primary) enabled(primary) enabled(primary)
lockout timeout (sec) disabled disabled disabled
Enable Authentication: Console Session Telnet Session Http Session
---------------------- ----------------- ---------------- ----------------
tacacs disabled disabled disabled
radius disabled disabled disabled
kerberos disabled disabled disabled
local enabled(primary) enabled(primary) enabled(primary)
lockout timeout (sec) disabled disabled disabled
Related Commands
set authentication enable
set authentication login
show authorization
Use the show authorizaton command to display authorization setup and configuration information on the switch.
show authorization
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Examples
This example shows how to display authorization setup and configuration information:
Console> (enable) show authorization
Related Commands
set authorization commands
set authorization enable
set authorization exec
show boot
Use the show boot command to display the contents of the BOOT environment variables and the configuration register setting.
show boot [mod]
Syntax Description
mod
|
(Optional) Number of the supervisor engine containing the Flash device.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Examples
This example shows how to display the BOOT environment variable:
BOOT variable = bootflash:cat6000-sup.5-5-1.bin,1;slot0:cat6000-sup.5-4-1.bin,1;
CONFIG_FILE variable = slot0:switch.cfg
Configuration register is 0x800f
auto-config: non-recurring, overwrite, sync disabled
boot: image specified by the boot system commands
Related Commands
set boot auto-config
set boot config-register
set boot system flash
show boot device
Use the show boot device command to display the NAM boot string stored in NVRAM.
show boot device mod
Syntax Description
mod
|
Number of the module containing the Flash device.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
This command is supported by the NAM module only.
Examples
This example shows how to display the boot device information for module 2:
Console> show boot device 2
Device BOOT variable = hdd:2
Related Commands
clear boot device
set boot device
show cam
Use the show cam command set to display CAM table entries.
show cam {dynamic | static | permanent | system} mod/port
show cam mac_addr [vlan]
Syntax Description
dynamic
|
Keyword to display dynamic CAM entries.
|
static
|
Keyword to display static CAM entries.
|
permanent
|
Keyword to display permanent CAM entries.
|
system
|
Keyword to display system CAM entries.
|
mod/port
|
Number of the module and the port on the module.
|
mac_addr
|
MAC address.
|
vlan
|
(Optional) Number of the VLAN.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
If you specify a VLAN, then only those CAM entries matching the VLAN number are displayed.
If you do not specify a VLAN, all VLANs are displayed.
If the MAC address belongs to a router, it is shown by appending an "R" to the MAC address.
Examples
This example shows how to display dynamic CAM entries for all VLANs:
Console> show cam dynamic
* = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry.
VLAN Dest MAC/Route Des Destination Ports or VCs / [Protocol Type]
---- ------------------ ----------------------------------------------------
1 00-60-5c-86-5b-81 4/1 [ALL]
1 00-60-2f-35-48-17 4/1 [ALL]
1 00-80-24-f3-47-20 1/2 [ALL]
1 00-60-09-78-96-fb 4/1 [ALL]
1 00-80-24-1d-d9-ed 1/2 [ALL]
1 00-80-24-1d-da-01 1/2 [ALL]
1 08-00-20-7a-63-01 4/1 [ALL]
Total Matching CAM Entries Displayed = 7
This example shows routers listed as the CAM entries:
Console> show cam 00-00-81-01-23-45
* = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry
Router Watergate with IP address 172.25.55.1 has CAM entries:
VLAN Dest MAC/Route Des Destination Ports or VCs
---- ------------------ ----------------------------------------------------
1 00-00-81-01-23-45R 2/9 [IP]
2 00-00-81-01-23-45R 2/10 [IP]
Total Matching CAM Entries = 2
Related Commands
clear cam
set cam
show config
show cam agingtime
show cam agingtime
Use the show cam agingtime command to display CAM aging time information for all configured VLANs.
show cam agingtime [vlan]
Syntax Description
vlan
|
(Optional) Number of the VLAN or range of VLANs; valid values are from 1 to 1005 and from 1025 to 4094.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Examples
This example shows how to display CAM aging time information:
Console> show cam agingtime
VLAN 1 aging time = 300 sec
VLAN 3 aging time = 300 sec
VLAN 5 aging time = 300 sec
VLAN 9 aging time = 300 sec
VLAN 100 aging time = 300 sec
VLAN 200 aging time = 300 sec
VLAN 201 aging time = 300 sec
VLAN 202 aging time = 300 sec
VLAN 203 aging time = 300 sec
This example shows how to display CAM aging time information for a specific VLAN:
Console> show cam agingtime 1005
VLAN 1005 aging time = 300 sec
Related Commands
clear cam
set cam
show cam
show cam count
Use the show cam command to display the number of CAM entries only.
show cam count {dynamic | static | permanent | system} [vlan]
Syntax Description
dynamic
|
Keyword to display dynamic CAM entries.
|
static
|
Keyword to display static CAM entries.
|
permanent
|
Keyword to display permanent CAM entries.
|
system
|
Keyword to display system CAM entries.
|
vlan
|
(Optional) Number of the VLAN.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
If you do not specify a VLAN, all VLANs are displayed.
Examples
This example shows how to display the number of dynamic CAM entries:
Console> (enable) show cam count dynamic
Total Matching CAM Entries = 6
Related Commands
clear cam
set cam
show cam msfc
Use the show cam msfc command to display the router's MAC-VLAN entries.
show cam msfc {mod} [vlan]
Syntax Description
mod
|
Number of the module for which MSFC information is displayed.
|
vlan
|
(Optional) Number of the VLAN.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
If you specify the VLAN, only CAM entries that belong to that VLAN are displayed.
Examples
This example shows how to display all CAM entries:
Console> (enable) show cam msfc
VLAN Destination MAC Destination-Ports or VCs Xtag Status
---- ------------------ ------------------------------ ---- ------
194 00-e0-f9-d1-2c-00R 7/1 2 H
193 00-00-0c-07-ac-c1R 7/1 2 H
193 00-00-0c-07-ac-5dR 7/1 2 H
202 00-00-0c-07-ac-caR 7/1 2 H
204 00-e0-f9-d1-2c-00R 7/1 2 H
195 00-e0-f9-d1-2c-00R 7/1 2 H
192 00-00-0c-07-ac-c0R 7/1 2 H
192 00-e0-f9-d1-2c-00R 7/1 2 H
204 00-00-0c-07-ac-ccR 7/1 2 H
202 00-e0-f9-d1-2c-00R 7/1 2 H
Total Matching CAM Entries Displayed = 14
This example shows how to display CAM entries for a specific VLAN:
Console> show cam msfc 15 192
VLAN Destination MAC Destination-Ports or VCs Xtag Status
---- ------------------ ------------------------------ ---- ------
192 00-00-0c-07-ac-c0R 7/1 2 H
192 00-e0-f9-d1-2c-00R 7/1 2 H
Related Commands
show cam
show cdp
Use the show cdp command set to display CDP information.
show cdp
show cdp neighbors [mod[/port]] [vlan | duplex | capabilities | detail]
show cdp port [mod[/port]]
Syntax Description
neighbors
|
Keyword to show CDP information for Cisco products connected to the switch.
|
[mod[/port]]
|
(Optional) Number of the module for which CDP information is displayed and optionally, the number of the port for which CDP information is displayed.
|
vlan
|
(Optional) Keyword to show the native VLAN number for the neighboring Cisco products.
|
duplex
|
(Optional) Keyword to show the duplex type of the neighboring Cisco products.
|
capabilities
|
(Optional) Keyword to show the capability codes for the neighboring Cisco products; valid values are R, T, B, S, H, I, and r (R = Router, T = Trans Bridge, B = Source Route Bridge, S = Switch, H = Host, I = IGMP, and r = Repeater).
|
detail
|
(Optional) Keyword to show detailed information about neighboring Cisco products.
|
port
|
Keyword to show CDP port settings.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
The per-port output of the show cdp port command is not displayed if you globally disable CDP. If you globally enable CDP, the per-port status is displayed.
If you enter the show cdp neighbors command for a device that supports earlier versions of CDP, "unknown" is displayed in the VTP Management Domain, Native VLAN, and Duplex fields.
If you do not specify a module number, CDP information for the entire switch is displayed.
Examples
This example shows how to display CDP information for the system:
This example shows how to display detailed CDP neighbor information. The display varies depending on your network configuration at the time you run the command.
Console> show cdp neighbors 4 detail
Capabilities:TRANSPARENT_BRIDGE SWITCH
WS-C6009 Software, Version NmpSW: 5.4(1)CSX
Copyright (c) 1995-1999 by Cisco Systems
Port-ID (Port on Device):4/8
VTP Management Domain:unknown
This example shows how to display CDP information about neighboring systems:
Console> show cdp neighbors
* - indicates vlan mismatch.
# - indicates duplex mismatch.
Port Device-ID Port-ID Platform
-------- ------------------------------- ------------------------- ------------
3/5 002267619 3/6 * WS-C6000
3/6 002267619 3/5 WS-C6000
4/1 002267619 4/2 WS-C6000
4/2 002267619 4/1 # WS-C6000
4/20 069000057 8/5 WS-C6000
5/1 005763872 2/1 WS-C6009
5/1 066506245 2/1 WS-C6009
5/1 066508595 5/12 *# WS-C6009
5/1 066508596 5/1 WS-C6009
This example shows how to display duplex information about neighboring systems:
Console> show cdp neighbors duplex
* - indicates vlan mismatch.
# - indicates duplex mismatch.
Port Device-ID Port-ID Duplex
-------- ------------------------------- ------------------------- ------
5/1 066508595 5/12 *# half
This example shows how to display VLAN information about neighboring systems:
* - indicates vlan mismatch.
# - indicates duplex mismatch.
Port Device-ID Port-ID NativeVLAN
-------- ------------------------------- ------------------------- ----------
This example shows how to display capability information about neighboring systems:
Console> show cdp neighbors capabilities
* - indicates vlan mismatch.
# - indicates duplex mismatch.
Port Device-ID Port-ID Capabilities
-------- ------------------------------- ------------------------- ------------
5/1 066508595 5/12 *# T B S
This example shows how to display CDP information for all ports:
Related Commands
set cdp
show channel
Use the show channel command to display EtherChannel information for a channel.
show channel [channel_id] [info | statistics | mac]
show channel [channel_id] [info [spantree | trunk | protcol | gmrp | gvrp | qos]]
Syntax Description
channel_id
|
(Optional) Number of the channel.
|
info
|
(Optional) Keyword to display channel information.
|
statistics
|
(Optional) Keyword to display statistics about the port (PAgP packets sent and received).
|
mac
|
(Optional) Keyword to display MAC information about the channel.
|
spantree | trunk | protcol | gmrp | gvrp | qos
|
(Optional) Keyword to display feature-related parameters.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
If you do not specify channel_id, EtherChannel information is shown for all channels.
No information is displayed if the channel specified is not in use.
If you enter the optional info keyword with any of the options (spantree | trunk | protcol | gmrp | gvrp | qos), the specified feature-related parameters are displayed in the output.
Examples
This example shows how to display channel information for a specific channel:
Console> show channel 768
Channel Ports Status Channel
------- ----------------------------------------------- --------- --------
This example shows how to display channel information for all channels:
----------- -----------------------------------------------
This example shows how to display port information for a specific channel:
Console> show channel 769 info
Chan Port Status Channel Admin Speed Duplex Vlan PortSecurity/
id mode group Dynamic Port
---- ----- ---------- --------- ----- ----- ------ ---- -------------
769 1/1 notconnect on 195 1000 full 1 -
769 1/2 notconnect on 195 1000 full 1 -
Chan Port if- Oper-group Neighbor Chan Oper-Distribution
id Index Oper-group cost Method
---- ----- ----- ---------- ---------- ----- -----------------
Chan Port Device-ID Port-ID Platform
---- ----- ------------------------------- ------------------------- ----------
Chan Port Trunk-status Trunk-type Trunk-vlans
----- ----- ------------ -------------
-----------------------------------------
769 1/1 not-trunking negotiate 1-1005
769 1/2 not-trunking negotiate 1-1005
Chan Port Portvlancost-vlans
---- ----- --------------------------------------------------------------------
Chan Port Port Portfast Port Port
id priority vlanpri vlanpri-vlans
---- ----- -------- -------- ------- ------------------------------------------
---- ----- -------- -------- --------
769 1/1 on auto-on auto-on
769 1/2 on auto-on auto-on
id status registration forwardAll
---- ----- -------- ------------ ----------
769 1/1 enabled normal disabled
769 1/2 enabled normal disabled
id status registeration applicant
---- ----- -------- ------------- ---------
769 1/1 disabled normal normal
769 1/2 disabled normal normal
Chan Port Qos-Tx Qos-Rx Qos-Trust Qos-DefCos Qos-Port-based
---- ----- ------ ------ ------------ ---------- --------------
769 1/1 2q2t 1q4t untrusted 0 false
769 1/2 2q2t 1q4t untrusted 0 false
Chan Port ACL name Protocol
---- ----- -------------------------------- --------
This example shows how to display port information for all channels:
Console> show channel info
Chan Port Status Channel Admin Speed Duplex Vlan PortSecurity/
id mode group Dynamic Port
---- ----- ---------- --------- ----- ----- ------ ---- -------------
769 1/1 notconnect on 195 1000 full 1 -
769 1/2 notconnect on 195 1000 full 1 -
865 4/1 notconnect on 194 100 half 1 -
865 4/2 notconnect on 194 100 half 1 -
Chan Port if- Oper-group Neighbor Chan Oper-Distribution
id Index Oper-group cost Method
---- ----- ----- ---------- ---------- ----- -----------------
Chan Port Device-ID Port-ID Platform
---- ----- ------------------------------- ------------------------- ----------
Chan Port Trunk-status Trunk-type Trunk-vlans
----- ----- ------------ -------------
-----------------------------------------
769 1/1 not-trunking negotiate 1-1005
769 1/2 not-trunking negotiate 1-1005
865 4/1 not-trunking negotiate 1-1005
865 4/2 not-trunking negotiate 1-1005
Chan Port Portvlancost-vlans
---- ----- --------------------------------------------------------------------
Chan Port Port Portfast Port Port
id priority vlanpri vlanpri-vlans
---- ----- -------- -------- ------- ------------------------------------------
---- ----- -------- -------- --------
769 1/1 on auto-on auto-on
769 1/2 on auto-on auto-on
865 4/1 on auto-on auto-on
865 4/2 on auto-on auto-on
id status registration forwardAll
---- ----- -------- ------------ ----------
769 1/1 enabled normal disabled
769 1/2 enabled normal disabled
865 4/1 enabled normal disabled
865 4/2 enabled normal disabled
id status registeration applicant
---- ----- -------- ------------- ---------
769 1/1 disabled normal normal
769 1/2 disabled normal normal
865 4/1 disabled normal normal
865 4/2 disabled normal normal
Chan Port Qos-Tx Qos-Rx Qos-Trust Qos-DefCos Qos-Port-based
---- ----- ------ ------ ------------ ---------- --------------
769 1/1 2q2t 1q4t untrusted 0 false
769 1/2 2q2t 1q4t untrusted 0 false
865 4/1 2q2t 1q4t untrusted 0 false
865 4/2 2q2t 1q4t untrusted 0 false
Chan Port ACL name Protocol
---- ----- -------------------------------- --------
This example shows how to display PAgP information for all channels:
Console> show channel statistics
Port Channel PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts
id Transmitted Received InFlush RetnFlush OutFlush InError
----- ------- ----------- --------- --------- --------- --------- ---------
This example shows how to display PAgP information for a specific channel:
Console> show channel 768 statistics
Port Channel PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts
id Transmitted Received InFlush RetnFlush OutFlush InError
----- ------- ----------- --------- --------- --------- --------- ---------
This example shows how to display statistics for a specific channel:
Console> show channel 768 mac
Channel Rcv-Unicast Rcv-Multicast Rcv-Broadcast
-------- -------------------- -------------------- --------------------
Channel Xmit-Unicast Xmit-Multicast Xmit-Broadcast
-------- -------------------- -------------------- --------------------
Port Rcv-Octet Xmit-Octet
-------- -------------------- --------------------
Channel Dely-Exced MTU-Exced In-Discard Lrn-Discrd In-Lost Out-Lost
-------- ---------- ---------- ---------- ---------- ---------- ----------
This example shows how to display statistics for all channels: