This section provides a sample of viewing the real-time traffic statistics result using the rpc method.
Operation |
XPATH |
---|---|
rpc |
/huawei-capture:get-pkt-trace |
<?xml version="1.0" encoding="UTF-8"?> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <huawei-capture:get-pkt-trace xmlns:huawei-capture="urn:huawei:params:xml:ns:yang:huawei-capture"/> </rpc>
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <data> <input-interface> <packet-interface-list> <packet-interface>GE0/0/4</packet-interface> <packet-counter>834258</packet-counter> </packet-interface-list> <packet-interface-list> <packet-interface>GE0/0/12</packet-interface> <packet-counter>27913</packet-counter> </packet-interface-list> </input-interface> <output-interface> <packet-interface-list> <packet-interface>GE0/0/4</packet-interface> <packet-counter>27953</packet-counter> </packet-interface-list> <packet-interface-list> <packet-interface>GE0/0/12</packet-interface> <packet-counter>833231</packet-counter> </packet-interface-list> </output-interface> </data> </rpc-reply>