< Home

Example for Viewing the Real-Time Traffic Statistics Result

This section provides a sample of viewing the real-time traffic statistics result using the rpc method.

Table 1 Viewing the real-time traffic statistics result

Operation

XPATH

rpc

/huawei-capture:get-pkt-trace

Request Example

<?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>

Response Example

<?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>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic