|
|
Use the show port command to display port status and counters.
show port [mod_num[/port_num]]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port on the module. |
This command has no default setting.
Switch command.
Normal.
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
This example shows how to display the status and counters for port 1 on module 1:
Console> show port 1/1
Port Name Status Vlan Duplex Speed Type
----- ------------------ ---------- ---------- ------ ----- ------------
1/1 connected 1 full 1000 1000BaseSX
Port Security Secure-Src-Addr Last-Src-Addr Shutdown Trap IfIndex
----- -------- ----------------- ----------------- -------- -------- -------
1/1 disabled No disabled 3
Port Broadcast-Limit Broadcast-Drop
-------- --------------- --------------------
1/1 - 0
Port Send FlowControl Receive FlowControl RxPause TxPause
admin oper admin oper
----- -------- -------- -------- -------- ---------- ----------
1/1 desired on off off 0 0
Port Status Channel Admin Ch Neighbor Neighbor
Mode Group Id Device Port
----- ---------- --------- ----- ----- ----------------------------------- -----
1/1 connected auto 123 0
Port Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize
----- ---------- ---------- ---------- ---------- ---------
1/1 0 0 0 0 0
Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts Giants
----- ---------- ---------- ---------- ---------- --------- --------- ---------
1/1 0 0 0 0 23 0 0
Last-Time-Cleared
--------------------------
Fri Feb 25 2000, 20:41:52
Table 2-36 describes the possible fields (depending on the port type queried) in the show port command output.
| Field | Description |
|---|---|
Port | Module and port number. |
Name | Name (if configured) of the port. |
Status | Status of the port (connected, notconnect, connecting, standby, faulty, inactive, shutdown, disabled, or monitor). |
Vlan | VLANs to which the port belongs. |
Duplex | Duplex setting for the port (auto, full, half). |
Speed | Speed setting for the port (auto, 10, 100, 1000). |
Type1 | Port type, for example, 1000BaseSX or 100BaseFX. |
Security | Status of whether port security is enabled or disabled. |
Secure-Src-Addr | Secure MAC address for the security-enabled port. |
Last-Src-Addr | Source MAC address of the last packet received by the port. |
Shutdown | Status of whether the port was shut down because of security. |
Trap | Status of whether port trap is enabled or disabled. |
IfIndex | Number of the ifIndex. |
Broadcast-Limit | Broadcast threshold configured for the port. |
Broadcast-Drop | Number of broadcast/multicast packets dropped because the broadcast limit for the port was exceeded. |
Align-Err | Number of frames with alignment errors (frames that do not end with an even number of octets and have a bad CRC) received on the port. |
FCS-Err | Number of valid size frames with FCS errors but no framing errors. |
Xmit-Err | Number of transmit errors that occurred on the port (indicating that the internal transmit buffer is full). |
Rcv-Err | Number of receive errors that occurred on the port (indicating that the internal receive buffer is full). |
UnderSize | Number of received frames less than 64 octets long (but are otherwise well-formed). |
Single-Coll | Number of times one collision occurred before the port transmitted a frame to the media successfully. |
Multi-Coll | Number of times multiple collisions occurred before the port transmitted a frame to the media successfully. |
Late-Coll | Number of late collisions (collisions outside the collision domain). |
Excess-Col | Number of excessive collisions that occurred on the port (indicating that a frame encountered 16 collisions and was discarded). |
Carri-Sen | Number of times the port sensed a carrier (to determine whether the cable is currently being used). |
Runts | Number of received runt frames (frames that are smaller than the minimum IEEE 802.3 frame size) on the port. |
Giants | Number of received giant frames (frames that exceed the maximum IEEE 802.3 frame size) on the port. |
CE-State | Connection entity status. |
Conn-State | Connection state of the port, as follows:
|
Type | Type of port, such as A---A port and B---B port. |
Neig | Type of port attached to this port. The neighbor can be one of these types:
|
Ler Con | Status of whether the port is currently in a LER condition. |
Est | Estimated LER. |
Alm | LER at which a link connection exceeds the LER alarm threshold. |
Cut | LER cutoff value (the LER at which a link connection is flagged as faulty). |
Lem-Ct | Number of LEM errors received on the port. |
Lem-Rej-Ct | Number of times a connection was rejected because of excessive LEM errors. |
Last-Time-Cleared | Last time the port counters were cleared. |
Auto-Part | Number of times the port entered the auto-partition state due to excessive consecutive collisions. |
Data-rate mismatch | Number of valid size frames that experienced overrun or underrun. |
Src-addr change | Number of times the last source address changed. |
Good-bytes | Total number of octets in frames with no error. |
Short-event | Number of short events received. |
| 1These fields will change according to the system configuration. |
Use the show port broadcast command to display broadcast information.
show port broadcast [mod_num[/port_num]]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port on the module. |
This command has no default setting.
Switch command.
Privileged.
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
On the 1000BaseX switching module, when you specify a port for broadcast suppression, the traffic is suppressed only in the network-to-Catalyst 6000 family switch bus direction.
This example shows how to display broadcast information for port 2 on module 1:
Console> show port broadcast 1/2 Port Broadcast-Limit Broadcast-Drop -------- --------------- -------------------- 1/2 20.00 % 532 Console>
Table 2-37 describes the possible fields (depending on the port type queried) in the show port broadcast command output.
| Field | Description |
|---|---|
Port | Module and port number. |
Broadcast-Limit | Broadcast threshold configured for the port. |
Broadcast-Drop | Number of broadcast or multicast packets dropped because the port broadcast limit was exceeded. |
Use the show port capabilities command to display the capabilities of the modules and ports in a switch.
show port capabilities [mod_num[/port_num]]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port on the module. |
This command has no default setting.
Switch command.
Normal.
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
This example shows how to list the port capabilities for module 1, port 1:
Console> show port capabilities 1/1
Model WS-X6K-SUP1-2GE
Port 1/1
Type 1000BaseSX
Speed 1000
Duplex full
Trunk encap type 802.1Q,ISL
Trunk mode on,off,desirable,auto,nonegotiate
Channel yes
Broadcast suppression percentage(0-100)
Flow control receive-(off,on,desired),send-(off,on,desired)
Security yes
Membership static,dynamic
Fast start yes
QOS scheduling rx-(1q4t),tx-(2q2t)
CoS rewrite yes
ToS rewrite DSCP
UDLD Capable
Inline power no
Voice vlan no
Console> (enable)
Table 2-38 describes the possible fields (depending on the type of port queried) and the values in the show port capabilities command output.
| Field | Description |
|---|---|
Model | Module model number. |
Port | Module number and port number. |
Type1 | Port type, for example, 1000BaseSX or 100BaseFX. |
Speed1 | Speed setting for the port (auto, 10, 100, 1000). |
Duplex | Duplex mode (half, full, auto). |
Trunk encap type | Trunk encapsulation type (ISL, 802.1Q, 802.10, or no). |
Trunk mode | Trunk administrative status of the port (on, off, auto, desirable, nonegotiate, or no). |
Channel | Status of which ports can form a channel group. The ports are shown in mod_num/port_num format. For example, 3/1-2 indicates module 3, ports 1 and 2. Also, any ports in range [mod/1-mod/high_port] or no ports may be indicated. |
Broadcast suppression | Percentage of total available bandwidth that can be used by broadcast traffic (0-100). |
Flow control | Flow-control options you can set (receive-[off, on, desired], send-[off, on, desired], or no). |
Security | Status of whether port security is enabled (yes, no). |
Membership | Method of membership assignment of a port or range of ports to a VLAN (static, dynamic). |
Fast start | Status of whether the spanning tree port fast-start feature on the port is enabled (yes, no). |
QoS scheduling | Port type of the transmit and receive drop thresholds. |
CoS rewrite | Status of whether the port supports CoS rewrite (yes, no). |
ToS rewrite | Status of whether the port supports ToS rewrite (IP-Precedence). |
UDLD | Status of whether the port is UDLD-capable or not. |
Inline power | Status of whether the port supports inline power (yes, no). |
Voice vlan | Status of whether the port supports voice or VLAN (yes, no). |
| 1These fields will change depending on the system configuration. |
set port channel
set port broadcast
set port security
set port speed
set spantree portfast
set trunk
Use the show port cdp command to display port CDP enable state and message interval on the port.
show port cdp [mod_num[/port_num]]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port on the module. |
This command has no default setting.
Switch command.
Normal.
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
This example shows how to display CDP information for all ports:
Console> show port cdp CDP :enabled Message Interval :60 Hold Time :180 Port CDP Status -------- ---------- 1/1 enabled 1/2 enabled Console>
Table 2-39 describes the fields in the show port cdp command output.
| Field | Description |
|---|---|
CDP | Status of whether CDP is enabled or not. |
Message-Interval | Interval between CDP message exchange with a neighbor. |
Hold Time | Hold time setting. |
CDP Enhancement | Status of whether CDP enhancement is enabled or not. |
Port | Module and port number. |
CDP Status | CDP status of the port (enabled, disabled). |
Use the show port channel command to display EtherChannel information for a module or port.
show port channel [mod[/port]] [statistics | info]
mod | (Optional) Number of the module. |
/port | (Optional) Number of the port. |
statistics | (Optional) Keyword to display statistics about the port (PAgP packets sent and received). |
info | (Optional) Keyword to display port information such as speed, duplex status, priority, secure or dynamic status, and trunk status. |
spantree | trunk | protcol | gmrp | gvrp | qos | (Optional) Keyword to display feature-related parameters. |
This command has no default setting.
Switch command.
Normal.
The protocol conditions are as follows:
The GVRP registration status is defined as follows:
When you enter the option keyword with any of the options (spantree | trunk | protcol | gmrp | gvrp | qos), associated VLANs and the specified feature-related parameters are displayed.
If you do not specify mod or /port, EtherChannel information is shown for all channeling ports on all modules.
This example shows how to display Ethernet channeling information for module 1:
Console> show port channel 1Port Status Channel Admin ChMode Group Id----- ---------- --------- ----- -----1/1 nonconnect on 195 7691/2 connected on 195 769Port Device-ID Port-ID Platform----- ------------------------------- ------------------------- ----------------1/11/2Console>
This example shows how to display port statistics:
Console>show port channel 4 statisticsPort Admin PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts PAgP PktsGroup Transmitted Received InFlush RetnFlush OutFlush InError----- ------- ----------- --------- --------- --------- --------- ---------4/1 69 20 0 0 0 0 04/2 69 105 60 0 0 0 04/3 151 0 0 0 10 0 04/4 151 0 5 0 0 0 04/5 70 0 0 0 0 0 04/6 70 42 0 0 2 0 04/7 152 0 92 0 0 0 04/8 152 0 0 0 0 0 0Console>
This example shows how to display port information:
Console>show port channel 1 infoSwitch Frame Distribution Method:mac bothPort Status Channel Admin Channel Speed Duplex Vlan PortSecurity/mode group id Dynamic port----- ---------- --------- ----- ------- ----- ------ ---- -------------1/1 notconnect auto 1 0 1000 full 1 -1/2 connected auto 1 0 1000 full 1 -Port ifIndex Oper-group Neighbor Oper-DistributionOper-group Method----- ------- ---------- ---------- -----------------1/1 - 1 mac both1/2 - 2 mac bothPort Device-ID Port-ID Platform----- ------------------------------- ------------------------- ----------------1/11/2Port Trunk-status Trunk-type Trunk-vlans----- ------------ ------------- -----------------------------------------------1/1 not-trunking negotiate 1-10051/2 not-trunking negotiate 1-1005Port Portvlancost-vlans----- --------------------------------------------------------------------------1/11/2Port Port Portfast Port Portpriority vlanpri vlanpri-vlans----- -------- -------- ------- ------------------------------------------------1/1 32 disabled 01/2 32 disabled 0Port IP IPX Group----- -------- -------- --------1/1 on auto-on auto-on1/2 on auto-on auto-onPort GMRP GMRP GMRPstatus registration forwardAll----- -------- ------------ ----------1/1 enabled normal disabled1/2 enabled normal disabledPort GVRP GVRP GVRPstatus registeration applicant----- -------- ------------- ---------1/1 disabled normal normal1/2 disabled normal normalPort Qos-Tx Qos-Rx Qos-Trust Qos-DefCos----- ------ ------ ------------ ----------1/1 2q2t 1q4t untrusted 01/2 2q2t 1q4t untrusted 0Console>
These examples show how to display feature-specific parameter information:
Console> (enable)show port channel 3 info spantreePort Port Portfast Port Portpriority vlanpri vlanpri-vlans----- -------- -------- ------- ------------------------------------------------3/1 32 disabled 12 2,4,903/2 32 disabled 12 2,4,903/3 32 disabled 12 2,4,903/4 32 disabled 12 2,4,90Console>Console> (enable)show port channel 3 info trunkPort Trunk-status Trunk-type Trunk-vlans----- ------------ ------------- -----------------------------------------------3/1 not-trunking negotiate 1-10053/2 not-trunking negotiate 1-10053/3 not-trunking negotiate 1-10053/4 not-trunking negotiate 1-1005Console>Console> (enable)show port channel 3 info protcolPort IP IPX Group----- -------- -------- --------3/1 on auto-on auto-on3/2 on auto-on auto-on3/3 on auto-on auto-on3/4 on auto-on auto-onConsole>Console> (enable)show port channel 3 info gmrpPort GMRP GMRP GMPRstatus registration forwardAll----- -------- ------------ ----------3/1 enabled normal disabled3/2 enabled normal disabled3/3 enabled normal disabled3/4 enabled normal disabledConsole>Console> (enable)show port channel 1 info gvrpPort GVRP GVRP GVRPstatus registeration applicant----- -------- ------------- ---------1/1 disabled normal normal1/2 disabled normal normalConsole>Console> (enable)show port channel 1 info qosPort Qos-Tx Qos-Rx Qos-Trust Qos-DefCos Qos-InterfacePortType PortType Type Type----- -------- -------- ------------ ---------- --------------1/1 2q2t 1q4t untrusted 0 port-based1/2 2q2t 1q4t untrusted 0 port-based----- -------- -------- ------------ ---------- --------------Port ACL name Type----- -------------------------------- ----1/1 IPIPXMAC1/2 IPIPXMAC----- -------------------------------- ----Console>
Table 2-40 describes the possible fields (depending on the type of port queried) and the values in the show port channel command outputs.
| Field | Description |
|---|---|
Port | Module and port number. |
Status | Channeling status of the port (connected, notconnect). |
Channel mode | Status of whether EtherChannel is on, off, auto, or desirable on the port. |
Admin Group | Number of the admin group. |
PAgP Pkts Transmitted | Number of PAgP packets transmitted. |
PAgP Pkts Received | Number of PAgP packets received. |
PAgP Pkts InFlush | Number of PAgP flush packets received. |
PAgP Pkts RetnFlush | Number of PAgP flush packets returned. |
PAgP Pkts OutFlush | Number of PAgP flush packets transmitted. |
PAgP Pkts InError | Number of PAgP error packets received. |
Channel ID | Number of the channel group. |
Neighbor device | Neighboring device with which the port is channeling. |
Neighbor port | Port on the neighboring device with which the port is channeling. |
Speed | Speed setting for the port (auto, 10, 100, 1000). |
Duplex | Duplex setting for the port (auto, full, half). |
Vlan | VLAN to which the port belongs. |
Port priority | Priority associated with the port. |
PortSecurity/Dynamic port | Status of whether the port is secure or dynamic. |
ifIndex | Interface number to which the port belongs. |
Oper-group | Capability of the group. |
Neighbor device-id | Device ID of the neighboring device with which the port is channeling. |
Neighbor port-id | Port ID of the neighboring device with which the port is channeling. |
Neighbor Oper-group | Capability of the neighboring device. |
Oper-Distribution | Frame distribution method operating status on a per-port basis (ip source, ip destination, ip both, mac source, mac destination, mac both, hotstandby-active; hotstandby-idle). |
Trunk-status | Status of whether the port is trunking or not. |
Trunk-type | Type of trunk port. |
Trunk-vlans | VLANs to which the port belongs. |
Portvlancost-vlans | Port VLAN cost. |
Portfast | Status of the whether the fast-start mode is enabled or disabled. |
Port vlanpri | Port VLAN priority. |
Port vlanpri-vlans | Port number. |
IP | Status of the IP protocol (on, off, auto). |
IPX | Status of the IPX protocol (on, off, auto). |
Group | Status of the VINES, AppleTalk, and DECnet protocols protocol (on, off, auto). |
GMRP status | Status of whether GMRP is enabled or disabled. |
GMRP registration | Status of the administrative control of an outbound port (normal, fixed, forbidden). |
GMRP forward/all | Status of whether the Forward All feature is enabled or disabled. |
GVRP status | Status of whether GVRP is enabled or disabled. |
GVRP registration | Status of the administrative control of an outbound port (normal, fixed, forbidden). |
Qos-Tx | Transmit drop threshold. |
Qos-Rx | Receive drop threshold. |
Qos-Trust | Status of whether the port is trusted or untrusted. |
Qos-DefCos | CoS value. |
Qos Port-based | Status of whether the port is port-based QoS or not. |
ACL name | Name of the ACL. |
Protocol | Protocol associated with the port. |
set port channel
show channel
show channel group
Use the show port cops command to display COPS information on all or individual ports.
show port cops [mod | mod/port]
mod | (Optional) Number of the module. |
port | (Optional) Number of the port. |
This command has no default setting.
Switch command.
Normal.
If you do not specify mod or /port, information is shown for all ports on all modules.
For a few minutes after a switchover, note that if you enter the show port cops command, the output may be incorrect. If this is the case, the following warning displays:
COPS High Availability Switch Over in progress, hardware may beprogrammed differently than as suggested by the output of thesecommands.
This example shows how to display COPS information for all ports:
Console>show port copsPort Admin Roles Oper Roles------ ------------------------------- -------------------------1/1 backbone_port backbone_portbranch_office_port -access_port -1/2 - -3/1 - -3/2 backbone_port backbone_port3/3 backbone_port backbone_port3/4 access_port access_port3/5 access_port branch_office_portbackbone_port -branch_office_port -net_port -3/6 access_port access_port3/7 - -3/8 - -Console>
This example shows how to display COPS information for a specific port:
Console>show port cops 1/1Port Admin Roles Oper Roles------ ------------------------------- -------------------------1/1 backbone_port backbone_portbranch_office_port -access_port -1/2 - -
Console>
Table 2-41 describes the fields displayed in the show port cops command output.
| Field | Description |
|---|---|
Port | Module and port number. |
Admin Roles | Administration role. |
Oper Roles | Operating role. |
Use the show port counters command to show all the counters for a port.
show port counters [mod_num/port_num]
mod_num | (Optional) Number of the module for which to show port counter information. |
/port_num | (Optional) Number of the port on the module for which to show port counter information. |
This command has no default setting.
Switch command.
Normal.
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
This example shows counters for all ports:
Console> show port counters Port Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize ----- ---------- ---------- ---------- ---------- --------- 1/1 0 0 0 0 0 1/2 0 0 0 0 0 4/1 0 0 0 0 0 4/2 0 0 0 0 0 4/3 0 0 0 0 0 4/4 0 0 0 0 0 Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts Giants ----- ---------- ---------- ---------- ---------- --------- --------- --------- 1/1 12 0 0 0 0 0 - 1/2 0 0 0 0 0 0 0 4/1 0 0 0 0 0 0 0 4/2 0 0 0 0 0 0 0 4/3 0 0 0 0 0 0 0 4/4 0 0 0 0 0 0 0 Last-Time-Cleared -------------------------- Wed Jan 11 2000, 14:58:19
Table 2-42 describes the possible fields (depending on the port type queried) in the show port counters command output.
| Field | Description |
|---|---|
Port | Module and port number. |
Align-Err | Number of frames with alignment errors (frames that do not end with an even number of octets and have a bad CRC) received on the port. |
FCS-Err | Number of frame check sequence errors that occurred on the port. |
Xmit-Err | Number of transmit errors that occurred on the port (indicating that the internal transmit buffer is full). |
Rcv-Err | Number of receive errors that occurred on the port (indicating that the internal receive buffer is full). |
UnderSize | Number of received frames less than 64 octets long (but are otherwise well-formed). |
Single-Coll | Number of times one collision occurred before the port successfully transmitted a frame to the media. |
Multi-Coll | Number of times multiple collisions occurred before the port successfully transmitted a frame to the media. |
Late-Coll | Number of late collisions (collisions outside the collision domain). |
Excess-Col | Number of excessive collisions that occurred on the port (indicating that a frame encountered 16 collisions and was discarded). |
Carri-Sen | Number of times the port sensed a carrier (to determine whether the cable is currently being used). |
Runts | Number of received runt frames (frames that are smaller than the minimum IEEE 802.3 frame size) on the port. |
Giants | Number of received giant frames (frames that exceed the maximum IEEE 802.3 frame size) on the port. |
Last-Time-Cleared | Last time the port counters were cleared. |
Use the show port flowcontrol command to display per-port status information and statistics related to flow control.
show port flowcontrol [mod_num[/port_num]]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port on the module. |
This command has no default setting.
Switch command.
Normal.
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
This example shows how to display the flow-control port status and statistics for module 6:
Console> show port flowcontrol 6Port Send FlowControl Receive FlowControl RxPause TxPauseadmin oper admin oper----- -------- -------- -------- -------- ---------- ----------6/1 desired off off off 0 06/2 desired off off off 0 06/3 desired off off off 0 06/4 desired off off off 0 06/5 desired off off off 0 06/6 desired off off off 0 06/7 desired off off off 0 06/8 desired off off off 0 0Console>
Table 2-43 describes the fields in the show port flowcontrol command output.
| Field | Description |
Port | Module and port number. |
Send-Flowcontrol- | Flow-control administration. Possible settings: on indicates the local port sends flow control to the far end; off indicates the local port does not send flow control to the far end; desired indicates the local end sends flow control to the far end if the far end supports it. |
Send-Flowcontrol- | Flow-control operation. Possible setting: disagree indicates the two ports could not agree on a link protocol. |
Receive-Flowcntl- | Flow-control administration. Possible settings: on indicates the local port requires the far end to send flow control; off indicates the local port does not allow the far end to send flow control; desired indicates the local end allows the far end to send flow control. |
Receive-Flowcntl- | Flow-control operation. Possible setting: disagree indicates the two ports could not agree on a link protocol. |
RxPause | Number of Pause frames received. |
TxPause | Number of Pause frames transmitted. |
Use the show port jumbo command to display the jumbo frame settings for all ports with the feature enabled.
show port jumboThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Normal.
This example shows how to display the jumbo frame settings for ports with the feature enabled:
Console> show port jumboJumbo frames MTU size is 9216 bytes.Jumbo frames enabled on port(s) 6/1-2,7/1-8.Console>
This example shows the display if the jumbo frame feature could not be enabled on some ports at system startup:
Console>show port jumboJumbo frames MTU size is 9216 bytes.Jumbo frames enabled on port(s) 6/1-2.Jumbo frames error-disabled on port(s) 7/1-8.Console>
Use the show port negotiation command to display the link negotiation protocol setting for the specified port.
show port negotiation [mod_num[/port_num]]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port on the module. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display the link negotiation protocol settings on module 3, port 1:
Console> show port negotiation 3/1 Port Link Negotiation ------- -------------------- 3/1 enabled Console>
show port flowcontrol
set port negotiation
Use the show port protocol command to view protocol filters configured on the ports on the EtherChannel ports.
show port protocol [mod_num[/port_num]]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port on the module. |
This command has no default setting.
Switch command.
Normal.
If you do not specify a /port_num, filters configured on all the ports on the module are shown.
This example shows how to view protocol filters on configured ports:
Console> show port protocol Port Vlan IP IP Hosts IPX IPX Hosts Group Group Hosts -------- ---------- -------- -------- -------- --------- -------- ----------- 1/1 1 on 0 on 0 on 0 1/2 1 on 0 on 0 on 0 2/1 1 on 3 auto-on 0 auto-on 0 2/2 1 on 0 on 0 on 0 2/3 1 on 0 on 0 on 0 2/4 1 on 0 on 0 on 0 2/5 1 on 0 on 0 on 0 2/6 1 on 0 on 0 on 0 2/7 1 on 0 on 0 on 0 2/8 1 on 0 on 0 on 0 2/9 1 on 0 on 0 on 0 2/10 1 on 0 on 0 on 0 2/11 1 on 0 on 0 on 0 2/12 1 on 0 on 0 on 0 Console>
Use the show port qos command to display QoS-related information for a specific port.
show port qos mod_num[/port_num]
mod_num/port_num | Number of the module and port; the mod_num is required, but the port_num is optional. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display QoS-related information for port 1 on module 2:
Console> show port qos 2/1QoS is enabled for the switch.QoS policy source for the switch set to local.Port Interface Type Interface Type Policy Source Policy Sourceconfig runtime config runtime----- -------------- -------------- ------------- -------------2/1 vlan-based vlan-based COPS localPort TxPort Type RxPort Type Trust Type Trust Type Def CoS Def CoSconfig runtime config runtime----- ------------ ------------ ------------ ------------ ------- -------2/1 2q2t 1q4t untrusted untrusted 0Config:Port ACL name Type----- -------------------------------- ----No ACL is mapped to port 2/1.Runtime:Port ACL name Type----- -------------------------------- ----No ACL is mapped to port 2/1.Console>
Use the show qos rsvp command to display RSVP+ information on a per-port basis.
show port rsvp [mod | mod/port]
mod | (Optional) Number of the module. |
mod/port | (Optional) Number of the module and port. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display RSVP+ information for a specific port:
Console> (enable)show port rsvp 2Port DSBM Managed Configured Elected DSBM DSBM IP AddressElection Segment Priority Priority----- -------- ------- ---------- ------------ ---------------2/1 enabled yes 232 232 171.21.34.252/2 disabled no 128 - -Console> (enable)
Use the show port security command to view port security configuration information and statistics.
show port security mod/ports... [statistics]
mod | Number of the module. |
ports... | Number of the ports. |
statistics | (Optional) Keyword to display security statistics. |
This command has no default setting.
Switch command.
Privileged.
If you issue this command against a Token Ring port, this message displays:
Feature not supported for Module x.
This example shows how to display port security configuration information on a secured port and the output:
Console> (enable) show port security 4/1
Port Security Violation Shutdown-Time Age-Time Maximum-Addrs Trap IfIndex
----- -------- --------- ------------- -------- ------------- -------- -------
4/1 enabled shutdown 120 1440 25 disabled 3
Port Secure-Src-Addrs Age-Left Last-Src-Addr Shutdown Shutdown-Time-Left
---- ----------------- -------- ----------------- -------- ------------------
4/1 00-11-22-33-44-55 4 00-11-22-33-44-55 No -
00-10-14-da-77-f1 100
This example shows how to display the output on a port that has experienced a security violation:
Console> (enable) show port security 4/1
Port Security Violation Shutdown-Time Age-Time Maximum-Addrs Trap IfIndex
----- -------- --------- ------------- -------- ------------- -------- -------
4/1 enabled shutdown 120 600 25 disabled 3
Port Secure-Src-Addrs Age-Left Last-Src-Addr Shutdown Shutdown-Time-Left
---- ----------------- -------- ----------------- -------- ------------------
4/1 00-11-22-33-44-55 60 00-11-22-33-44-77 Yes -
00-10-14-da-77-f1 200
00-11-22-33-44-66 200
This example shows that port 4/1 has been shut down and that the timeout left is 60 minutes before the port will be reenabled:
Console> (enable) show port security 4/1
Port Security Violation Shutdown-Time Age-Time Maximum-Addrs Trap IfIndex
----- -------- --------- ------------- -------- ------------- -------- -------
4/1 enabled restrict 120 600 25 disabled 3
Port Secure-Src-Addrs Age-Left Last-Src-Addr Shutdown Shutdown-Time-Left
---- ----------------- -------- ----------------- -------- ------------------
4/1 00-11-22-33-44-55 60 00-11-22-33-44-77 Yes -
00-10-14-da-77-ff
set port security
clear port security
Use the show port status command to display port status information.
show port status [mod_num[/port_num]]
mod_num | (Optional) Number of the module. |
/port_num | (Optional) Number of the port on the module. |
This command has no default setting.
Switch command.
Normal.
If you do not specify a mod_num, the ports on all modules are shown. If you do not specify a /port_num, all the ports on the module are shown.
This example shows how to display port status information for all ports:
Console> show port status Port Name Status Vlan Duplex Speed Type ----- ------------------ ---------- ---------- ------ ------ ------------ 1/1 connected 52 half 100 100BaseTX 1/2 notconnect half 100 100BaseTX Console>
Table 2-44 describes the fields in the show port status command output.
| Field | Description |
|---|---|
Port | Module and port number. |
Name | Name (if configured) of the port. |
Status | Status of the port (connected, notconnect, connecting, standby, faulty, inactive, shutdown, disabled, or monitor). |
Vlan | VLANs to which the port belongs. |
Duplex | Duplex setting for the port (auto, full, half). |
Speed | Speed setting for the port (auto, 10, 100, 1000). |
Type1 | Port type (100BaseTX) |
| 1These fields will change according to the system configuration. |
Use the show proc command to display CPU, memory allocation, and process utilization information.
show proc [cpu | mem]
cpu | (Optional) Keyword to specify CPU information. |
mem | (Optional) Keyword to specify memory allocation information. |
This command has no default setting.
Switch command.
Privileged.
You can enter this command only in privileged mode.
If you do not specify cpu or mem, process information is displayed. The mem keyword allows you to display memory allocation information, such as how much each process has allocated and how much it has freed.
This example shows how to display CPU information:
Console> (enable)show proc cpu(W)CPU utilization for five seconds: 1.0%; one minute: 1. 0%; five minutes: 1. %PID Runtime(ms) Invoked uSecs 5Sec 1Min 5min TTY Process0 0 0 0 99.10% 99.0 % 99.0 % 0 idle1 1 36 1000 0.0 % 0.0 % 0.0 % 0 Flash MIB Updat2 1342 2846 460000 0.0 % 0.0 % 0.0 % 0 SynDiags3 730172 4440594 400000 0.0 % 0.0 % 0.0 % 0 SynConfig4 33752 424120 1000 0.0 % 0.0 % 0.0 % 0 Statuspoll5 7413 44916 1000 0.0 % 0.0 % 0.0 % 0 SWPoll64bCnt6 9568 15889836 1000 0.0 % 0.0 % 0.0 % 0 SL_TASK7 746 636118 105000 0.0 % 0.0 % 0.0 % 0 RedundantTaskConsole> (enable)
This example shows how to display process information:
Console> (enable)show proc memTotal: 10945712, Used: 1438992, Free: 9506720PID TTY Allocated Freed Holding Process0 0 706240 2832 703408 idle1 0 240 0 240 Flash MIB Updat2 0 164944 164144 800 SynDiags3 0 208224 2992 205232 SynConfig4 0 96 0 96 Statuspoll5 0 2592 2560 32 SWPoll64bCnt6 0 80 0 80 SL_TASK7 0 2272 1952 320 RedundantTaskConsole> (enable)
This example shows how to display process utilization information:
Console> (enable)show procPID Q T PC Runtime(ms) Invoked uSecs Stacks TTY Process0 1 rd 0x80407b10 0 0 0 1640/6144 0 idle1 65376 st 0x80407d8c 1 36 1000 1188/6144 0 Flash MIB Upda2 2 st 0x80407d8c 1342 2846 460000 3160/6144 0 SynDiags3 1 rd 0x80407d8c 729979 4439406 400000 1672/6144 0 SynConfig4 2 si 0x80407d8c 33739 424007 1000 1572/6144 0 Statuspoll5 4 si 0x80407d8c 7413 44916 1000 1888/6144 0 SWPoll64bCnt6 2 si 0x80407d8c 9565 15885713 1000 1096/6144 0 SL_TASK7 2 si 0x80407d8c 746 635948 105000 1192/6144 0 RedundantTaskConsole> (enable)
Table 2-45 describes the possible fields in the show proc command outputs:
| Field | Description |
|---|---|
CPU Utilization | Sum of all the loads from all the processes running on the CPU in the last 5 seconds, 1 minute, and 5 minutes. |
PID | Process ID. |
Runtime | Time the process has run since getting created (in milliseconds). |
Invoked | Number of times the process was invoked since getting created. |
uSecs | Maximum time a process ran in a single invocation. |
5sec | Percentage of time this process ran on the CPU in the last 5-second interval. |
1Min | Percentage of time this process ran on the CPU in the last 1-minute interval. |
5Min | Percentage of time this process ran on the CPU in the last 5-minute interval. |
TTY | TTY associated with the process. |
Process | Name of the process. |
Allocated | Sum of all the memory allocated by the process since it was created, including the memory previously freed. |
Freed | Sum of memory the process has freed until now. |
Holding | Amount of memory the process is currently holding. |
Q | Process priority in terms of numbers. Low number means high priority. |
T | State of the process (Running, we=waiting for event, st=sleeping, si=sleeping on an interval, rd=ready to run, id=idle, xx=dead/zombie). |
PC | Calling PC for "show_process" function. |
Stacks | Size of the stack used by the process/the total stack size allocated to the process (in bytes). |
Use the show protocolfilter command to list whether protocol filtering is enabled or disabled.
show protocolfilterThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Normal.
This example shows how to display whether protocol filtering is enabled or disabled:
Console> show protocolfilter Protocol filtering is enabled on this switch. Console>
Use the show pvlan command to show the configuration for a given private VLAN.
show pvlan [vlan | primary | isolated | community]
vlan | (Optional) Number of the private VLAN. |
primary | (Optional) Keyword to display the primary private VLANs. |
isolated | (Optional) Keyword to display the isolated private VLANs. |
community | (Optional) Keyword to display the community private VLANs. |
This command has no default settings.
Switch command.
Normal.
This example shows how to display the status for VLAN 10:
Console> show pvlan 10 Primary Secondary Secondary-Type Ports ------- --------- -------------- ------------ 10 20 isolated 6/1 Console>
This example shows how to display the status for all VLANs set as primary:
Console> show pvlan primary Primary Secondary Secondary-Type Ports ------- --------- -------------- ------------ 10 20 isolated 6/1 11 21 isolated 6/2 30 - - Console>
This example shows how to display the status for all VLANs set as isolated:
Console> show pvlan isolated Primary Secondary Secondary-Type Ports ------- --------- -------------- ------------ 10 20 isolated 6/1 11 21 isolated 6/2 - 31 isolated Console>
This example shows how to display the status for all VLANs set as community:
Console> show pvlan community Primary Secondary Secondary-Type Ports ------- --------- -------------- ------------ 7 902 community 2/4-6 Console>
set vlan
show vlan
set pvlan
set pvlan mapping
clear vlan
clear config pvlan
clear pvlan mapping
show pvlan mapping
Use the show pvlan mapping command to show the private VLAN mappings configured on promiscuous ports.
show pvlan mapping [private_vlan | mod/port]
private_ vlan | (Optional) Number of the private VLAN. |
mod/port | (Optional) Number of the module and port. |
This command has no default settings.
Switch command.
Normal.
This example shows how to display the private VLAN mapping by port:
Console> show pvlan mapping Port Primary Secondary ---- ------- --------- 6/3 10 20 Console>
This example shows how to display the private VLAN mapping for a specific VLAN:
Console> show pvlan mapping 10 Primary Secondary Ports ------- --------- ----- 10 20 6/3 Console>
This example shows how to display the private VLAN mapping for a specific port:
Console> show pvlan mapping 6/3 Port Primary Secondary ---- ------- --------- 6/3 10 20 Console>
This example shows the results when no VLANs are mapped:
Console> show pvlan mapping Port Primary Secondary ---- ------- --------- No Private Vlan Mappings configured. Console>
set vlan
show vlan
set pvlan
set pvlan mapping
clear config pvlan
clear vlan
clear pvlan mapping
show pvlan mapping
Use the show qos acl editbuffer command to display ACL names in the edit buffer.
show qos acl editbufferThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Privileged.
Enter the show qos acl editbuffer command to display the committed access lists that you configured. The information is helpful when you are adding or deleting ACEs.
This example shows how to display QoS ACL edit buffer contents:
Console> (enable)show qos acl editbufferACL Type Status-------------------------------- ---- ----------ip1 IP Committedipx1 IPX Committedmac1 MAC Committed
Use the show qos acl info command to display QoS ACL information.
show qos acl info default-action ip | ipx | mac | all
default-action | Keyword to display default action (using the set qos acl default-action command) for packets that do not match any entry in an access list. |
ip | Keyword to display QoS IP ACL information. |
ipx | Keyword to display all QoS IPX ACL information. |
mac | Keyword to display all QoS MAC ACL information. |
all | Keyword to display all QoS ACL information. |
acl_name | Name of the ACL to be displayed. |
editbuffer | (Optional) Keyword to display edit buffer information. |
editbuffer_index | (Optional) Position of the ACE in the ACL. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to display all ACL default configurations:
Console> (enable)show qos acl info default-action allset qos acl default-action--------------------------ip dscp 7 my1 my2ipx dscp 0mac dscp 0Console> (enable)
This example shows how to display edit buffer formation for a specific ACL:
Console> (enable)show qos acl info my_ip_acl editbufferset qos acl ip my_ip_acl----------------------------------------------------1. set qos acl ip my_ip_acl trustdscp microflow my-micro tcp 1.2.3.4 255.0.0.0
eq port 21 172.20.20.1 255.255.255.02. set qos acl ip my_ip_acl trustdscp microflow my-micro aggregate agg tcp
173.22.3.4 255.0.0.0 eq port 19 173.22.20.1 255.255.255.0 tos 5ACL status: Not CommittedConsole> (enable)
This example shows how to display formation for a specific ACL:
Console> (enable)show qos acl info my_ip_aclset qos acl ip my_ip_acl----------------------------------------------------1. trust-dscp microflow my-micro tcp 1.2.3.4 255.0.0.0 eq
port 21 172.20.20.1 255.255.255.0 tos 52. trust-dscp microflow my-micro aggregate agg tcp
173.22.3.4 255.0.0.0 eq port 19 173.22.20.1 255.255.255.0 tos 5Console> (enable)
set qos acl default-action
set qos policer
clear qos policer
Use the show qos acl map command to display the ACL mapping information.
show qos acl map {config | runtime} {acl_name | mod_num/port_num | vlan | all}
config | Keyword to display NVRAM QoS information. |
runtime | Keyword to display QoS runtime information. |
acl_name | Name of the list. |
mod _num/ port_num | Number of the module and the port. |
vlan | VLAN list. |
all | Keyword to display information regarding all ACLs. |
This command has no default setting.
Switch command.
Privileged.
You can enter the config keyword to display information that was configured through the CLI and saved in NVRAM, regardless of the current runtime information.
This example shows how to display information for all ACLs:
Console>show qos acl map allACL name Vlan # Ports-------- ----------------- -----------------------------web-acc 1,4-7isp1 2 1/1Console>
This example shows how to display information for a specific VLAN:
Console>show qos acl map 1Vlan ACL name---- ----------------1 web-accConsole>
This example shows how to display information for a specific ACL:
Console>show qos acl map isp1ACL name Vlan # Ports-------- ---------------- ---------------isp1 2 1/1Console>
Use the show qos acl resource-usage command to display ACL management information.
show qos acl resource-usageThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Normal.
This example shows how to display ACL management information:
Console> (enable)show qos acl resource-usageACL resource usage:Label:0%Logical Operation Unit:0%TCAM mask:0%TCAM value:0%Console> (enable)
Use the show qos bridged-packet-policing command to display the VLAN-bridged packet-policing status.
show qos bridged-packet-policing [vlan]
vlan | (Optional) Number of the VLAN. |
This command has no default setting.
Switch command.
Privileged.
If you do not specify a VLAN number, the status of all VLANs are displayed.
This example shows how to display the status of a specific VLAN:
Console>show qos bridged-packet-policing 1QoS policing is enabled for bridged packets on vlan 1.Console>
This example shows how to display the status of all VLANs:
Console>show qos bridged-packet-policingQoS policing is enabled for bridged packets on the following vlans:1, 2, 3Console>
set qos bridged-microflow-policing
set qos policer
clear qos policer
Use the show qos info commands to display QoS-related information for a specified port.
show qos info {runtime | config} {mod_num/port_num}
runtime | Keyword to show the current QoS runtime information. |
config | (Optional) Keyword to display NVRAM QoS configuration. |
mod_num /port_num | Number of the module and the port. |
port_type | Port type; valid values are 2q2t and 1p2q2t for transmit and 1q4t and 1p1q4t for receive. |
tx | Keyword to specify the transmit drop threshold. |
rx | Keyword to specify the receive drop threshold. |
This command has no default setting.
Switch command.
Normal.
You can enter the show qos info runtime mod_num/port_num command to view the currently used values in the hardware or the show qos info runtime mod_num/port_num command to view the values that have been configured administratively (present in NVRAM). The outputs differ when QoS has been disabled. When you disable QoS, the values set on all the ports are different from the values present in NVRAM. When you enable QoS, the values in NVRAM are used to program the hardware.
The display of show qos info runtime mod_num/port_num shows both the absolute values and the percentages you specified for the drop thresholds, queue sizes, and WRR. However, the absolute values may not exactly match the percentages specified due to the granularity of permitted settings in hardware.
The number preceding the t letter in the port_type (2q2t, 1p2q2t, 1q4t, or 1p1q4t) determines the number of threshold values the hardware supports. For example, with 2q2t and 1p2q2t, the number of thresholds specified is two; with 1q4t and 1p1q4t, the number of thresholds specified is four. Due to the granularity of programming the hardware, the values set in hardware will be close approximations of the values provided.
The number preceding the q letter in the port_type determines the number of the queues that the hardware supports. For example, with 2q2t and 1p2q2t, the number of queues specified is two; with 1q4t and 1p1q4t, the number of queues specified is four. The system defaults for the transmit queues attempt to keep the maximum latency through a port at a maximum of 10 ms.
The number preceding the p letter in the 1p2q2t and 1p1q4t port types determines the threshold in the priority queue.
This example shows how to display QoS-related NVRAM transmit threshold information:
Console> (enable) show qos info config 2q2t tx
QoS setting in NVRAM for 2q2t transmit:
QoS is disabled
Default CoS = 0
Queue and Threshold Mapping:
Queue Threshold CoS
----- --------- ---------------
1 1 0 1
1 2 2 3
2 1 4 5
2 2 6 7
Tx drop thresholds:
Queue # Thresholds - percentage (abs values )
------- -------------------------------------
1 40% 100%
2 40% 100%
Queue Sizes:
Queue # Sizes - percentage (abs values )
------- -------------------------------------
1 80%
2 20%
WRR Configuration:
Ports have transmit ratios between queue 1 and 2 of
100:256
Console> (enable)
This example shows how to display QoS-related NVRAM receive threshold information:
Console> (enable)show qos info config 1p1q4t rxQoS setting in NVRAM for 1p1q4t receive:QoS is disabledQueue and Threshold Mapping for 1p1q4t (rx):Queue Threshold CoS----- --------- ---------------1 1 01 2 2 31 3 4 51 4 1 6 72 1Rx drop thresholds:Queue # Thresholds - percentage (abs values )------- -------------------------------------1 50% 60% 80% 100%Console> (enable)
This example shows how to display all QoS-related NVRAM threshold information:
Console> (enable)show qos info config 2q2t txQoS setting in NVRAM for 2q2t transmit:QoS is enabledQueue and Threshold Mapping:Queue Threshold CoS----- --------- ---------------1 1 0 11 2 2 32 1 4 52 2 6 7Tx drop thresholds:Queue # Thresholds - percentage (abs values )------- -------------------------------------1 40% 100%2 40% 100%Queue Sizes:Queue # Sizes - percentage (abs values )------- -------------------------------------1 80%2 20%WRR Configuration:Ports with 2q2t have ratio of 100:255 between transmit queue 1 and 2Console> (enable)
This example shows how to display the current QoS runtime information:
Console> (enable)show qos info runtime 1/1Run time setting of QoS:QoS is enabled on 2/1Port 2/1 has 2 transmit queue with 2 drop thresholds (2q2t).Port 2/1 has 1 receive queue with 4 drop thresholds (1q4t).The qos trust type is set to trust-cos.Default CoS = 0Queue and Threshold Mapping:Queue Threshold CoS----- --------- ---------------1 1 0 11 2 2 32 1 4 52 2 6 7Rx drop thresholds:Queue # Thresholds - percentage (abs values )------- -------------------------------------1 50% (38912 bytes) 60% (46688 bytes) 80% (62240 bytes) 100% (73696bytes)Tx drop thresholds:Queue # Thresholds - percentage (abs values )------- -------------------------------------1 40% (144224 bytes) 100% (360416 bytes)2 40% (32864 bytes) 100% (77792 bytes)Queue Sizes:Queue # Sizes - percentage (abs values)------- -------------------------------------1 80% (360416 bytes)2 20% (81888 bytes)WRR Configuration:Ports with speed 1000Mbps have ratio of 100:255 between transmit queue 1and 2 (25600:65280 bytes)Console> (enable)
This example shows how to display the current QoS configuration information:
Console> (enable)show qos info config 8/1QoS setting in NVRAM:QoS is disabledPort 8/1 has 3 transmit queue with 2 drop thresholds (1p2q2t).Port 8/1 has 2 receive queue with 4 drop thresholds (1p1q4t).ACL attached:The qos trust type is set to untrusted.Default CoS = 0Queue and Threshold Mapping for 1p2q2t (tx):Queue Threshold CoS----- --------- ---------------1 1 0 11 2 2 32 1 4 52 2 73 1 6Queue and Threshold Mapping for 1p1q4t (rx):Queue Threshold CoS----- --------- ---------------1 1 01 2 2 31 3 4 51 4 1 6 72 1Rx drop thresholds:Rx drop thresholds are disabled for untrusted ports.Queue # Thresholds - percentage (abs values )------- -------------------------------------1 50% 60% 80% 100%Tx drop thresholds:Tx drop-thresholds feature is not supported for this port type.Tx WRED thresholds:Queue # Thresholds in percentage ( in abs values )------- ------------------------------------------1 80% 100%2 80% 100%Queue Sizes:Queue # Sizes - percentage (abs values )------- -------------------------------------1 70%2 15%3 15%WRR Configuration of ports with speed 1000Mbps:Queue # Ratios (abs values )------- -------------------------------------1 1002 255Console> (enable)
This example shows another display of the current QoS configuration information:
Console> (enable)show qos info config 1p2q2t txQoS setting in NVRAM for 1p2q2t transmit:QoS is enabledQueue and Threshold Mapping:Queue Threshold CoS----- --------- ---------------1 1 0 11 2 2 32 1 4 52 2 6 73 1Tx drop thresholds:Tx drop-thresholds feature is not supported for this port_type.Tx WRED thresholds:Queue # Thresholds in percentage ( in abs values )------- ------------------------------------------1 40% 100%2 40% 100%Queue Sizes:Queue # Sizes - percentage (abs values )------- -------------------------------------1 50%2 30%3 20%WRR Configuration of ports with 1p2q2t:Queue # Ratios (abs values )------- -------------------------------------1 1002 255Console> (enable)
Use the show qos mac-cos command to display the currently configured QoS-related information for the MAC address and VLAN pair.
show qos mac-cos dest_mac [vlan] [config]
dest_mac | MAC address of the destination host. |
vlan | (Optional) Number of the VLAN; valid values are from 1 to 1005. |
config | (Optional) Keyword to display NVRAM QoS configuration. |
all | Keyword to specify all MAC address and VLAN pairs. |
This command has no default setting.
Switch command.
Normal.
You can enter the show qos mac-cos command to display the currently configured QoS-related information.
You can enter the config keyword to display information that was configured through the CLI and saved in NVRAM, regardless of the current runtime information.
This example shows how to display currently configured QoS-related information for all MAC address and VLAN pairs:
Console> (enable)show qos mac-cos allVLAN Dest MAC CoS---- ------------------ ---1 01-02-03-04-05-06 29 04-05-06-07-08-09 3Console> (enable)
This example shows how to display currently configured QoS-related information for a specific MAC address:
Console> (enable)show qos mac-cos 01-02-03-04-05-06VLAN Dest MAC CoS---- ------------------ ---1 01-02-03-04-05-06 2Console> (enable)
set qos mac-cos
clear qos mac-cos
Use the show qos maps command to display the mapping of different maps.
show qos maps [config | runtime] [cos-dscp-map | ipprec-dscp-map | dscp-cos-map | policed-dscp-map]
config | (Optional) Keyword to display NVRAM QoS configuration. |
runtime | (Optional) Keyword to display current QoS configuration. |
cos-dscp-map | (Optional) Keyword to specify the CoS-to-DSCP map. |
ipprec-dscp-map | (Optional) Keyword to specify the IP precedence-to-DSCP map. |
dscp-cos-map | (Optional) Keyword to specify the DSCP-to-CoS map. |
policed-dscp-map | (Optional) Keyword to specify the policer-to-DSCP map. |
This command has no default setting.
Switch command.
Normal.
You can enter the config keyword to display information that was configured through the CLI and saved in NVRAM, regardless of the current runtime information.
If you do not specify an option, all maps are displayed.
This example shows how to display the cos-dscp-map map:
Console>show qos maps cos-dscp-mapCoS - DSCP map:CoS DSCP--- ---------------0 10...7 52Console>
This example shows how to display the ipprec-dscp-map map:
Console>show qos maps ipprec-dscp-mapIP-Precedence - DSCP map:IP-Prec DSCP------- -------------------0 1...7 52Console>
This example shows how to display the ipprec-cos-map map:
Console>show qos maps ipprec-cos-mapIP-Precedence - CoS map:IP-Prec CoS------- -----0 0...7 7Console>
This example shows how to display the dscp-cos-map map:
Console>show qos maps dscp-cos-mapDSCP - CoS map:DSCP CoS--------------- ----34-40,60 0...50 7Console>
This example shows how to display the policed-dscp-map map:
Console>show qos maps policed-dscp-mapDSCP policed-dscp map:In-profile DSCP Policed DSCP--------------- -------------0-20 0Console>
This example shows how to display all maps:
Console>show qos mapsCoS - DSCP map:CoS DSCP--- ---------------0 10...7 52IP-Precedence - DSCP map:IP-Prec DSCP------- -------------------0 1...7 52IP-Precedence - CoS map:IP-Prec CoS------- -----0 0...7 7DSCP - CoS map:DSCP CoS--------------- ----34-40,60 0...50 7DSCP policed-dscp map:In-profile DSCP Policed DSCP--------------- -------------0-20 0Console>
set qos map
clear qos policed-dscp-map
clear qos cos-dscp-map
Use the show qos policer command to display microflow or aggregate policers currently configured.
show qos policer {config | runtime} {microflow | aggregate | all}
config | Keyword to display NVRAM QoS configuration. |
runtime | Keyword to show the current QoS runtime information. |
microflow | Keyword to specify microflow policing information. |
aggregate | Keyword to specify aggregate policing rule information. |
all | Keyword to specify all policing information. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display all currently configured policing information:
Console>show qos policer config allQoS microflow policers:Microflow name Avg. rate Burst size Exceed action------------------------------- --------- ---------- -------------mic 55 64 dropACL attached------------------------------------QoS aggregate policers:No aggregate policer found.Console>
This example shows how to display microflow policing information:
Console>show qos policer config microflowQoS microflow policers:Microflow name Average rate Burst size Exceed action-------------------- --------------- --------------- -------------my-micro 1000 2000 dropMicroflow name ACL attached-------------------- -----------------------------------------------my-micro my-aclConsole>
This example shows how to display aggregate policing information:
Console>show qos policer config aggregateQoS aggregate policers:No aggregate policer found.Console>
clear qos policer
set qos policer
Use the show qos policy-source command to display the QoS policy source information.
show qos policy-sourceThis command has no arguments or keywords.
This command has no default settings.
Switch command.
Normal.
This command displays whether the QoS policy source is set to local or COPS.
This example shows how to view the QoS policy source:
Console> show qos policy-source QoS policy source for the switch set to local. Console>
Use the show qos rsvp commands to display RSVP+ information.
show qos rsvp info
info | Keyword to display RSVP+ status information. |
flow-info | Keyword to display RSVP+ flow information. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display RSVP+ status information:
Console> (enable)show qos rsvp info RSVP disabled. RSVP policy timeout set to 30 minutes. RSVP local policy set to forward.Console> (enable)
This example shows how to display RSVP+ flow information:
Console> (enable)show qos rsvp flow-infoRSVP enabled. Only RSVP qualitative service supported.RSVP policy timeout set to 30 minutes.Flow # SrcAddr DstAddr SrcPort DstPort Prot DSCP Time Valid------ --------------- --------------- ------- ------- ---- ---- -----------1 172.21.23.34 177.23.45.67 3001 3101 UDP 6 302 172.21.23.34 177.23.45.67 3002 3102 UDP 4 153 172.21.23.34 177.23.45.67 3003 3103 TCP 2 684 172.21.34.67 177.68.89.23 4004 4005 UDP 1 23Console> (enable)
Use the show qos statistics command to display the various QoS-related counters for a specified port.
show qos statistics {mod_num}
mod_num | Number of the module. |
mod_num /port_num | Number of the module and port. |
l3stats | Keyword to specify display Layer 3 statistic. |
This command has no default setting.
Switch command.
Normal.
In the show qos statistics output, the Threshold #:Packets dropped field lists each threshold and the number of packets dropped. For example, 1:0 pkt, 2:0 pkts means that threshold 1 and threshold 2 dropped 0 packets.
This example shows how to display the QoS statistics for module 2, port 1:
Console> (enable) show qos statistics 2/1Warning: QoS is disabled.On Transmit:Port 2/1 has 2 Queue(s) 2 Threshold(s)Q # Threshold #:Packets dropped--- -----------------------------------------------1 1:0 pkts, 2:0 pkts2 1:0 pkts, 2:0 pktsOn Receive:Port 2/1 has 1 Queue(s) 4 Threshold(s)Q # Threshold #:Packets dropped--- -----------------------------------------------1 1:0 pkts, 2:0 pkts, 3:0 pkts, 4:0 pktsConsole> (enable)
This example shows how to display the QoS Layer 3 statistics for module 13:
Console> (enable)show qos statistics13statsWarning: QoS is disabled.QoS Layer 3 Statistics show statistics since last read.Packets dropped due to policing: 0IP packets with ToS changed: 0IP packets with CoS changed: 26Non-IP packets with CoS changed: 0Console> (enable)
This example shows how to display the QoS statistics for module 2:
Console> (enable)show qos statistics2Warning: QoS is disabled.On Transmit:Port 2/1 has 2 Queue(s) 2 Threshold(s)Q # Threshold #:Packets dropped--- -----------------------------------------------1 1:0 pkts, 2:0 pkts2 1:0 pkts, 2:0 pktsOn Receive:Port 2/1 has 1 Queue(s) 4 Threshold(s)Q # Threshold #:Packets dropped--- -----------------------------------------------1 1:0 pkts, 2:0 pkts, 3:0 pkts, 4:0 pktsOn Transmit:Port 2/2 has 2 Queue(s) 2 Threshold(s)Q # Threshold #:Packets dropped--- -----------------------------------------------1 1:0 pkts, 2:0 pkts2 1:0 pkts, 2:0 pktsOn Receive:Port 2/2 has 1 Queue(s) 4 Threshold(s)Q # Threshold #:Packets dropped--- -----------------------------------------------1 1:0 pkts, 2:0 pkts, 3:0 pkts, 4:0 pktsConsole> (enable)
set qos
set qos drop-threshold
set qos mac-cos
set qos txq-ratio
set qos wrr
Use the show radius command to display configured RADIUS parameters.
show radius [noalias]
noalias | (Optional) Keyword to force the display to show IP addresses, not IP aliases. |
This command has no default setting.
Switch command.
Normal.
You can enter this command in normal or privileged mode, but the RADIUS key is displayed only if this command is entered in privileged mode.
This example shows how to display RADIUS information:
Console>show radiusRADIUS Deadtime: 0 minutesRADIUS Key:RADIUS Retransmit: 2RADIUS Timeout: 5 secondsRADIUS-Server Status Auth-port Acct-port----------------------------- ------- ------------ ------------Console>
set radius deadtime
set radius key
set radius retransmit
set radius server
set radius timeout
Use the show reset command to display schedule reset information.
show resetThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Normal.
This example shows how to display schedule reset information:
Console> (enable) show reset Reset schedule for Fri Jan 21 2000, 23:00:00 (in 3 days 12 hours 56 minutes 57 s econds). Reset reason: Software upgrade Console> (enable)
Use the show rgmp group command to display all multicast groups or the count of multicast groups that are joined by RGMP-capable routers.
show rgmp group [mac_addr] [vlan_id]
mac_addr | (Optional) MAC destination address reserved for the use of RGMP packets. |
vlan_id | (Optional) Number of the VLAN; valid values are from 1 to 1005. |
This command has no default setting.
Switch command.
Normal.
This example displays all multicast groups joined by RGMP-capable routers:
Console> show rgmp group Vlan Dest MAC/Route Des RGMP Joined Router Ports --------------------------------------------------------------------- 1 01-00-5e-00-01-28 5/1,5/15 1 01-00-5e-01-01-01 5/1 2 01-00-5e-27-23-70* 3/1,5/1 Total Number of Entries=3 `*'- Configured manually
Console>
This example displays the total number of entries of VLAN group 1 that are joined by RGMP-capable routers:
Console> show rgmp group count 1 RGMP enabled. Total Number of Entries=2 Console>
set rgmp
show rgmp statistics
clear rgmp statistics
Use the show rgmp statistics command to display all the RGMP-related statistics for a given VLAN.
show rgmp statistics [vlan]
vlan | (Optional) Number of the VLAN. |
The default is VLAN 1.
Switch command.
Normal.
This example displays RGMP-related statistics for a specific VLAN:
Console> show rgmp statistics 23 RGMP enabled RGMP Statistics for vlan <23>: Recieve:
Valid pkts: 20 Hellos: 10 Joins: 5 Leaves: 5 Join Alls: 0 Leave Alls: 0 Byes: 0 Discarded: 0 Transmit: Total Pkts: 10 Failures: 0 Hellos: 10 Joins: 0 Leaves: 0 Join Alls: 0 Leave Alls: 0 Byes: 0 Console>
Use the show rspan command to display the remote SPAN configuration.
show rspanThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Normal.
The fields displayed depends on the configuration. For example, if this is a source session, the Destination, Incoming Packets, and Learning fields are not displayed. If this is a destination session, the Admin Source, Oper Source, Direction, Multicast, Filter, and Max Bandwidth fields are not displayed. If there is no VLAN filtering on the source session, the Filter field is not displayed.
This example shows the display output from the show rspan command:
Console> (enable)show rspanDestination : -Rspan Vlan : 900Admin Source : VLAN 50Oper Source : Port 2/1,2/3,2/5,2/7,2/9,2/11,2/13,2/15,2/17,2/19Direction : receiveIncoming Packets: -Learning : -Multicast : disabledFilter : 10,20,30,40,500,600,700,800,900Status : active--------------------------------------------Destination : Port 3/1Rspan Vlan : 901Admin Source : -Oper Source : -Direction : -Incoming Packets: disabledLearning : disabledMulticast : -Filter : -Status : active--------------------------------------------Destination : Port 6/1Rspan Vlan : 906Admin Source : -Oper Source : -Direction : -Incoming Packets: disabledLearning : -Multicast : -Filter : ---------------------------------------------Destination : -Rspan Vlan : 903Admin Source : INBANDOper Source : INBANDDirection : transmitIncoming Packets: -Learning : -Multicast : disabledFilter : ---------------------------------------------Destination : Port 7/1Rspan Vlan : 902Admin Source : -Oper Source : -Direction : -Incoming Packets: enabledLearning : -Multicast : -Filter : -Console> (enable)
Use the show security acl command set to display the contents of the ACL that is currently configured or were last committed to NVRAM and hardware.
show security acl
editbuffer | (Optional) Keyword to display the ACLs in the edit buffer. |
acl_name | Name of the ACL to be displayed. |
info | Keyword to display the contents of an ACL that were last committed to NVRAM and hardware. |
all | Keyword to display all QoS ACL information. |
editbuffer_index | (Optional) Position of the ACE in the ACL. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display the name and type of the ACLs currently configured:
Console> (enable)show security aclACL Type VLANS-------------------------------- ---- -----ip1 IP 3,5,8ip2 IP 12,47ip3 IP 56ipx1 IPX 5,12,45ipx2 IPXipx3 IPXmac2 MAC 5iplast IPConsole> (enable)
This example shows how to display ACLs in the edit buffer:
Console> (enable)show security acl editbufferACL Type Status-------------------------------- ---- -------------------ip1 IP Committedip2 IP Committedip3 IP Committedipx1 IPX Committedipx2 IPX Committedipx3 IPX Committedmac2 MAC Committediplast IP CommittedConsole> (enable)
This example shows how to display the configuration for a specified VACL last committed to NVRAM and hardware:
Console> (enable)show security acl info ip1set security acl ip ip1---------------------------------------------------1. permit anyConsole> (enable)
This example shows how to display the contents of the ACL edit buffer:
Console> (enable)show security acl info ip1 editbufferset security acl ip ip1---------------------------------------------------1. permit anyACL Status:CommittedConsole> (enable)
commit
clear security acl
rollback
Use the show security acl capture-ports command to display the capture port list.
show security acl capture-portsThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
This example shows how to display capture port list entries:
Console> (enable) show security acl capture-ports ACL Capture Ports: 1/2,2/2 Console> (enable)
clear security acl capture-ports
set security acl capture-ports
Use the show security acl map command to display VACL-to-VLAN mapping for a specified ACL or VLAN.
show security acl map acl_name
acl_name | Name of the ACL to be displayed. |
vlan | Number of the VLAN to be displayed. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display the mappings of a specific ACL:
Console> (enable)show security acl map IPACL1ACL IPACL1 is mapped to VLANs:1Console> (enable)
This example shows how to display the mappings of a specific VLAN:
Console> (enable)show security acl map 1VLAN 1 is mapped to IP ACL IPACL1.VLAN 1 is mapped to IPX ACL IPXACL1.VLAN 1 is mapped to MAC ACL MACACL1.Console> (enable)
commit
rollback
clear security acl map
set security acl map
Use the show security acl resource-usage command to display ACL management information.
show security acl resource-usageThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Normal.
This example shows how to display ACL management information:
Console> (enable)show security acl resource-usageACL storage usage (mask/value) is: (40%/50%)Console> (enable)
commit
rollback
clear security acl
Use the show snmp command to display SNMP information.
show snmp [noalias]
noalias | (Optional) Keyword that forces the display to show IP addresses, not IP aliases. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display SNMP information:
Console> show snmp RMON: Enabled Extended Rmon: Extended RMON module is not present Traps Enabled: Chassis Port Traps Enabled: None Community-Access Community-String ---------------- -------------------- read-only public read-write private read-write-all secret Trap-Rec-Address Trap-Rec-Community ---------------------------------------- -------------------- 192.122.173.42 public Console>
Table 2-46 describes the possible fields (depending on the port type queried) in the show snmp command output.
| Field | Description |
|---|---|
RMON | Status of whether RMON is enabled or disabled. |
Extended RMON | Status of whether extended RMON is enabled or disabled. |
Traps Enabled | Trap types that are enabled. |
Port Traps Enabled | Set of ports whose linkup/linkdown trap is enabled. |
Community-Access | Configured SNMP communities. |
Community-String | SNMP community strings associated with each SNMP community. |
Trap-Rec-Address | IP address or IP alias of trap receiver hosts. |
Trap-Rec-Community | SNMP community string used for trap messages to the trap receiver. |
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Fri Mar 3 07:14:46 PST 2000
Copyright 1989 - 2000©Cisco Systems Inc.