07-05-2017 01:31 PM - edited 03-01-2019 03:54 AM
Hi,
we compiled some MIBs, configured our device to use SNMP(RO) and can get live-status information from our device via the CLI
admin@ncs> show devices device router01 live-status IF-MIB ifTable ifEntry 650 ifName
ifName xe-2/0/2.0
Is it possible to get the same information via the REST interface and what would be the URI?
Regards,
John
Solved! Go to Solution.
07-06-2017 10:24 AM
Just found it :
http://{{server}}/api/operational/devices/device/mx01/live-status/IF-MIB/ifTable/ifEntry/537?select=ifName;ifInErrors;ifMtu
<ifEntry xmlns="urn:ietf:params:xml:ns:yang:smiv2:IF-MIB" xmlns:y="http://tail-f.com/ns/rest" xmlns:if-mib="urn:ietf:params:xml:ns:yang:smiv2:IF-MIB" xmlns:ncs="http://tail-f.com/ns/ncs">
<ifMtu>1500</ifMtu>
<ifInErrors>0</ifInErrors>
<ifName>xe-2/0/2.0</ifName>
</ifEntry>
07-06-2017 10:24 AM
Just found it :
http://{{server}}/api/operational/devices/device/mx01/live-status/IF-MIB/ifTable/ifEntry/537?select=ifName;ifInErrors;ifMtu
<ifEntry xmlns="urn:ietf:params:xml:ns:yang:smiv2:IF-MIB" xmlns:y="http://tail-f.com/ns/rest" xmlns:if-mib="urn:ietf:params:xml:ns:yang:smiv2:IF-MIB" xmlns:ncs="http://tail-f.com/ns/ncs">
<ifMtu>1500</ifMtu>
<ifInErrors>0</ifInErrors>
<ifName>xe-2/0/2.0</ifName>
</ifEntry>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide