I am writing a python application which is supposed to use Opendaylight SNMP Plugin REST API (http://IPAddress:8181/restconf/operations/snmp:snmp-get) to get some info from a network device running an snmp agent.
I am simulating the setup as follows:
Environment
- SNMP agent: Ubuntu running on a VM.
- SNMP Manager: a python application running on top of Opendaylight.
what has been done
To get information such as Total RAM (OID: .1.3.6.1.4.1.2021.4.5.0) I need to add UCD-SNMP-MIB.mib to opendaylight so it understands the object type and ID.
I have checked out this page but I can't seem to make it work. The tutorial in the page seems outdated and it explains how to create a native opendaylight project whereas my objective is to use the northbound APIs.
Question: How do we add a custom MIB files to opendaylight directories so an application can use the REST API to manage an snmp agent over the network?