This section provides a sample of checking statistics about EFM remote loopback packets using the get method.
Operation |
XPATH |
|---|---|
get |
/huawei-efm/efm-statistics/test-packet-statistics |
<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="34" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter type="subtree">
<huawei-efm:efm-statistics xmlns:huawei-efm="urn:huawei:params:xml:ns:yang:huawei-efm">
<huawei-efm:test-packet-statistics/>
</huawei-efm:efm-statistics>
</filter>
</get>
</rpc>
Sample of successful response
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="34">
<data>
<efm-statistics xmlns="urn:huawei:params:xml:ns:yang:huawei-efm">
<test-packet-statistics>
<send-packets-value>5</send-packets-value>
<receive-packets-value>5</receive-packets-value>
<lost-packets-value>0</lost-packets-value>
<send-bytes-value>320</send-bytes-value>
<receive-bytes-value>320</receive-bytes-value>
<lost-bytes-value>0</lost-bytes-value>
<start-time>06-20-2017 13:46:40 UTC+00:00</start-time>
<end-time>06-20-2017 13:46:46 UTC+00:00</end-time>
</test-packet-statistics>
</efm-statistics>
</data>
</rpc-reply>
Sample of failed response
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="34">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-message>parse rpc config error.</error-message>
</rpc-error>
</rpc-reply>