Show Commands

show callhome transport-email

To display information about the e-mail configuration for Call Home, use the show callhome transport-email command.

show callhome transport-email

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

This command was introduced.

Examples

This example shows how to display the transport configuration for Call Home:


switch# show callhome transport-email 
from email addr:DCBU-5020-02@cisco.com
reply to email addr:junk@kunk.com
smtp server:192.168.1.236
smtp server port:25
switch# 

show callhome destination-profile

To display the Call Home destination profile information, use the show callhome destination-profile command.

show callhome destination-profile [profile {CiscoTAC-1 | profile-name | full-txt-destination | short-txt-destination}]

Syntax Description

profile

(Optional) Displays information about a specific destination profile.

CiscoTAC-1

(Optional) Show information for a CiscoTAC-1 destination profile.

profile profile-name

(Optional) Displays information for a user-defined destination profile. The name can be a maximum of 32 alphanumeric characters.

full-txt-destination

(Optional) Displays information of a destination profile configured for plain text messages.

short-txt-destination

(Optional) Displays information of a destination profile configured for short text messages.

Command Default

All destination profiles

Command Modes


EXEC mode

Command History

Release

Modification

This command was introduced.

Examples

This example shows how to display information about the Call Home destination profiles:


switch# show callhome destination-profile 
full_txt destination profile information
maximum message size:2500000
message format:full-txt
message-level:0
transport-method:email
email addresses configured:
url addresses configured:
alert groups configured:
all
short_txt destination profile information
maximum message size:4000
message format:short-txt
message-level:0
transport-method:email
email addresses configured:
url addresses configured:
alert groups configured:
all
CiscoTAC-1 destination profile information
maximum message size:5000000
message format:XML
message-level:0
transport-method:email
email addresses configured:
url addresses configured:
alert groups configured:
cisco-tac
switch# 

This example shows how to display information about a specific Call Home destination profile:


switch# show callhome destination-profile profile CiscoTAC-1 
CiscoTAC-1 destination profile information
maximum message size:5000000
message-level:0
transport-method:email
email addresses configured:
url addresses configured:
alert groups configured:
cisco-tac
switch#

show callhome

To display the Call Home configuration information, use the show callhome command.

show callhome [pending | pending-diff | session | status]

Syntax Description

pending

(Optional) Displays the Call Home configuration changes in the pending CFS database.

pending-diff

(Optional) Displays the differences between the pending and running Call Home configuration.

session

(Optional) Displays the status of the last Call Home CFS command.

status

(Optional) Displays the Call Home status.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

This command was introduced.

Examples

This example shows how to display the Call Home configuration information:


switch# show callhome 
callhome disabled
Callhome Information:
contact person name(sysContact):who@where
contact person's email:
contact person's phone number:
street addr:
site id:
customer id:
contract id:ac12
switch priority:7
duplicate message throttling : enabled
periodic inventory : enabled
periodic inventory time-period : 7 days
periodic inventory timeofday : 08:00 (HH:MM)
Distribution : Disabled
switch# 

show tech-support mmode

To display information for maintenance profile troubleshooting, use the show tech-support mmode command.

show tech-support mmode

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


Privileged EXEC

Command History

Release

Modification

7.3(0)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display information for maintenance profile troubleshooting:


switch# show tech-support mmode
`show system mode`
System Mode: Normal
`show maintenance profile`
[Normal Mode]
router bgp 100
  no isolate
[Maintenance Mode]
router bgp 100
  isolate
`show maintenance on-reload reset-reasons`
Reset reasons for on-reload maintenance mode:
--------------------------------------------
(not configured)
bitmap = 0x0
`show maintenance timeout`
Maintenance mode timeout value: 0 minutes
`show system internal mmode mem-stats`
Num blocks     User size     Total size    Library
--------------------------------------------------------------------------------
      16               560           800  mmode
     265             51818         55824  ld-2.8.so
       1                20            32  libdl-2.8.so
       1                38            56  libpthread-2.8.so
      12              2860          3056  libsviifdb.so.0.0.0

show system mode

To display the current system mode, use the show system mode command. Starting with Cisco NX-OS Release 7.3(0)N1(1), you can use the show system mode command to also display the current state of the maintenance mode timer when the switch is in maintenance mode

show system mode

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


Any command mode

Command History

Release

Modification

7.3(0)N1(1)

Supports display of current state of the maintenance mode timer when the switch is in maintenance mode.

7.1.0

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display the current system mode:


switch# show system mode
 
System Mode : Normal

This example shows how to display the current system mode and the state of the maintenance mode timer when the switch is in maintenance mode:


switch# show system mode
 
System Mode: Maintenance
Maintenance Mode Timer: 24 minutes 55 seconds remaining

This example shows that the switch is in maintenance mode and that the maintenance mode timer is not running:


switch#  show   system   mode
 
System Mode: Maintenance 
Maintenance Mode Timer: not running

show snmp user

To display information on each Simple Network Management Protocol (SNMP) user, use the show snmp user command.

show snmp user

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the SNMP users configured on the switch:


switch# show snmp user
 
______________________________________________________________
                  SNMP USERS
______________________________________________________________
User                          Auth  Priv(enforce) Groups
____                          ____  _____________ ______
admin                         md5   des(no)       network-admin
______________________________________________________________
 NOTIFICATION TARGET USERS (configured  for sending V3 Inform)
______________________________________________________________
User                          Auth  Priv
____                          ____  ____
switch#

This example shows how to display information about a specific SNMP user:


switch# show snmp user admin
 
switch# 

show snmp trap

To display the Simple Network Management Protocol (SNMP) link trap generation information, use the show snmp trap command.

show snmp trap

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the SNMP traps:


switch# show snmp trap
 
--------------------------------------------------------------------------------
Trap type                       Description                   Enabled
--------------------------------------------------------------------------------
entity               : entity_mib_change                            Yes
entity               : entity_module_status_change                  Yes
entity               : entity_power_status_change                   Yes
entity               : entity_module_inserted                       Yes
entity               : entity_module_removed                        Yes
entity               : entity_unrecognised_module                   Yes
entity               : entity_fan_status_change                     Yes
link                 : linkDown                                     Yes
link                 : linkUp                                       Yes
link                 : IETF-extended-linkDown                       Yes
link                 : IETF-extended-linkUp                         Yes
link                 : cisco-extended-linkDown                      Yes
link                 : cisco-extended-linkUp                        Yes
callhome             : event-notify                                 No
callhome             : smtp-send-fail                               No
cfs                  : state-change-notif                           No
cfs                  : merge-failure                                No
rf                   : redundancy_framework                         Yes
aaa                  : server-state-change                          No
license              : notify-license-expiry                        Yes
license              : notify-no-license-for-feature                Yes
license              : notify-licensefile-missing                   Yes
license              : notify-license-expiry-warning                Yes
zone                 : unsupp-mem                                   No
upgrade              : UpgradeOpNotifyOnCompletion                  Yes
upgrade              : UpgradeJobStatusNotify                       Yes
feature-control      : FeatureOpStatusChange                        No
sysmgr               : cseFailSwCoreNotifyExtended                  No
rmon                 : risingAlarm                                  No
rmon                 : fallingAlarm                                 No
rmon                 : hcRisingAlarm                                No
rmon                 : hcFallingAlarm                               No
config               : ccmCLIRunningConfigChanged                   No
snmp                 : authentication                               No
bridge               : topologychange                               No
bridge               : newroot                                      No
stp                  : inconsistency                                No
stpx                 : loop-inconsistency                           No
stpx                 : root-inconsistency                           No
switch#

show snmp sessions

To display the current Simple Network Management Protocol (SNMP) sessions, use the show snmp sessions command.

show snmp sessions

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the SNMP sessions:


switch# show snmp sessions
 

show snmp host

To display the Simple Network Management Protocol (SNMP) host information, use the show snmp host command.

show snmp host

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the SNMP host:


switch# show snmp host
 

show snmp group

To display the names of the Simple Network Management Protocol (SNMP) groups configured on the switch, use the show snmp group command.

show snmp group

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the SNMP groups:


switch# show snmp group
 
Role: network-admin
  Description: Predefined network admin role has access to all commands
  on the switch
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  1       permit  read-write
Role: network-operator
  Description: Predefined network operator role has access to all read
  commands on the switch
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  1       permit  read
Role: vdc-admin
  Description: Predefined vdc admin role has access to all commands within
  a VDC instance
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  1       permit  read-write
Role: vdc-operator
  Description: Predefined vdc operator role has access to all read commands
  within a VDC instance
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  1       permit  read
Role: priv-3
  Description: This is a system defined privilege role.
  vsan policy: permit (default)
  Vlan policy: permit (default)
  Interface policy: permit (default)
  Vrf policy: permit (default)
Role: priv-2
  Description: This is a system defined privilege role.
  vsan policy: permit (default)
  Vlan policy: permit (default)
  Interface policy: permit (default)
  Vrf policy: permit (default)
Role: priv-1
  Description: This is a system defined privilege role.
  vsan policy: permit (default)
  Vlan policy: permit (default)
  Interface policy: permit (default)
  Vrf policy: permit (default)
Role: priv-0
  Description: This is a system defined privilege role.
  vsan policy: permit (default)
  Vlan policy: permit (default)
  Interface policy: permit (default)
  Vrf policy: permit (default)
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  10      permit  command                         traceroute6 *
  9       permit  command                         traceroute *
  8       permit  command                         telnet6 *
  7       permit  command                         telnet *
  6       permit  command                         ping6 *
  5       permit  command                         ping *
  4       permit  command                         ssh6 *
  3       permit  command                         ssh *
  2       permit  command                         enable *
  1       permit  read
Role: priv-15
  Description: This is a system defined privilege role.
  vsan policy: permit (default)
  Vlan policy: permit (default)
  Interface policy: permit (default)
  Vrf policy: permit (default)
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  1       permit  read-write
switch#

show snmp engineID

To display the identification of the local Simple Network Management Protocol (SNMP) engine, use the show snmp engineID command.

show snmp engineID

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Usage Guidelines

An SNMP engine is a copy of SNMP that can reside on a local or remote device. SNMP passwords are localized using the SNMP engine ID of the authoritative SNMP engine.

Examples

This example shows how to display the SNMP engine ID:


switch# show snmp engineID
 
Local SNMP engineID: [Hex] 8000000903000DECB230C0
                     [Dec] 128:000:000:009:003:000:013:236:178:048:192
switch#

show snmp context

To display the Simple Network Management Protocol (SNMP) contexts configured on the switch, use the show snmp context command.

show snmp context

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the SNMP contexts:


switch# show snmp context
 

show snmp community

To display the Simple Network Management Protocol (SNMP) community strings configured on the switch, use the show snmp community command.

show snmp community

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the SNMP community strings:


switch# show snmp community
 
Community            Group / Access      context    acl_filter
---------            --------------      -------    ----------
public                network-admin
switch#

show snapshots sections

To display the user-specified sections in a snapshot, use the show snapshots sections command.

show snapshots sections

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


Privileged EXEC

Command History

Release

Modification

7.3(0)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display the user-specified sections in a snapshot:


switch# show snapshots sections
user-specified snapshot sections
--------------------------------
[v4route]
show command: show ip route detail vrf all 
row id: ROW_prefix
key1: ipprefix 
key2: -

