< Home

display packet-capture

Function

The display packet-capture command displays the configuration and the packet statistics information about USG6000E remote packet capture.

Format

display packet-capture [ hardware ] { configuration | queue queue-id [ packet-id ] | statistic }

Parameters

Parameter Description Value

hardware

This parameter is used when hardware chip-based 5-tuple packet capture is performed.

-

configuration

Displays the configuration of the packet capture function.

-

queue queue-id

Displays the information related to the packet cache queue.

-

packet-id

Displays the specific packets in the queue.

-

statistic

Displays the statistics information about the packets captured.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

None

Example

# View the configuration of the packet capture function.

<sysname> display packet-capture configuration
 capture number: 1000    
 interface-name            packet-direction acl-number queue-id   capt-type     drop
 GigabitEthernet0/0/1      inbound          0          0          ALL            N 
 GigabitEthernet0/0/1      outbound         0          0          ALL            N 
 GigabitEthernet0/0/2      inbound          3002       1          ALL            N 
 GigabitEthernet0/0/2      outbound         3002       1          ALL            N 
Table 1 Description of the display packet-capture configuration command output

Item

Description

capture number

Number of captured packets

interface-name

Interface number

packet-direction

Packet capture direction

acl-number

ACL rule matched by the packets

queue-id

5-Tuple packet capture queue

capt-type

Packet capture queue

drop

Status of the packet discarding or capture function

# View the statistics information of the packet capture.

<sysname> display packet-capture statistic
Queue 0                                                                         
receive packet             309                                                  
drop packet                0                                                    
delete packet              0                                                    
inbound save packet        309                                                  
outbound save packet       0                                                    
Queue 1                                                                         
receive packet             0                                                    
drop packet                0                                                    
delete packet              0                                                    
inbound save packet        0                                                    
outbound save packet       0                                                    
Queue 2                                                                         
receive packet             0                                                    
drop packet                0                                                    
delete packet              0                                                    
inbound save packet        0                                                    
outbound save packet       0                                                    
Queue 3                                                                         
receive packet             0                                                    
drop packet                0                                                    
delete packet              0                                                    
inbound save packet        0                                                    
outbound save packet       0 

# View based on the hardware chip packet capture information related to the packet cache queue 0.

<sysname> display packet-capture hardware queue 0
 queue                    0   
 serial number            0      
 interface name           GigabitEthernet0/0/1
 direction                inbound    
 captured packet length   54        
 original ip length       40        
 time                     14:07:09.690        
 source address           10.10.10.1          
 destination address      192.168.2.1            
 digest                   UDP:Source port:333 Destination port:333
 the content:                       
 Data Link Layer header:            
 00 18 82 c5 2f 88 00 22 a1 00      
 04 18 08 00                        
 IP Packet:                         
 45 00 00 28 5c 8e 00 00 ff 06      
 3f d8 0a 64 0a 03 0a 01 01 02      
 00 17 06 c5 99 4c 5e f9 22 ef      
 2b eb 50 10 20 00 22 6f 00 00      
 queue                    0         
 serial number            1         
 interface name           GigabitEthernet0/0/1  
 direction                inbound   
 captured packet length   54        
 original ip length       40        
 the content:                       
 time                     14:07:09.690        
 source address           10.10.10.1          
 destination address      192.168.2.1            
 digest                   UDP:Source port:333 Destination port:333    
 Data Link Layer header:            
 00 22 a1 00 04 18 00 18 82 c5      
 2f 88 08 00                        
 IP Packet:                         
 45 00 00 28 73 37 40 00 7f 06      
 69 2f 0a 01 01 02 0a 64 0a 03      
 06 c5 00 17 22 ef 2b eb 99 4c             
---- More ----  
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >