|
|
Use the show time command to display the current time of day in the system clock.
show timeThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Normal.
This example shows how to display the current time:
Console> show time Wed Sep 30 1998, 02:54:50 Console>
The output shows the day of the week, month, day, year, hour, minutes, and seconds.
Use the show timezone command to display the current time zone and offset.
show timezoneThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Normal.
This example shows how to display the current time zone and offset:
Console> show timezone Timezone set to 'pst', offset from UTC is -8 hours Console>
Use the show top command to start the TopN process.
show top [N] [metric] [interval interval] [port_type] [background]
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 as follows: 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 include 0, 10...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 as follows: all---all port types are used eth---Ethernet port 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. |
The defaults are as follows:
Switch command.
Normal.
You can terminate TopN processes with the background option specified only by using the clear top [report_num] command. You cannot terminate TopN processes by pressing Ctrl-C.
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.
This example shows how to start the TopN process with the background option:
Console> show top 10 util interval 600 background 10/19/1998,14:05:38:MGMT-5: TopN report 2 started by telnet/172.20.22.7/. Console> 10/19/1998,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: 10/19/1998,12:04:16
End Time: 10/19/1998,12:14:18
PortType: all
Metric: util
Port Band- Uti Tx/Rx-bytes Tx/Rx-pkts Tx/Rx-bcst Tx/Rx-mcst In- Buf-
width % err Ovflw
----- ----- --- -------------------- ---------- ---------- ---------- ---- -----
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
5/45 10 0 2314 218 0 701 0 0
Console>
Use the show top report command to list all TopN processes and specific TopN reports.
show top report [report_num]
report_num | (Optional) TopN report number for each process. |
This command has no default setting.
Switch command.
Normal.
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 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.
This example shows how to display all the active TopN processes and all the available TopN reports for the switch:
Console> show top report Rpt Start time Int N Metric Status Owner (type/machine/user) --- ------------------- --- --- ---------- -------- ------------------------- 1 10/19/1998,11:34:00 60 20 Tx/Rx-Bytes done telnet/172.20.22.7/ 2 10/19/1998,11:34:08 600 10 Util done telnet/172.34.39.6/ 4 10/19/1998,11:35:17 300 20 In-Errors pending Console// 5 10/19/1998,11:34:26 60 20 In-Errors pending* Console// 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 10/19/1998,11:34:26 60 20 In-Errors pending* Console// 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: 10/19/1998,11:34:00
End Time: 10/19/1998,11:34:33
PortType: all
Metric: util
Port Band- Uti Tx/Rx-bytes Tx/Rx-pkts Tx/Rx-bcst Tx/Rx-mcst In- Buf-
width % err Ovflw
----- ----- --- -------------------- ---------- ---------- ---------- ---- -----
/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
Console>
Use the show trunk command to display trunking information for the switch.
show trunk [mod_num[/port_num]] [detail]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port. |
detail | (Optional) Keyword to show detailed information about the specified trunk port. |
This command has no default setting.
Switch command.
Normal.
Entering the show trunk command without specifying a module or port number displays only the actively trunking ports.
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.
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.
This example shows how to display trunking information for the switch:
Console> (enable) show trunk Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------- 4/9 auto isl trunking 1 4/10 desirable isl trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------- 4/9 1-1005 4/10 1-1005 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------- 4/9 1,4-5,1003,1005 4/10 1,4-5,1003,1005 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------- 4/9 1005 4/10 1005 Console> (enable)
This example shows how to display trunking information for a specific port:
Console> (enable) show trunk 4/5 Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------- 4/5 nonegotiate dot1q trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------- 4/5 1-1005 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------- 4/5 1-3,1003,1005 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------- 4/5 1005 Console> (enable)
This example shows how to display detailed information about the specified trunk port:
Console> (enable)show trunk 1/1 detailPort Mode Encapsulation Status Native vlan-------- ----------- ------------- ------------ -----------1/1 auto negotiate not-trunking 1Port Peer-Port Mode Encapsulation Status-------- --------- ----------- ------------- ------------1/1 2/3 auto n-isl not-trunkingPort TrunkFramesTx TrunkFramesRx WrongEncap-------- -------------------- -------------------- ----------1/1 0 0 0Port Vlans allowed on trunk-------- ---------------------------------------------------------------------1/1 1-1005Port Vlans allowed and active in management domain-------- ---------------------------------------------------------------------1/1 1Port Vlans in spanning tree forwarding state and not pruned-------- ---------------------------------------------------------------------1/1Console> (enable)
Table 2-42 describes the fields in the show trunk command set outputs.
| Field | Description |
|---|---|
Port | Module and port number(s). |
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. |
Use the show udld command to display UDLD information.
show udld
port | Keyword to specify module and/or port(s). |
mod_num | (Optional) Number of the module for which UDLD information is displayed. |
/port_num | (Optional) Number of the port for which UDLD information is displayed. |
This command has no default setting.
Switch command.
Normal.
This example shows how to find out whether or not UDLD is enabled:
Console> show udld UDLD : enabled Console>
This example shows how to display UDLD information for a specific module and port:
Console> show udld port 2/1 UDLD :enabled Port Admin Status Link State -------- ------------ ---------------- 2/1 enabled undetermined Console>
This example shows how to display UDLD information for all ports on a specific module:
Console> (enable) show udld port 3 UDLD : enabled Port Admin Status Link State -------- ------------ ---------------- 3/1 enabled undetermined 3/2 enabled undetermined 3/3 enabled undetermined 3/4 enabled undetermined 3/5 enabled undetermined 3/6 disabled not applicable 3/7 disabled not applicable 3/8 disabled not applicable
Table 2-43 describes the fields in the show udld command output.
| Field | Description |
|---|---|
UDLD | Status of whether UDLD is enabled or disabled. |
Port | Module and port number(s). |
Admin Status | Status of whether administration status is enabled or disabled. |
Link State | Status of the link: undetermined (detection in progress, neighbor UDLD has been disabled), not applicable (UDLD has been disabled), shutdown (unidirectional link has been detected and the port disabled), bidirectional (bidirectional link has been detected and the port disabled). |
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]
noalias | (Optional) Keyword to indicate, not to display, the IP alias; the IP address is displayed. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display the users of the active Telnet sessions:
Console> show users Console Port ------------ Active Telnet Sessions User ---------------------------------------- ------------------------------ 172.16.10.75 172.16.10.75 171.31.1.203 Console>
The output shows the state of the console port (active or inactive) and the IP address or IP alias of each active Telnet session.
|
|