[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ]
On Thu, 2005-04-07 at 10:13, Farazad Farhadzadeh wrote: > Hi Dave. > I want to add MPLS-LSR-MIB to mibs in net-snmp,but i dont know anything > about adding a new mib file to mibs and get information from this oid. Thank you. > first,i copy mib file (MPLS-LSR-MIB) to /usr/share/mibs/ > thsn : > echo "mibs +MPLS-LSR-MIB" >> /etc/snmp.conf OK - that should suffice to add this MIB to the tools. > then run snmpd > and get information : > snmpget -c public -v 2c 1.3.6.1.3.96.3.2.1.0 > but the cant response me and send an error. but not the agent. > can you tell me my mistake about adding mib files. >From the FAQ: How do I add a MIB to the agent? ------------------------------- While simply adding a file to the MIB directory (and possibly tweaking the list of MIBs to load) is sufficient for the tools, unfortunately extending the functionality of the agent to include this is not so simple.... All the information about the syntax and scope of the variables supported is hardwired into the implementation of the agent. ^^^^^^^^^ [snip] Finally, the agent itself can be extended to support additional MIB groups, by writing the necessary C code, and including this within the main agent In other words, you need to write code to do this. I suggest that you read through the whole of the FAQ, and the file AGENT.txt, before you start. AGENT.txt is a little out of date now, and there are more advanced mechanisms for implementing a MIB module. But it should give you a general feel for what's involved. Dave ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users