Re: Displaying enterprise MIB objects in user-friendly format

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGYJUruRd3c5K9=n_S66ipm12VpJ-ibR3fNBsmVYUv8ajA@mail.gmail.com>
On 30 September 2011 08:20, Narasimha Murthy N.
<[email protected]> wrote:
>  I want to get SNMP response in user-friendly format. So, as per the page
>    http://www.net-snmp.org/docs/FAQ.html#How_do_I_add_a_MIB_to_the_tools_,
> I placed all enterprise MIB files in a folder and specified the folder
> name in net-snmp commands (-M option).

That tells the tools *where* to find the MIB files.
But you also need to tell the tools *which* MIB files to load.
e.g. using the '-m' option.

If you don't specify this, they will load the default set of MIBs
as configured when the tools were compiled.


>                                    Even then, when I specify numeric
> OIDs, I am not getting the response in a user-friendly format for some
> of the operations (1 and 2 listed below).

Because you are not telling the tools to load the TEJASCARD-MIB
Try adding the option
    -m +TEJASCARD-MIB


> Operation 3: This translation is ok.
> [root@narasimha bin]# ./snmptranslate -M +/root/tejmibs -On
> TEJASCARD-MIB::localSlot

Here you are explicitly telling the snmptranslate tool to load the
TEJASCARD-MIB file (as part of specify the OID to translate)


> Operation 4: Response is user-friendly
> [root@narasimha bin]# ./snmpgetnext -M +/root/tejmibs -v 2c -c
> $COMMUNITY $AGENT_IP TEJASCARD-MIB::localSlot

Again, you are explicitly telling snmpgetnext to load the
TEJASCARD-MIB file (as part of specify the OID to retrieve)


Dave

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.