show snapshots dump

To display content of the various sections in a generated snapshot, use the show snapshots dump command.

show snapshots dump snapshot-name

Syntax Description

snapshot-name

Name of the snapshot.

Command Default

None

Command Modes


Privileged EXEC

Command History

Release

Modification

7.3(0)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

The following example shows how to display content of the various sections in a generated snapshot:


switch# show snapshots dump new

File:  interface.xml        Snapshot:  new                 
==========================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://w
ww.cisco.com/nxos:7.3.0.N1.1.:if_manager">
 <nf:data>
  <show>
   <interface>
    <__readonly__>
     <TABLE_interface>
      <ROW_interface>
       <interface>mgmt0</interface>
       <state>up</state>
       <admin_state>up</admin_state>
       <eth_hw_desc>GigabitEthernet</eth_hw_desc>
       <eth_hw_addr>5cfc.666d.3b34</eth_hw_addr>
       <eth_bia_addr>5cfc.666d.3b34</eth_bia_addr>
       <eth_ip_addr>5.24.100.101</eth_ip_addr>
       <eth_ip_mask>16</eth_ip_mask>
       <eth_ip_prefix>5.24.0.0</eth_ip_prefix>
       <eth_mtu>1500</eth_mtu>

show snapshots compare

To display the comparison between the two snapshots on a switch, use the show snapshots compare command.

show snapshots snapshot-1 snapshot-2 [ipv4routes | ipv6routes | summary]

Syntax Description

snapshot-1 snapshot-2

Displays the comparison between the two snapshots.

ipv4routes

Displays a comparison of the IPv4 routes between the two snapshots.

ipv6routes

Displays a comparison of the IPv6 routes between the two snapshots.

summary

Displays a summary of the comparison between the two snapshots.

Command Default

None

Command Modes


Privileged EXEC

Command History

Release

Modification

7.1.0

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display a comparison between two snapshots:


switch# show snapshots compare before_maint during_maint

===========================================================================
Feature              Tag                  before_maint       during_maint
===========================================================================

[bgp]
---------------------------------------------------------------------------

[eigrp]
---------------------------------------------------------------------------

[eigrpv6]
---------------------------------------------------------------------------

[interface]
---------------------------------------------------------------------------

... <snip> ...

[v4route]
---------------------------------------------------------------------------

       [ipprefix:0.0.0.0/32]
                     uptime               PT24M32S           **PT58M37S**

       [ipprefix:127.0.0.0/8]
                     uptime               PT24M32S           **PT58M37S**

This example shows how to display a summary of the comparison between two snapshots:


switch# show snapshots compare before_maintenance after_maintenance summary
 
===========================================================================
Feature                        before_maintenance after_maintenance 
changed 
===========================================================================
basic summary
   # of interfaces                          50               50        
   # of vlans                               0                0         
   # of ipv4 routes  vrf default            13               13       
   # of ipv4 paths   vrf default            13               13       
   # of ipv4 routes  vrf management         14               14       
   # of ipv4 paths   vrf management         14               14       
   # of ipv6 routes  vrf default            3                3        
   # of ipv6 paths   vrf default            3                3        
interfaces
   # of eth interfaces                      48               48        
   # of eth interfaces up                   1                1         
   # of eth interfaces down                 47               47        
   # of eth interfaces other                0                0         
   # of vlan interfaces                     0                0         
   # of vlan interfaces up                  0                0         
   # of vlan interfaces down                0                0         
   # of vlan interfaces other               0                0         

This example shows how to display a comparison of the IPv4 routes between the two snapshots:


switch# show snapshots compare snapshot1 snapshot2 ipv4routes

show snapshots

To display the snapshots present on the switch, use the show snapshots command.

show snapshots

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


Privileged EXEC

Command History

Release

Modification

7.1.0

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display the snapshots present on the switch:


switch# show snapshots
Snapshot Name           Time                           Description
------------------------------------------------------------------------------
before_maintenance      Wed May 13 13:21:16 1970   system-internal-snapshot
new                     Mon May 11 15:51:27 1970       after if down

Note

In the above output example, “before_Maintenance” is the system-generated snapshot and “new” is the user-generated snapshot.

show running-config port-security

To display the running system configuration information about secure ports, use the show running-config port-security command.

show running-config port-security [all]

Syntax Description

all

(Optional) Displays detailed information about secure ports, including default settings.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display the running system configuration of all secure ports on an interface:


switch# show running-config port-security
!Command: show running-config port-security
!Time: Tue Apr 12 10:06:56 2005
version 5.2(1)N1(1)
feature port-security
interface Ethernet1/5
  switchport port-security
  switchport port-security aging time 3
  switchport port-security maximum 10
  switchport port-security mac-address sticky
switch#

show running-config poe

[NOTE: per Christine, “the commands exist in the software but I was told they will remain in the code but we shouldn't show them in the docs until the rubicon fex goes out”]

To display the running configuration for Power over Ethernet (PoE) ports, use the show running-config poe command.

show running-config poe [all]

Syntax Description

all

(Optional) Displays detailed information about PoE ports, including default settings.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.0(3)N2(1)

This command was introduced.

Examples

This example shows how to display the running configuration for PoE ports:


switch# show running-config poe
 

show running-config monitor

To display the running configuration for the Switched Port Analyzer (SPAN) or Encapsulated Remote Switched Port Analyzer (ERSPAN) session, use the show running-config monitor command.

show running-config monitor [all]

Syntax Description

all

(Optional) Displays current SPAN configuration information including default settings.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display information on the running SPAN configuration:


switch# show running-config monitor
 
!Command: show running-config monitor
!Time: Thu Jan  1 06:48:56 2009
version 5.2(1)N1(1)
monitor session 1
  description A Local SPAN session
  source interface Ethernet1/5 both
  destination interface Ethernet1/21
  no shut
switch#

This example shows how to display detailed information on the running SPAN configuration:


switch# show running-config monitor all
 
!Command: show running-config monitor all
!Time: Thu Jan  1 06:51:08 2009
version 5.2(1)N1(1)
monitor session 1 type local
  description A Local SPAN session
  source interface Ethernet1/5 both
  destination interface Ethernet1/21
  no shut
switch#

show running-config interface vethernet

To display the the currently running configuration for a virtual Ethernet interface, use the show running-config interface vethernet command.

show running-config interface vethernet veth-id [all | expand-port-profile]

Syntax Description

veth-id

Virtual Ethernet interface number. The range is from 1 to 1,048,575.

all

(Optional) Displays the full operating information including default settings.

expand-port-profile

(Optional) Displays the configuration information of port profiles.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.1(3)N1(1)

This command was introduced.

Examples

This example shows how to display the running configuration for a virtual Ethernet interface :


switch# show running-config interface vethernet 10
!Command: show running-config interface Vethernet10
!Time: Fri Jan  2 01:40:37 2009
version 5.1(3)N1(1)
interface Vethernet10
  inherit port-profile ppVEth
  untagged cos 3
  switchport access vlan 101
  bind interface Ethernet1/5 channel 10
switch#

This example shows how to display detailed information on the running configuration for a specified virtual Ethernet interface:


switch# show running-config interface vethernet 10 all

show running-config callhome

To display the Call Home running configuration, use the show running-config callhome command.

show running-config callhome [all]

Syntax Description

all

(Optional) Displays all the default and configured information.

Command Default

Displays only the configured information.

Command Modes


EXEC mode

Command History

Release

Modification

This command was introduced.

Examples

This example shows how to display the Call Home running configuration:


switch# show running-config callhome 
!Command: show running-config callhome
!Time: Fri Jun 18 09:37:56 2010
version 5.0(2)N1(1)
callhome
  alert-group configuration user-def-cmd show ip routing
switch# 

This example shows how to display the entire Call Home running configuration, including the default values:


switch# show running-config callhome all 
!Command: show running-config callhome all
!Time: Fri Jun 18 09:38:03 2010
version 5.0(2)N1(1)
callhome
  switch-priority 7
  destination-profile CiscoTAC-1 transport-method email
  no destination-profile CiscoTAC-1 transport-method http
  destination-profile CiscoTAC-1 message-size 5000000
  destination-profile CiscoTAC-1 message-level 0
  destination-profile full_txt transport-method email
  no destination-profile full_txt transport-method http
  destination-profile full_txt message-size 2500000
  destination-profile full_txt message-level 0
  destination-profile short_txt transport-method email
  no destination-profile short_txt transport-method http
  destination-profile short_txt message-size 4000
  destination-profile short_txt message-level 0
  destination-profile CiscoTAC-1 alert-group cisco-tac
  destination-profile full_txt alert-group all
  destination-profile short_txt alert-group all
  alert-group configuration user-def-cmd show ip routing
  no enable
  duplicate-message throttle
  periodic-inventory notification
  periodic-inventory notification interval  7
  periodic-inventory notification timeofday 08:00
switch#

show run mmode

To display the currently running maintenance profile configuration on a switch, use the show run mmode command.

show run mmode [all]

Syntax Description

all

Displays the currently running maintenance profile configuration along with the defaults.

Command Default

None

Command Modes


Privileged EXEC

Command History

Release

Modification

7.3(0)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display the currently running maintenance profile configuration on a switch:


switch(config)# show run mmode
!Command: show running-config mmode
!Time: Wed May 13 22:37:02 1970
version 7.3(0)N1(1)
configure maintenance profile normal-mode
  router isis 100
    no isolate
  router ospf 100
    no isolate
  router bgp 100
    no isolate
configure maintenance profile maintenance-mode
  router bgp 100
    isolate
  router ospf 100
    isolate
  router isis 100
    isolate
configure terminal

show rmon

To display information about Remote Monitoring (RMON) alarms or high-capacity alarms or events, use the show rmon command.

show rmon {alarms | events | hcalarms | info | logs}

Syntax Description

alarms

Displays the RMON alarms.

events

Displays the RMON events.

hcalarms

Displays the RMON high-capacity alarms.

info

Displays the RMON configuration information.

logs

Displays information about the RMON event logs.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

This command was introduced.

Examples

This example shows how to display the RMON high-capacity alarms configured on the switch:


switch# show rmon hclarms
 
High Capacity Alarm 3 is active, owned by admin
 Monitors 1.3.6.1.2.1.2.2.1.17.83886080 every 5 second(s)
 Taking delta samples, last value was 216340
 Rising threshold is 0, assigned to event 3
 Falling threshold is 0, assigned to event 0
 On startup enable rising alarm
 Number of Failed Attempts is 0
switch# 

This example shows how to display the RMON events configured on the switch:


switch# show rmon events
 
Event 5 is active, owned by admin
 Description is myRMONEvent
 Event firing causes nothing, last fired never
switch#

This example shows how to display the RMON configuration information:


switch# show rmon info
 
Maximum allowed 32 bit or 64 bit alarms : 512
Number of 32 bit alarms configured : 0
Number of 64 bit hcalarms configured : 1
switch#

show ptp time-property

To display the PTP clock time properties, use the show ptp time-property command.

show ptp time-property

Syntax Description

There are no arguments or keywords for this command.

Command Default

None

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the PTP clock time properties:


switch(
config
)# 
show ptp time-property

show ptp port interface

To display the status of the PTP port, use the show ptp port interface ethernet command.

show ptp port interface [ethernet slot/ [QSFP-module/ ] port]

Syntax Description

ethernet

Specifies an Ethernet interface.

slot/ [QSFP-module/]port

(Optional) Specifies the Ethernet interface and its slot number and port number. The slot number is from 1 to 255. The QSFP-module number is from 1 to 4. The port number is from 1 to 128.

Note 
The QSFP-module number applies only to the QSFP+ Generic Expansion Module (GEM).

Command Default

None

Command Modes


Global configuration mode

Command History

Release

Modification

6.0(2)N1(2)

Support for the QSFP+ GEM was added.

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the status of the PTP port on the switch:


switch(
config
)# 
show ptp port interface ethernet 5/1

show ptp parent

To display the properties of the PTP parent and grandmaster clock, use the show ptp parent command.

show ptp parent

Syntax Description

There are no arguments or keywords for this command.

Command Default

None

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the properties of the PTP parent and grandmaster clock:


switch(
config
)# 
show ptp parent

show ptp corrections

To display the last few PTP corrections, use the show ptp corrections command.

show ptp corrections

Syntax Description

There are no arguments or keywords for this command.

Command Default

None

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the most recent PTP corrections on the switch:


switch(
config
)# 
show ptp corrections

show ptp clocks foreign-masters-record

To display the state of the foreign masters known to the PTP process, use the show ptp clocks foreign-masters-record command.

show ptp clocks foreign-masters-record [ethernet slot/ [QSFP-module/ ] port]

Syntax Description

ethernet

Specifies an Ethernet interface.

slot/ [QSFP-module/]port

(Optional) Specifies the Ethernet interface and its slot number and port number. The slot number is from 1 to 255. The QSFP-module number is from 1 to 4. The port number is from 1 to 128.

Note 
The QSFP-module number applies only to the QSFP+ Generic Expansion Module (GEM).

Command Modes


Global configuration mode

Command History

Release

Modification

6.0(2)N1(2)

Support for the QSFP+ GEM was added.

5.2(1)N1(1)

This command was introduced.

Usage Guidelines

For each foreign master, the output displays the clock identity, basic clock properties, and whether the clock is being used as a grandmaster.

Examples

This example shows how to display the foreign masters known to the PTP process:


switch(
config
)# 
show ptp foreign-masters-record

show ptp clock

To display the properties of the local PTP clock including clock identity, use the show ptp clock command.

show ptp clock

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


Global configuration mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the properties of the local clock:


switch(
config
)# 
show ptp clock

show ptp brief

To display the PTP information, use the show ptp brief command.

show ptp brief

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


Global configuration mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the PTP status:


switch(
config
)# 
show ptp brief

show ntp timestamp-status

To display the Network Time Protocol (NTP) time-stamp information, use the show ntp timestamp-status command.

show ntp timestamp-status

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the NTP time-stamp status:


switch(
config
)# 
show ntp timestamp-status
 

show ntp statistics

To display Network Time Protocol (NTP) statistics, use the show ntp statistics command.

show ntp statistics {io | local | memory | peer {ipaddr address | name name1 [. . nameN]}}

Syntax Description

io

Displays the input-output statistics.

local

Displays the counters maintained by the local NTP.

memory

Displays the statistics counters related to the memory code.

peer

Displays the per-peer statistics counter of a peer.

ipaddr address

Displays statistics for the peer with the configured IPv4 or IPv6 address. The IPv4 address format is dotted decimal, x.x.x.x. The IPv6 address format is hexadecimal A:B::C:D.

name name1

Displays statistics for a named peer.

..nameN

(Optional) Displays statistics for one or more named peers.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the statistics for NTP:


switch(
config
)# 
show ntp statistics local
 

show ntp peer-status

To display the status of the Network Time Protocol (NTP) peers, use the show ntp peer-status command.

show ntp peer-status

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the peer status for NTP:


switch(
config
)# 
show ntp peer-status
 

show ntp peers

To display information about Network Time Protocol (NTP) peers, use the show ntp peers command.

show ntp peers

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display information about NTP peers:


switch(
config
)# 
show ntp peers
 

show ntp authentication-status

To display the status of the Network Time Protocol (NTP) authentication, use the show ntp authentication-status command.

show ntp authentication-status

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


Any command mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the authentication status for NTP:


switch(
config
)# 
show ntp authentication-status
 

show monitor session

To display information about the Switched Port Analyzer (SPAN) or Encapsulated Remote Switched Port Analyzer (ERSPAN) sessions, use the show monitor session command.

show monitor session [session | all [brief] | range range [brief] | status]

Syntax Description

session

(Optional) Number of the session. The range is from 1 to 18.

all

(Optional) Displays all sessions.

brief

(Optional) Displays a brief summary of the information.

range range

(Optional) Displays a range of sessions. The range is from 1 to 18.

status

(Optional) Displays the operational state of all sessions.

Note 
This keyword applies only to SPAN sessions.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display information about SPAN session 1:


switch# show monitor session 1
session 1
---------------
description       : A Local SPAN session
type              : local
state             : down (No operational src/dst)
source intf       :
    rx            : Eth1/5
    tx            : Eth1/5
    both          : Eth1/5
source VLANs      :
    rx            :
source VSANs      :
    rx            :
destination ports : Eth1/21
Legend: f = forwarding enabled, l = learning enabled
switch#

This example shows how to display a brief information about a SPAN session:


switch# show monitor session range 1 brief
session 1
---------------
description       : A Local SPAN session
type              : local
state             : down (No operational src/dst)
source intf       :
    rx            : Eth1/5
    tx            : Eth1/5
    both          : Eth1/5
source VSANs      :
destination ports : Eth1/21
Legend: f = forwarding enabled, l = learning enabled
switch#

This example shows how to display the information about an ERSPAN session:


switch# show monitor session 1
session 1
---------------
description       : ERSPAN Source configuration
type              : erspan-source
state             : down (No valid global IP Address)
flow-id           : 1
vrf-name          : default
destination-ip    : 192.0.2.1
ip-ttl            : 255
ip-dscp            : 0
origin-ip         : origin-ip not specified
source intf       :
    rx            : Eth1/5
    tx            : Eth1/5
    both          : Eth1/5
source VLANs      :
    rx            : 5
switch#

show logging timestamp

To display the logging time-stamp configuration, use the show logging timestamp command.

show logging timestamp

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the logging time-stamp configuration:


switch# show logging timestamp
 

show logging status

To display the logging status, use the show logging status command.

show logging status

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the logging status:


switch# show logging status
 
Fabric Distribute     : Enabled
Session State         : IDLE
switch#

show logging session status

To display the logging session status, use the show logging session status command.

show logging session status

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the logging session status:


switch# show logging session status
 

show logging server

To display the syslog server configuration, use the show logging server command.

show logging server

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the syslog server configuration:


switch# show logging server
 

show logging pending-diff

To display the differences from the current syslog server configuration to the pending changes of the syslog server configuration, use the show logging pending-diff command.

show logging pending-diff

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the pending differences of the syslog server configuration:


switch# show logging pending-diff 
switch# 

show logging pending

To display the pending changes to the syslog server configuration, use the show logging pending command.

show logging pending

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the pending changes to the syslog server configuration:


switch# show logging pending 
switch# 

show logging onboard

To display the onboard logging information based on the error type, use the show logging onboard command.

show logging onboard {boot-uptime | device-version | endtime | environmental-history | exception-log | kernel-trace | obfl-history | obfl-logs | stack-trace | starttime | status} [> | file | | type]

Syntax Description

boot-uptime

Displays the onboard failure logging (OBFL) boot and uptime information.

device-version

Displays the OBFL device version information.

endtime

Displays the OBFL logs until the specified end time in the following format: mm / dd / yy - HH : MM : SS

environmental-history

Displays the OBFL environmental history.

exception-log

Displays the OBFL exception log.

kernel-trace

Displays the OBFL kernel trace information.

obfl-history

Displays the OBFL history information.

obfl-logs

Displays the OBFL technical support log information.

stack-trace

Displays the OBFL kernel stack trace information.

starttime

Displays the OBFL logs from the specified start time in the following format: mm / dd / yy - HH : MM : SS

status

Displays the OBFL status enable or disable.

> file

(Optional) Redirects the output to a file. See the “Usage Guidelines” section for additional information.

| type

(Optional) Filters the output. See the “Usage Guidelines” section for additional information.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Usage Guidelines

The date and time arguments for the starttime and endtime keywords are entered as the date month/day/year (mm / dd / yy ), followed by a hyphen, and the time in 24-hour format in hours:minutes:seconds (HH:MM:SS ). For example:

  • starttime 03/17/08-15:01:57
  • endtime 03/18/08-15:04:57

The valid values for file are as follows:

  • bootflash:
  • ftp:
  • scp:
  • sftp:
  • tftp:
  • volatile:

The valid values for type are as follows:

  • begin [-i ] [-x ] [word ] —Begin with the line that matches the text.
    • -i —Ignores the case difference when comparing the strings.
    • -x —Prints only the lines where the match is a whole line.
    • word —Specifies for the expression.
  • count [> file | | type ] —Counts number of lines.
  • egrep | grep print-match —Egrep or Grep. Egrep searches for lines of text that match more sophisticated regular expression syntax than grep. Grep searches for lines of text that match one or many regular expressions, and outputs only the matching lines.
    • -A num —Prints the specifies number of lines of context after every matching line. Range: 1 to 999.
    • -B num —Prints the specifies number of lines of context before every matching line. Range: 1 to 999.
    • -c —Prints a total count of matching lines only.
    • -i —Ignores the case difference when comparing the strings.
    • -n —Prints each match preceded by its line number.
    • -v —Prints only the lines that contain no matches for the word argument.
    • -w —Prints only lines where the match is a complete word.
    • -x —Prints only the lines where the match is a whole line.
    • word —Specifies for the expression.
  • exclude [-i ] [-x ] [word ] —Excludes the lines that match.
    • -i —Ignores the case difference when comparing the strings.
    • -x —Prints only the lines where the match is a whole line.
    • word —Specifies for the expression.
  • head [-n num ] —Stream Editor. The optional -n num keyword and argument allow you to specify the number of lines to print. Range: 0 to 2147483647.
  • include [-i ] [-x ] [word ] —Include the lines that match.
    • -i —Ignores the case difference when comparing the strings.
    • -x —Prints only the lines where the match is a whole line.
    • word —Specifies for the expression.
  • last num ] —Displays the last lines to print. The optional num specifies the number of lines to print. Range: 0 to 9999.
  • less [-E | -d ]—Quits at the end of the file.
    • -E —(Optional) Quits at the end of the file.
    • -d —(Optional) Specifies a dumb terminal.
  • no-more —Turns-off pagination for command output.
  • sed command —Stream Editor
  • wc —Counts words, lines, and characters.
    • -c —(Optional) Specifies the output character count.
    • -l —(Optional) Specifies the output line count.
    • -w —(Optional) Specifies the output word count.
    • > —Redirects it to a file.
    • | —Pipes command output to filter.

Use this command to view OBFL data from the system hardware. The OBFL feature is enabled by default and records operating temperatures, hardware uptime, interrupts, and other important events and messages that can assist with diagnosing problems with hardware cards or modules installed in a Cisco router or switch. Data is logged to files stored in nonvolatile memory. When the onboard hardware is started up, a first record is made for each area monitored and becomes a base value for subsequent records.

The OBFL feature provides a circular updating scheme for collecting continuous records and archiving older (historical) records, ensuring accurate data about the system. Data is recorded in one of two formats: continuous information that displays a snapshot of measurements and samples in a continuous file, and summary information that provides details about the data being collected. The message “No historical data to display” is seen when historical data is not available.

Examples

This example shows how to display the OBFL boot and uptime information:


switch# show logging onboard boot-uptime
 
----------------------------
OBFL Data for
    Module:  0
----------------------------
Sun Dec 16 16:03:39 2012:  Boot Record
-------------------------------------------------------------------------------
Boot Time..........:  Sun Dec 16 16:03:39 2012
Module Number......:  1
Serial Number......:  FOC16191MQ1
Bios Version.......:  
Firmware Version...: 
Sun Dec 16 16:44:08 2012:  Boot Record
-------------------------------------------------------------------------------
Boot Time..........:  Sun Dec 16 16:44:07 2012
Module Number......:  0
Serial Number......:  FOC16192WJZ
Bios Version.......:    v1.2.0(06/09/12)
Firmware Version...:  6.0(2)N1(1) [build 6.0(2)N1(0.365.5P)]
--More--

Table 1 describes the significant fields shown in the display.

Table 1. show logging onboard boot-uptime Command Output

Field

Description

Boot Time

Time boot occurred.

Slot Number

Slot number.

Serial Number

Serial number of the module.

Bios Version

Primary binary input and output system (BIOS) version.

Firmware Version

Firmware version.

This example shows how to display the OBFL logging device information:


switch# show logging onboard device-version
 
----------------------------
OBFL Data for
    Module:  1
----------------------------
Device Version Record
----------------------------------------------------------------------
Timestamp                  Device Name      Instance Hardware Software
                                                 Num  Version  Version
----------------------------------------------------------------------
Sun Nov  3 07:07:00 2008   GATOS                   2        2        0
Sun Nov  3 07:07:00 2008   GATOS                   3        2        0
Sun Nov  3 07:07:00 2008   GATOS                   4        2        0
Sun Nov  3 07:07:00 2008   GATOS                   5        2        0
Sun Nov  3 07:07:00 2008   GATOS                   6        2        0
Sun Nov  3 07:07:00 2008   GATOS                   7        2        0
Sun Nov  3 07:07:00 2008   GATOS                   8        2        0
Sun Nov  3 07:07:00 2008   GATOS                   9        2        0
Sun Nov  3 07:07:00 2008   GATOS                  10        2        0
Sun Nov  3 07:07:00 2008   GATOS                  11        2        0
Sun Nov  3 07:07:00 2008   GATOS                  12        2        0
Sun Nov  3 07:07:00 2008   GATOS                  13        2        0
Mon Nov  4 00:15:08 2008   ALTOS                   0        2        0
Mon Nov  4 00:15:08 2008   GATOS                   0        2        0
Mon Nov  4 00:15:08 2008   GATOS                   1        2        0
Mon Nov  4 00:15:08 2008   GATOS                   2        2        0

Table 2 describes the significant fields shown in the display.

Table 2. show logging onboard device-version Command Output

Field

Description

Timestamp

Day, date, and time.

Device Name

Device name.

Instance Num

Number of instances.

Hardware Version

Hardware device version.

Software Version

Software device version.

This example shows how to display the OBFL history information:


switch# show logging onboard obfl-history 

The show logging onboard obfl-history command displays the following information:

  • Timestamp when OBFL is manually disabled.
  • Timestamp when OBFL is manually enabled.
  • Timestamp when OBFL data is manually cleared.

This example shows how to display the OBFL kernel stack trace information:


switch# show logging onboard stack-trace

The show logging onboard stack-trace command displays the following information:

  • Time in seconds
  • Time in microseconds
  • Error description string
  • Current process name and identification
  • Kernel jiffies
  • Stack trace

show logging nvram

To display the messages in the nonvolatile random access memory (NVRAM) log, use the show logging nvram command.

show logging nvram [last number-lines]

Syntax Description

last number-lines

(Optional) Specifies the number of lines to display. The number of lines is from 1 to 100.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the last 20 messages in the NVRAM log:


switch# show logging nvram last 20
 

show logging monitor

To display the monitor logging configuration, use the show logging monitor command.

show logging monitor

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the monitor logging configuration:


switch# show logging monitor
 

show logging module

To display the module logging configuration, use the show logging module command.

show logging module

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the module logging configuration:


switch# show logging module
 

show logging logfile

To display the messages in the log file that were timestamped within the span entered, use the show logging logfile command.

show logging logfile [start-time yyyy mmm dd hh : mm : ss] [end-time yyyy mmm dd hh : mm : ss]

Syntax Description

start-time yyyy mmm dd hh:mm:ss

(Optional) Specifies a start time in the format yyyy mmm dd hh:mm:ss . Use three characters for the month (mmm ) field, digits for the year (yyyy ) and day (dd ) fields, and digits separated by colons for the time (hh:mm:ss ) field.

end-time yyyy mmm dd hh:mm:ss

(Optional) Specifies an end time in the format yyyy mmm dd hh:mm:ss . Use three characters for the month (mmm ) field, digits for the year (yyyy ) and day (dd ) fields, and digits separated by colons for the time (hh:mm:ss ) field.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Usage Guidelines

If you do not enter an end time, the current time is used.

Examples

This example shows how to display the messages in the log file that were timestamped within the span shown:


switch# show logging logfile start-time 2008 mar 11 12:10:00
 

show logging level

To display the facility logging severity level configuration, use the show logging level command.

show logging level [facility]

Syntax Description

facility

(Optional) Logging facility. The facilities are listed in Table 1-1 of Appendix 1, “System Message Logging Facilities.”

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the EtherChannel logging severity level configuration:


switch# show logging level port-channel

This example shows how to display the Flex Links logging severity level configuration:


switch# show logging level flexlink
 
Facility        Default Severity        Current Session Severity
--------        ----------------        ------------------------
Flexlink                2                       5
0(emergencies)          1(alerts)       2(critical)
3(errors)               4(warnings)     5(notifications)
6(information)          7(debugging)
switch#

This example shows how to display the FCoE NPV logging severity level configuration:


switch# show logging level fcoe_mgr
 
Facility        Default Severity        Current Session Severity
--------        ----------------        ------------------------
fcoe_mgr                2                       3
0(emergencies)          1(alerts)       2(critical)
3(errors)               4(warnings)     5(notifications)
6(information)          7(debugging)
switch#

This example shows how to display the Power over Ethernet (PoE) logging severity level configuration:


switch# show logging level poed
Facility        Default Severity        Current Session Severity
--------        ----------------        ------------------------
poe                     5                       5
0(emergencies)          1(alerts)       2(critical)
3(errors)               4(warnings)     5(notifications)
6(information)          7(debugging)
switch#

show logging last

To display the last number of lines of the logfile, use the show logging last command.

show logging last number

Syntax Description

number

Enters the number of lines to display from 1 to 9999.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the last 42 lines of the log file:


switch# show logging last 42
 

show logging info

To display the logging configuration, use the show logging info command.

show logging info

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the logging configuration:


switch# show logging info
 

show logging console

To display the console logging configuration, use the show logging console command.

show logging console

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the console logging configuration:


switch# show logging console
 

show ip dns source-interface

To display the source interfaces configured for Domain Name Server (DNS) domain lookup, use the show ip dns source-interface command.

show ip dns source-interface [vrf {vrf-name | all | default | management}]

Syntax Description

vrf

(Optional) Displays information about the virtual routing and forwarding (VRF) instance.

vrf-name

(Optional) VRF name. The name is case sensitive and can be a maximum of 32 characters.

all

(Optional) Displays all VRF instances.

default

(Optional) Displays the default VRF information.

management

(Optional) Displays the management VRF information.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display the source interfaces configured for DNS domain lookup:


switch# show ip dns source-interface
VRF Name                                 Interface
default                                  Ethernet1/5
switch#

show hosts

To display the Domain Name Server (DNS) name servers and domain names, use the show hosts command.

show hosts

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the IP addresses of the DNS servers that are used to resolve host names:


switch# show hosts
DNS lookup enabled
Default domain for vrf:default is mysite.com
Name/address lookup uses domain service
Name servers are 255.255.255.255
Vrf                  Use-vrf             Token           Config
default              management          domain          mysite.com
default              management          add. domain(s)  mysite2.com
Host                    Address
switch#

show diagnostic result

To display the results of the diagnostic tests, use the show diagnostic result command.

show diagnostic result module {module-no | all}

Syntax Description

module

Specifies the module for which diagnostic results are displayed.

module-no

Module number. Valid values are 1 to 3.

all

Displays the diagnostic results for all modules.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the diagnostic results for a specific module:


switch# show diagnostic result module 1
 
Current bootup diagnostic level: complete
Module 1: 48X10GE/Supervisor  SerialNo : JAF1339ANGH
  Overall Diagnostic Result for Module 1 : PASS
  Diagnostic level at card bootup: complete
  Test results: (. = Pass, F = Fail, I = Incomplete,
                 U = Untested, A = Abort)
     1) TestUSBFlash ------------------------> .
     2) TestSPROM ---------------------------> .
     3) TestPCIe ----------------------------> .
     4) TestLED -----------------------------> .
     5) TestOBFL ----------------------------> .
     6) TestNVRAM ---------------------------> .
     7) TestPowerSupply ---------------------> F
     8) TestTemperatureSensor ---------------> .
     9) TestFan -----------------------------> .
    10) TestVoltage -------------------------> .
    11) TestGPIO ----------------------------> .
    12) TestInbandPort ----------------------> .
    13) TestManagementPort ------------------> .
    14) TestMemory --------------------------> .
    15) TestFabricEngine :
   Eth    1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
   Eth   25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
    16) TestFabricPort :
   Eth    1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
   Eth   25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
    17) TestForwardingEngine :
   Eth    1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
   Eth   25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
    18) TestForwardingEnginePort :
   Eth    1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
   Eth   25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
    19) TestFrontPort :
   Eth    1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
   Eth   25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
   Port ------------------------------------------------------------------------
          .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
switch#

show diagnostic bootup level

To display the current bootup diagnostic level on the switch, use the show diagnostic bootup level command.

show diagnostic bootup level

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

5.2(1)N1(1)

This command was introduced.

Examples

This example shows how to display the current bootup diagnostic level:


switch# show diagnostic bootup level
 
        Current bootup diagnostic level: complete
switch#

show callhome user-def-cmds

To display the user-defined CLI show commands added to a Call Home alert group, use the show callhome user-def-cmds command.

show callhome user-def-cmds

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


EXEC mode

Command History

Release

Modification

This command was introduced.

Examples

This example shows how to display the user-defined CLI show commands added to an alert group:


switch# show callhome user-def-cmds 
User configured commands for alert groups :
alert-group configuration user-def-cmd show running-config
switch# 

show system soft-reload status

To display the status of the soft reload, use the show system soft-reload status command.

show system soft-reload status

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes


Privileged EXEC mode

Command History

Release

Modification

7.3(2)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to display the status of the soft reload:


switch# show system soft-reload status
Soft-reload is disabled