Please correct me if I am sending this question to the wrong place.

 

I am trying to extend the net-snmp agent and add a new MIB.   I have copied the MIB to /opt/csw/share/snmp/mibs/VRTS-SNMP-MIB.txt.  Following the directions on the web I verified that the agent was able to see a node in the MIB by running the following command:

 

bash-2.05# snmptranslate -IR clientTable

VRTS-SNMP-MIB::clientTable

 

Although it was not clear, I assume my next step is to run mib2c.  I ran the following and receive the following error saying that I did not specify a valid OID to start with.  Can you please verify that I ran the correct command.

 

bash-2.05# env MIBS="+VRTS-SNMP-MIB" perl /opt/csw/bin/mib2c

 

You didn't give mib2c a valid OID to start with.  IE, I could not find

any information about the mib node "".  This could be caused

because you supplied an incorrectly node, or by the MIB that you're

trying to generate code from isn't loaded.  To make sure your mib is

loaded, run mib2c using this as an example:

 

   env MIBS="+MY-PERSONAL-MIB" mib2c

 

You might wish to start by reading the MIB loading tutorial at:

 

   http://www.net-snmp.org/tutorial-5/commands/mib-options.html

 

And making sure you can get snmptranslate to display information about

your MIB node.  Once snmptranslate works, then come back and try mib2c

again.

 

 

Thank you for your support.

 

Jason Merman

[EMAIL PROTECTED]

Reply via email to