Re: Using a MIB in application

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
    [ 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.   ]

2008/4/23 Paul Pocock <[email protected]>:
>  I'm getting  "Cannot find module" errors -
>  I can't see how I can specify my MIB just using
>
>  read_objid("My-MIB::myObject", anOID, &anOID_len);

The token before the :: is the name of the MIB - i.e. the token
that comes before "DEFINITIONS"
As long as the MIB file is in the correct directory,
  then the library will load it, and understand these object names.


>  How do you use the setenv value in this context?

If you specify "fully-qualified" MIB object names, then you
don't need to bother with setenv at all.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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.