netconf-client --host 172.16.10.206 -u ocnos -p ocnos --get '<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<state>
<name>xe5</name>
</state>
</interface>
>>> the response will be:
-------------------------
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>xe5</name>
<state>
<name>xe5</name>
<ifindex>10006</ifindex>
<admin-status>up</admin-status>
<oper-status>up</oper-status>
<last-change>15300</last-change>
<logical>false</logical>
<counters>
<in-octets>1913744</in-octets>
<in-pkts>18400</in-pkts>
<in-unicast-pkts>0</in-unicast-pkts>
<in-broadcast-pkts>0</in-broadcast-pkts>
<in-multicast-pkts>18400</in-multicast-pkts>
. . .
|