Table Of Contents
show time
show timezone
show top
show top report
show trace
show trunk
show udld
show users
22
show time
Use the show time command to display the current time of day in the system clock.
show time
Syntax Description
This command has no keywords or arguments.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Examples
This example shows how to display the current time:
Wed Jan 12 2000, 14:18:52
The output shows the day of the week, month, day, year, hour, minutes, and seconds.
Related Commands
set time
show timezone
Use the show timezone command to display the current time zone and offset.
show timezone
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 the current time zone and offset:
Timezone set to 'pst', offset from UTC is -8 hours
Related Commands
clear timezone
set timezone
show top
Use the show top command to start the TopN process.
show top [N] [metric] [interval interval] [port_type] [background]
Syntax Description
N
|
(Optional) Number of ports displayed; valid values are 1 to a maximum number of physical ports.
|
metric
|
(Optional) Port statistic to sort on; valid values are:
util—utilization bytes—in/out bytes pkts—in/out packets bcst—in/out broadcast packets mcst—in/out multicast packets in-errors—in errors buf-ovflw—buffer overflow
|
interval
|
(Optional) Keyword to specify duration of sample (in seconds).
|
interval
|
(Optional) Number of seconds for sample; valid values are 0 and from 10 to 999 seconds. If the value is 0, the N topmost ports by absolute counter values are displayed.
|
port_type
|
(Optional) Type of switch ports to use for report; valid values are:
all—All port types are used eth—All Ethernet port types are used 10e—10Mbps Ethenet ports types are used fe—Fast Ethernet port types are used ge—Gigabit Ethernet port types are used
|
background
|
(Optional) Keyword to specify the TopN report not to print to the screen when the task is done. Instead, a notification is sent out when the reports are ready.
|
Defaults
The defaults are as follows:
•
Number of ports displayed is 20.
•
Port statistics to report on is util.
•
Sample duration is 30 seconds.
•
Switch port type is all.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
You can terminate TopN processes with the background option specified only by using the clear top [report_num] command.
TopN reports with the background option specified are not displayed on the screen unless you enter a show top report [report_num] command.
If you do not specify the background option, the output TopN results are dumped to the screen when the task is done, and the results are printed one time only and are not saved.
You can terminate TopN processes (without the background option) by pressing Ctrl-C in the same Telnet/console session, or by entering a clear top [report_num] command from a separate Telnet/console session. The prompt is not printed before the TopN report completely displays. Other commands are blocked until the report has displayed.
Examples
This example shows how to start the TopN process with the background option:
Console> show top 10 util interval 600 background
03/09/2000,14:05:38:MGMT-5: TopN report 2 started by telnet/172.20.22.7/.
03/09/2000,14:15:38:MGMT-5: TopN report 2 available.
This example shows how to start the TopN process without the background option:
Console> show top 10 util interval 600
Start Time: 03/19/2000,12:04:16
End Time: 03/19/2000,12:14:18
Port Band- Uti Tx/Rx-bytes Tx/Rx-pkts Tx/Rx-bcst Tx/Rx-mcst In- Buf-
----- ----- --- -------------------- ---------- ---------- ---------- ---- -----
1/1 100 0 65433 824 0 719 0 0
5/48 10 0 3543 45 0 34 0 0
5/47 10 0 45367 124 0 219 0 0
5/46 10 0 23456 49 0 108 0 0
This example shows how to start the TopN process for a specific port type:
Console> show top 5 10e interval 0
Start Time: 03/09/2000,11:03:21
End Time: 03/09/2000,11:03:21
PortType: 10Mbps Ethernet
Port Band- Uti Bytes Pkts Bcst Mcst Error Over
width % (Tx + Rx) (Tx + Rx) (Tx + Rx) (Tx + Rx) (Rx) flow
----- ----- --- -------------------- ---------- ---------- ---------- ----- ----
Related Commands
clear top
show top report
show top report
Use the show top report command to list all TopN processes and specific TopN reports.
show top report [report_num]
Syntax Description
report_num
|
(Optional) TopN report number for each process.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
If you do not specify report_num, this command lists all the active TopN processes and all the available TopN reports for the switch. Each process is associated with a unique report number. All TopN processes (both with and without a background option) are shown in the list.
An asterisk displayed after the pending status field indicates that it is not a background TopN and the results are not saved.
Examples
This example shows how to display all the active TopN processes and all the available TopN reports for the switch:
Rpt Start time Int N Metric Status Owner (type/machine/user)
--- ------------------- --- --- ---------- -------- -------------------------
1 03/09/2000,11:34:00 60 20 Tx/Rx-Bytes done telnet/172.20.22.7/
2 03/09/2000,11:34:08 600 10 Util done telnet/172.34.39.6/
4 03/09/2000,11:35:17 300 20 In-Errors pending Console//
5 03/09/2000,11:34:26 60 20 In-Errors pending* Console//
This example shows an attempt to display a TopN report 5 (shown in the first example) that is still in pending status:
Console> show top report 5
Rpt Start time Int N Metric Status Owner (type/machine/user)
--- ------------------- --- --- ---------- -------- -------------------------
5 03/09/2000,11:34:26 60 20 In-Errors pending* Console//
This example shows how to display the available TopN report 2 (shown in the first example) for the switch:
Console> show top report 2
Start Time: 03/09/2000,11:34:00
End Time: 03/09/2000,11:34:33
Port Band- Uti Tx/Rx-bytes Tx/Rx-pkts Tx/Rx-bcst Tx/Rx-mcst In- Buf-
----- ----- --- -------------------- ---------- ---------- ---------- ---- -----
/15 100 88 98765432109876543210 9876543210 98765 12345 123 321
5/48 10 75 44532 5389 87 2 0 0
5/47 10 67 5432 398 87 2 0 0
5/46 10 56 1432 398 87 2 0 0
5/45 10 54 432 398 87 2 0 0
5/44 10 48 3210 65 10 10 15 5
5/43 10 45 432 5398 87 2 2 0
5/42 10 37 5432 398 87 2 0 0
5/41 10 36 1432 398 87 2 0 0
5/40 10 14 2732 398 87 2 0 0
Related Commands
clear top
show top
show trace
Use the show trace command to display trace category and level.
show trace [all]
Syntax Description
all
|
(Optional) Keyword to display all trace category and level information.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Examples
This example shows how to display the active trace category and level information only:
Trace monitor is enabled for this session.
This example shows how to display all trace category and level information:
Trace monitor is enabled for this session.
show trunk
Use the show trunk command to display trunking information for the switch.
show trunk [mod[/port]] [detail]
Syntax Description
mod
|
(Optional) Number of the module.
|
port
|
(Optional) Number of the port.
|
detail
|
(Optional) Keyword to show detailed information about the specified trunk port.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
Entering the show trunk command without specifying a module or port number displays only the actively trunking ports. To display the trunking configuration for a port that is not actively trunking, specify the module and port number of the port you want to display.Entering the show trunk command displays untagged traffic received over the dot1q trunk. For ISL trunks, packets are tagged on all VLANs (including native VLANs).
In the show trunk detail command output, the Peer-Port field displays either the module and port number of the peer connection, or multiple or unknown. Multiple is displayed if connected to shared media, and unknown is displayed if DTP is not running on the other side.
If you enter the show trunk command on a trunk where a VTP domain mismatch exists, an asterisk is displayed after the trunk status and the following:
* - indicates vtp domain mismatch.
In the show trunk command output, the ports and VLANs listed in the spanning tree forward state and not pruned fields are the same regardless of whether or not VTP or GVRP is running.
Examples
This example shows how to display trunking information for the switch:
Console> (enable) show trunk
Port Mode Encapsulation Status Native vlan
-------- ----------- ------------- ------------ -----------
4/10 desirable isl trunking 1
Port Vlans allowed on trunk
-------- ---------------------------------------------------------------------
Port Vlans allowed and active in management domain
-------- ---------------------------------------------------------------------
Port Vlans in spanning tree forwarding state and not pruned
-------- ---------------------------------------------------------------------
This example shows how to display detailed information about the specified trunk port:
Console> (enable) show trunk 1/1 detail
Port Mode Encapsulation Status Native vlan
-------- ----------- ------------- ------------ -----------
1/1 auto negotiate not-trunking 1
Port Peer-Port Mode Encapsulation Status
-------- --------- ----------- ------------- ------------
1/1 2/3 auto n-isl not-trunking
Port TrunkFramesTx TrunkFramesRx WrongEncap
-------- -------------------- -------------------- ----------
Port Vlans allowed on trunk
-------- ---------------------------------------------------------------------
Port Vlans allowed and active in management domain
-------- ---------------------------------------------------------------------
Port Vlans in spanning tree forwarding state and not pruned
-------- ---------------------------------------------------------------------
This example shows how to display detailed information about the specified trunk port that has a VTP domain mismatch:
Console> (enable) show trunk 3/1 detail
Port Mode Encapsulation Status Native vlan
-------- ----------- ------------- ------------ -----------
3/1 auto negotiate not-trunking* 1
Port Peer-Port Mode Encapsulation Status
-------- --------- ----------- ------------- ------------
3/1 2/3 auto n-isl not-trunking
Port TrunkFramesTx TrunkFramesRx WrongEncap
-------- -------------------- -------------------- ----------
Port Vlans allowed on trunk
-------- ---------------------------------------------------------------------
Port Vlans allowed and active in management domain
-------- ---------------------------------------------------------------------
Port Vlans in spanning tree forwarding state and not pruned
-------- ---------------------------------------------------------------------
Table 2-66 describes the fields in the show trunk command outputs.
Table 2-66 show trunk Command Output Fields
Field
|
Description
|
Port
|
Module and port numbers.
|
Mode
|
Trunk administrative status of the port (on, off, auto, desirable, or nonegotiate).
|
Encapsulation
|
Trunking type configured by administration.
|
Status
|
Status of whether the port is trunking or nontrunking.
|
Native vlan
|
Number of the native VLAN for the trunk link (the VLAN for which untagged traffic can be transmitted and received over the dot1q trunk).
|
Vlans allowed on trunk
|
Range of VLANs allowed to go on the trunk (default is 1 to 1000).
|
Vlans allowed and active in management domain
|
Range of active VLANs within the allowed range.
|
Vlans in spanning tree forwarding state and not pruned
|
Range of VLANs that actually go on the trunk with Spanning Tree Protocol forwarding state.
|
Peer-Port
|
Peer connection information (module and port number of peer connection, multiple, or unknown).
|
TrunkFramesTx
|
Number of ISL/802.1q frames transmitted on a port.
|
TrunkFramesRx
|
Number of ISL/802.1q frames received on a port.
|
WrongEncap
|
Number of frames with the wrong encapsulation received on a port.
|
Related Commands
set trunk
show udld
Use the show udld command to display UDLD information.
show udld
show udld port [mod[/port]]
Syntax Description
port
|
Keyword to specify module and ports or just modules.
|
mod
|
(Optional) Number of the module for which UDLD information is displayed.
|
port
|
(Optional) Number of the port for which UDLD information is displayed.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Examples
This example shows how to find out whether or not UDLD is enabled:
This example shows how to display UDLD information for a specific module and port:
Console> show udld port 2/1
Message Interval :60 seconds
Port Admin Status Aggressive Mode Link State
-------- ------------ --------------- ----------------
2/1 enabled disabled undertermined
This example shows how to display UDLD information for all ports on a specific module:
Console> (enable) show udld port 1
Message Interval :60 seconds
Port Admin Status Aggressive Mode Link State
-------- ------------ --------------- ----------------
1/1 disabled disabled not applicable
1/2 disabled enabled not applicable
Table 2-67 describes the fields in the show udld command output.
Table 2-67 show udld Command Output Fields
Field
|
Description
|
UDLD
|
Status of whether UDLD is enabled or disabled.
|
Port
|
Module and port numbers.
|
Admin Status
|
Status of whether administration status is enabled or disabled.
|
Aggressive Mode
|
Status of whether aggressive mode is enabled or disabled.
|
Link State
|
Status of the link: undetermined (detection in progress, UDLD has been disabled on the neighbors), not applicable (UDLD is not supported on the port, UDLD has been disabled on the port, or the port is disabled), shutdown (unidirectional link has been detected and the port disabled), bidirectional (bidirectional link has been detected).
|
Related Commands
set udld
set udld aggressive-mode
set udld interval
show users
Use the show users command to show if the console port is active and to list all active Telnet sessions with the IP address or IP alias of the originating host.
show users [noalias]
Syntax Description
noalias
|
(Optional) Keyword to indicate, not to display, the IP alias; the IP address is displayed.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Examples
This example shows how to display the users of the active Telnet sessions:
---------------------------------------- ------------------------------
The output shows the state of the console port (active or inactive) and the IP address or IP alias of each active Telnet session.
Related Commands
disconnect