Help in adding a new MIB - got confused
"Ricardo Schmidt" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello all, I'm going through a storm here!! I'm trying simply to add a new MIB to the SNMP throughout the net-snmp. But, there are too many tutorials and help docs specifying commands that I just got confused and lost. I believe my problem is simple. But, as it is my first contact with SNMP it turned to a huge problem to me! Well, I'm developing a solution that needs to get the information about what protocols the device (machine) is able to run. I found in the Internet the CISCO-NBAR-PROTOCOL-DISCOVERY-MIB. Reading its description, it seems to do what I need. So, I downloaded a file .my from the following address: http://www.mibsearch.com/vendors/cisco/mibview/CISCO-NBAR-PROTOCOL-DISCOVERY-MIB OK, the problem starts now. I don't understand how to add this MIB to the SNMP system in order to access the information throughout it. First, I copied the .my file to the "net-snmp/agent/mibgroup" directory and to "net-snmp/mibs". I executed so many commands (following many tutorials) that I'm not able to tell you which ones I used :( Using mib2c-mfd I generated some C extension files and I put it into: "net-snmp/agent/mibgroup/CISCO-NBAR-PROTOCOL-DISCOVERY-MIB/cnpdSupportedProtocolsTable" Then I compiled again the net-snmp with "--with-mib-modules=cnpdSupportedProtocolsTable", also did make and make install. It didn't show me any errors, so I assumed what I did was right. I found in somewhere in the tutorials at net-snmp website the following command: # oidName -f -L So, I tried to execute it in my case (in the agent/mibgroup/mibName/oidName directory): # ./cnpdSupportedProtocolsTable -f -L And I get the following result: Warning: Failed to connect to the agentx master agent ([NIL]): I already added the line in the "/etc/snmp/snmpd.conf" file: master agentx But I get the same message. Well... concluding... I don't know if I did the right procedure to add a new MIB or not. I would like some directions. I really feel lost in the tutorial pages of snmp because I'm really new in this context. Currently, what I'm trying to do is to execute some command just to know if the MIB was installed (added) successfully. Thanks a lot for reading all this lines, Ricardo. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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