RE: Adding my own MIB
Mohammad Waqas Athar <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Well , i think you are missing one of the most important step of extending the agent. By adding MIB to a directory does not mean that it would start answering the OID it contains.Snmptranslate works because it just reads the oid from MIB and returns what it means and snmpwalk works since it would answer all the OID that are known to agent . In order to get your oid working with agent you have to extent the agent using dynamic loadable modules /static linking or perhaps use agentX protocol. net-snmp has the tutorials on how to extend the agent and make it to answer your OID's.I hope it helps . RegardsFrom: [email protected] To: [email protected] Subject: Adding my own MIB Date: Fri, 28 Sep 2012 09:21:17 -0500 Hi there! I was wondering if someone can help me with this. I’m trying to add my own mib in order to set and get values from an oid (my own object). I have followed this step: 1. Create my own Mib and added it into my Mib directory. (This worked good) After I did this; I could execute the following commands successfully: snmpset -m MIB-TEST -v 2c -c private localhost .1.3.6.1.4.1.6147.1.1 i 45 snmptranslate -m TDP-MIB -Td .1.3.6.1.4.1.6147.1.1 BUT when I try to run this commands: snmpget -m MIB-TEST -v 2c -c private localhost .1.3.6.1.4.1.6147.1.1.0 snmpget -m MIB-TEST -v 2c -c private localhost .1.3.6.1.4.1.6147.1.1 Returned me this: MIB-TEST::ClearCodeGroup1 = No Such Instance currently exists at this OID MIB-TEST::ClearCodeGroup1.0 = No Such Instance currently exists at this OID And if execute the snmpwalk command: snmpwalk -v 2c -c private localhost .1.3.6.1.4.1.6147.1.1 I only got the result of some mibs like: SNMPv2-MIB IF-MIB RFC1213-MIB IP-MIB TCP-MIB BUT I have, in my mibs directory, A LOT of MORE MIBS (like MIB-TEST) and they seem no to be running in my pc (My OS is linux). what should I do??? Am I missing anything??? Pleeease, I really need your help guys. Hernán ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users