cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
522
Views
5
Helpful
1
Replies

live-status via REST

jjgrinwis
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

jjgrinwis
Level 1
Level 1

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>

View solution in original post

1 Reply 1

jjgrinwis
Level 1
Level 1

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>

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: