- Table of Contents
-
- H3C S9500 Command Manual-Release1648[v1.24]-08 System Volume
- 00-1Cover
- 01-Command Line Interface Commands
- 02-Login and User Interface Commands
- 03-FTP and TFTP Commands
- 04-HA Commands
- 05-NQA Commands
- 06-NetStream Commands
- 07-NTP Commands
- 08-RMON Commands
- 09-SNMP Commands
- 10-Packet Statistics Accounting Commands
- 11-Device Management Commands
- 12-Configuration File Management Commands
- 13-File System Management Commands
- 14-Cluster Management Commands
- 15-System Maintenance and Debugging Commands
- 16-Information Center Commands
- 17-PoE Commands
- 18-Clock Module Commands
- 19-ACSEI Server Commands
- 20-OAP Module Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
10-Packet Statistics Accounting Commands | 43.23 KB |
Table of Contents
Chapter 1 Packet Statistics Accounting Configuration Commands
1.1 Outbound Packet Statistics Accounting Configuration Commands
1.2 QoS Queue Statistics Accounting Configuration Commands
1.2.1 display qos queue-statistics interface
1.2.2 qos queue-statistics inbound
1.2.3 qos queue-statistics outbound
1.2.4 reset qos queue-statistics interface
Chapter 1 Packet Statistics Accounting Configuration Commands
1.1 Outbound Packet Statistics Accounting Configuration Commands
1.1.1 display egress
Syntax
display egress { counter0 | counter1 | counter2 | counter3 | counter4 | counter5 | counter6 | counter7 } slot slot-num [ clear ]
View
System view
Parameters
counter0: Uses Counter 0 for packet statistics monitoring.
counter1: Uses Counter 1 for packet statistics monitoring.
counter2: Uses Counter 2 for packet statistics monitoring.
counter3: Uses Counter 3 for packet statistics monitoring.
counter4: Uses Counter 4 for packet statistics monitoring.
counter5: Uses Counter 5 for packet statistics monitoring.
counter6: Uses Counter 6 for packet statistics monitoring.
counter7: Uses Counter 7 for packet statistics monitoring.
slot-num: Slot number of a card.
clear: Clears the statistics after the statistics are read.
Description
Use the display egress command to display the outbound packet statistics and the monitored objects of a counter group on a specified card.
Related commands: set egress.
Examples
# Display the outbound packet statistics of counter group 0 on the card in slot 4, and then clear the counter group.
<H3C> display egress counter0 slot 4 clear
Slot 4 egress counter0 mode:
Interface: all
VLAN: all
Traffic Class: all
Drop Precedence: all
The outgoing packets:
Unicast: 0 packets
Multicast: 0 packets
Broadcast: 0 packets
Bridge egress filtered packets: 0 packets
TxQ filtered packets(Due to TxQ congestion ): 0 packets
Table 1-1 display egress command output description
Field |
Description |
Slot x egress xxxxx mode |
Monitored objects of a counter group on the card in a specified slot, which may include the following types: l Interfaces l VLANs l Traffic classes l Drop precedence |
The outgoing packets |
Outbound packet statistics of a counter group on the card in a specified slot, which may include: l Unicast: Unicasts l Multicast: Multicasts l Broadcast: Broadcasts l Bridge egress filtered packets: Bridge-filtered packets l TxQ filtered packets(Due to TxQ congestion): Packets dropped due to congestion |
1.1.2 set egress
Syntax
set egress { counter0 | counter1 | counter2 | counter3 | counter4 | counter5 | counter6 | counter7 } slot slot-num [ interface interface-type interface-number ] [ vlan vlan-id ] [ tc traffic-class ] [ dp drop-precedence ]
undo set egress { counter0 | counter1 | counter2 | counter3 | counter4 | counter5 | counter6 | counter7 } slot slot-num
View
System view
Parameters
counter0: Uses Counter 0 for packet statistics monitoring.
counter1: Uses Counter 1 for packet statistics monitoring.
counter2: Uses Counter 2 for packet statistics monitoring.
counter3: Uses Counter 3 for packet statistics monitoring.
counter4: Uses Counter 4 for packet statistics monitoring.
counter5: Uses Counter 5 for packet statistics monitoring.
counter6: Uses Counter 6 for packet statistics monitoring.
counter7: Uses Counter 7 for packet statistics monitoring.
slot-num: Card slot number.
interface-type interface-number: Port type and port number, which must match the parameter slot-num. If you do not specify a specific port number, the command will apply to all the ports on the card. This command is not supported on POS ports, RPR physical ports, or non-Ethernet ports such as ATM sub-interfaces on a WAN card. As for the E1/T1 ports, outbound packet statistics accounting is not supported either on ports or on VLANs.
vlan-id: VLAN ID defined in IEEE802.1Q. If you do not specify a specific VLAN, the command will apply to all VLANs.
traffic-class: Traffic class. If you do not specify a specific traffic class, the command will apply to all traffic classes.
drop-precedence: packet drop precedence. If you do not specify a drop precedence level, the command will apply to all drop precedence levels.
Description
Use the set egress command to set packet statistics counter groups.
Use the undo set egress command to cancel the configuration.
A card provides up to eight sets of counters for monitoring outbound packet statistics of the card. The monitored objects include ports, VLANs, ports+VLANs, and cards. In addition to these four types of objects, a traffic class (TC) or a drop precedence (DP) can also be monitored. When monitoring a card, the counters can monitor all TCs and all DPs.
After you use the set egress command to set the monitoring mode of a card, the counter groups will be automatically cleared.
By default, outbound packet statistics accounting is not enabled.
Related commands: display egress.
Note that:
l If the objects to be monitored by the outbound packet statistics counter groups configured on cards LSB1GV48DB0, LSB2GV48DB0, and LSB1GP48DB0 include ports, the statistics may not be accurate.
l This command is not supported on non-Ethernet ports such as ATM sub-interfaces on a WAN card. As for E1/T1 ports, outbound packet statistics accounting is not supported either on ports or on VLANs.
l This command is not supported on non-linear 10 GE cards such as LSB1XP4B0, LSB1XP4CA0 and TGX1B, or on RPR logical ports on GE RPR cards.
l This command is not supported on POS ports or RPR physical ports.
l This command is mutually exclusive with the qos queue-statistics outbound command.
Examples
# Configure counter group 0 in slot 4 to monitor the outbound packet statistics on GigabitEthernet 4/1/1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] set egress counter0 slot 4 interface GigabitEthernet4/1/1
1.2 QoS Queue Statistics Accounting Configuration Commands
1.2.1 display qos queue-statistics interface
Syntax
display qos queue-statistics [ inbound | outbound ] interface [ interface-type interface-number ]
View
Any view
Default Level
1: Monitor level
Parameters
inbound: Displays QoS queue statistics in the bound direction of a port.
outbound: Displays QoS queue statistics in the outbound direction of a port.
interface-type interface-number: Specifies an interface by its type and number. Currently, only Ethernet ports support this command.
Description
Use the display qos queue-statistics interface command to display QoS queue statistics on a port.
Examples
# Display the QoS queue statistics in the outbound direction of GigabitEthernet 2/1/1.
<H3C> display qos queue-statistics outbound interface Gigabitethernet 2/1/1
=================================
Direction: Outbound
Interface: GigabitEthernet2/1/1
Queue ID: 2
VLAN ID: N/A
Resource index: 1
QoSPass packets: 954645678
QoSDrop packets: 0
QoSPass speed(pps): 102409
=================================
Direction: Outbound
Interface: GigabitEthernet2/1/1
Queue ID: 3
VLAN ID: N/A
Resource index: 2
QoSPass packets: 16556414
QoSDrop packets: 0
QoSPass speed(pps): 212512
Table 1-2 display qos queue-statistics interface command output description
Field |
Description |
Interface |
Interface whose QoS queue statistics are to be displayed |
Direction |
Traffic direction, which can be inbound or outbound |
QoSPass packets |
The number of packets forwarded |
QoSDrop packets |
The number of packets dropped |
QoSPass speed(pps) |
Packet receiving/sending rate (in pps) |
1.2.2 qos queue-statistics inbound
Syntax
qos queue-statistics inbound interface-type interface-number vlanid
undo qos queue-statistics inbound [ interface-type interface-number vlanid ]
View
System view
Default Level
2: System level
Parameters
interface-type interface-number: Specifies an interface by its type and number. Currently, only Ethernet ports support this command.
vlanid: Specifies a VLAN by its ID. The value range of this argument is 1 to 4094.
Description
Use the qos queue-statistics inbound command to enable QoS queue statistics accounting in the inbound direction of a port.
Use the undo qos queue-statistics inbound command to disable QoS queue statistics accounting in the inbound direction of a port.
Note that:
l A card provides a maximum of 16 groups of counters for monitoring inbound QoS queue statistics of the card. For example, a LSB1GP48LDB0 card provides 16 counter groups, a LSB1GT24CA0 card provides 8 counter groups, and a LSB2FT48B0 card provides 4 counter groups.
l This command is not supported on ports on the non-linear 10 GE cards such as LSB1XP4B0, LSB1XP4CA0, and TGX1B.
l You can use the display qos queue-statistics interface command to display the QoS queue statistics.
By default, QoS queue statistics accounting is disabled in the inbound direction of a port.
Related commands: display qos queue-statistics interface.
Examples
# Enable QoS queue statistics accounting in the inbound direction of GigabitEthernet 2/1/1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface gigabitethernet 2/1/1
[H3C-GigabitEthernet2/1/1] qos queue-statistics inbound Gigabitethernet 2/1/1 100
1.2.3 qos queue-statistics outbound
Syntax
qos queue-statistics outbound interface-type interface-number traffic-class
undo qos queue-statistics outbound [ interface-type interface-number traffic-class ]
View
System view
Default Level
2: System level
Parameters
interface-type interface-number: Specifies an interface by its type and number. Currently, only Ethernet ports support this command.
traffic-class: Specifies a traffic class. The value range of this argument is 0 to 7.
Description
Use the qos queue-statistics outbound command to enable QoS queue statistics accounting in the outbound direction of a specific port.
Use the undo qos queue-statistics outbound command to disable QoS queue statistics accounting in the outbound direction of a specific port.
Note that:
l A card provides a maximum of 8 groups of counters for monitoring outbound QoS queue statistics of the card. For example, a LSB1GP48LDB0 card provides 8 counter groups, a LSB1GT24CA0 card provides 4 counter groups, and a LSB2FT48B0 card provides 2 counter groups.
l This command is not supported on ports on the non-linear 10 GE cards such as LSB1XP4B0, LSB1XP4CA0, and TGX1B.
l You can use the display qos queue-statistics interface command to display the QoS queue statistics.
l This command is mutually exclusive with the set egress command.
By default, QoS queue statistics accounting is disabled in the outbound direction of a port.
Related commands: display qos queue-statistics interface.
Examples
# Enable QoS queue statistics accounting in the outbound direction of GigabitEthernet 2/1/1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Gigabitethernet 2/1/1
[H3C-GigabitEthernet2/1/1] qos queue-statistics outbound Gigabitethernet 2/1/1 3
1.2.4 reset qos queue-statistics interface
Syntax
reset qos queue-statistics interface [ interface-type interface-number ]
View
User view
Parameters
interface-type interface-number: Specifies an interface by its type and number. Currently, only Ethernet ports support this command.
Description
Use the reset qos queue-statistics interface command to clear the QoS queue statistics on a specific port.
Examples
# Clear the QoS queue statistics on GigabitEthernet 2/1/1.
<H3C> reset qos queue-statistics interface Gigabitethernet2/1/1