Re: unable to add a MIB into tree
Robert Story <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 12 Dec 2017 10:50:24 +0000 Vibhavari wrote: MV> I had a MIB file XXXMIB.txt. It had 8 MIB objects. I added 5 MV> more objects to it and I restarted snmpd service. But when I do MV> snmp walk it shows old OID list only ( previous 8) . New 5 are MV> not added to it. My mib file is already placed in correct MV> folder (/usr/share/snmp/mib/) and its entry is added MV> in /etc/snmp/snmp.conf. Am I missing something? A MIB file is basically a mapping between an object name and an OID. Simply adding names/OIDs to the MIB file does not tell the agent how to respond to a query for a particular object. Responding to a query for an object requires code to be added to the agent. It can be a script that is configured via snmpd.conf or code that is compiled into the agent (or a shared library which can be loaded via snmpd.conf). Robert ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot