The configuration model file matching packet capture is huawei-capture.yang.
Object |
Description |
Value |
Remarks |
---|---|---|---|
/huawei-capture:capture-pkt/cpu |
Captures packets sent to the CPU. |
This object does not need any data configuration. |
cpu and ifNameType cannot be configured simultaneously. |
/huawei-capture:capture-pkt/ifNameType |
Captures packets on a specified interface. |
The value is a string in the format of interface-typeinterface-number.
The interface must exist on the switch. |
|
/huawei-capture:capture-pkt/vlan-id |
Captures packets from the specified outer VLAN. |
The value is an integer that ranges from 1 to 4094. The VLAN must exist on the switch. |
N/A |
/huawei-capture:capture-pkt/cvlan-id |
Captures packets from the specified inner VLAN. |
The value is an integer that ranges from 1 to 4094. The VLAN must exist on the switch. |
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this object. |
/huawei-capture:capture-pkt/acl-id |
Captures packets matching the specified ACL. |
The value is an integer in the range from 2000 to 5999 for the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S, and from 2000 to 4999 for other models. The ACL must exist on the switch. |
N/A |
/huawei-capture:capture-pkt/car-cir |
Indicates the rate of capturing packets. |
The value is an integer that ranges from 8 to 256, in kbit/s. The default value is 64. |
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this object. |
/huawei-capture:capture-pkt/packetnumber |
Indicates the number of packets to be captured. The system stops capturing packets after the specified number of packets are captured. |
The value is an integer that ranges from 1 to 1000. The default value is 100. |
N/A |
/huawei-capture:capture-pkt/packetlenth |
Indicates the length of a single captured packet, which means the first several bytes of the captured packet. |
The value is an integer that ranges from 20 to 64, in bytes. The default value is 64. |
N/A |
/huawei-capture:capture-pkt/timeout |
Indicates the timeout interval of packet capture. The system stops capturing packets after the specified timeout interval. |
The value is an integer that ranges from 1 to 300, in seconds. The default value is 60. |
N/A |
/huawei-capture:capture-pkt/filename |
Saves captured packets to the specified file. |
The file name is a string in *.cap format. The default value is capture.cap. | N/A |
Item | Description |
---|---|
esn | Indicates the device ESN. |
filename | Indicates the name of the file that stores the captured packets. |
type | Indicates the type of the file that stores the captured packets. |
status | Indicates the result of packet capture. |
errorcode | Indicates the error code. |