This is a discussion on Unsuccessfully Running mib2c within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------=_NextPart_000_183C_01C5EC5B.556DDE90 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
------=_NextPart_000_183C_01C5EC5B.556DDE90 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" 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/c...b-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 jmerman@erggroup.com ------=_NextPart_000_183C_01C5EC5B.556DDE90 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii" <html> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {font-family:Arial; color:windowtext;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Please correct me if I am sending this question to = the wrong place.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>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:</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>bash-2.05# snmptranslate = -IR clientTable</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>VRTS-SNMP-MIB::clientTable</= span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>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.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>bash-2.05# env MIBS=3D"+VRTS-SNMP-MIB" perl = /opt/csw/bin/mib2c</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>You didn't give mib2c a = valid OID to start with. IE, I could not find</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>any information about the = mib node "". This could be caused</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>because you supplied an = incorrectly node, or by the MIB that you're</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>trying to generate code = from isn't loaded. To make sure your mib is</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>loaded, run mib2c using = this as an example:</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> env MIBS=3D"+MY-PERSONAL-MIB" mib2c </span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>You might wish to start by = reading the MIB loading tutorial at:</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> http://www.net-snmp.org/tutorial-5/commands/mib-options.html</span></font= ></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>And making sure you can get snmptranslate to display information about</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>your MIB node. Once snmptranslate works, then come back and try mib2c</span></font></p> <p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>again.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Thank you for your support.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Jason Merman</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>jmerman@erggroup.com</span></font></p> </div> </body> </html> ------=_NextPart_000_183C_01C5EC5B.556DDE90-- ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&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/...net-snmp-users |