This is a discussion on RE: Problem/Issue importing MIB net-snmp within the SNMP Users forums, part of the Networking and Network Related category; Thanks for your response Dave, More comments below ** N -----Original Message----- From: Dave Shield [mailto:D.T.Shield@csc.liv....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Thanks for your response Dave,
More comments below ** N -----Original Message----- From: Dave Shield [mailto:D.T.Shield@csc.liv.ac.uk]=20 Sent: Wednesday, February 01, 2006 12:33 PM To: Brazell, Nate (CTR) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Problem/Issue importing MIB net-snmp On Wed, 2006-02-01 at 11:50 -0500, Brazell, Nate (CTR) wrote: > 1. Is net-snmp able to use the FIBRE-CHANNEL-FE-MIB > or the FCMGMT-MIB? What do you mean by "use" ? ** I guess what I mean is can it query the objects in the MIB without writing custom code. Since this is a popular MIB it seems someone would have done the code writing already. <Cringing at the thought of writing code> If you've got an agent that you know implements these MIBs, then the Net-SNMP tools should be able to recognise the MIB object names, and retrieve the appropriate values with no real changes. ** Isn't snmpd the agent? Could it be as easy as compiling snmpd with a --with-module=3Dxxx. How do I know what MIB's snmpd implements? If you want the Net-SNMP agent to *report* these values, then this involves a significant amount of work. ** Could you explain this a little more? I am not a code writer but I understand code writing if that makes any sense? > 3. I've read several posts of web sites where you can download > new MIBS and install them but does it always require a rebuild > of the net-snmp suite or custom code writing? If you already have a suitable agent, then no. If you need to *extend* the agent to support this new MIB, then yes. > I then use the snmptranslate -m +FIBRE-CHANNEL-FE-MIB -IR fcFxPortName > This returns: > FIBRE-CHANNEL-FE-MIB::fcFxPortName=20 > (Not a OID as the FAQ for adding MIBS suggests) Is this correct? The default output format has changed since the FAQ was written. Try snmptranslate -m +FIBRE-CHANNEL-FE-MIB -IR -On fcFxPortName or snmptranslate -m +FIBRE-CHANNEL-FE-MIB -IR -Of fcFxPortName That should work OK. ** And it did in fact work ok. Thanks. Baby steps huh? > Also snmpwalk -v2c -c readonlystringhere -localhost fcFxPortName > Returns >=20 > FIBRE-CHANNEL-FE-MIB::fcFxPortName =3D No Such Object Because the agent does not implement this object. You'll need to write code for that. ** Thanks Dave. Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642 _______________________________________________ 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 |