On 06/06/07, Hans Dampf <[EMAIL PROTECTED]> wrote:
> Not all of the mibs in /usr/share/snmp/mibs get parsed when execute:
>
> snmptranslate -Dparse

That's correct.
The library has a list of MIB files to load by default.

If you have a MIB that isn't on this list, you must explicitly request
that it be added - either as a one-off for a particular command:

    snmptranslate -m +GWMTA-MIB

or add it to the default list

    echo  mibs +GWMTA-MIB >> $HOME/.snmp/snmp.conf

See the FAQ entry
     How do I add a MIB to the tools?
          (http://www.net-snmp.org/wiki/index.php/FAQ:Applications_02)
for details.


> and GWMTA-MIB is found and called Module 21
> parse-mibs: Checking file: /usr/share/snmp/mibs/GWMTA-MIB.txt...
> parse-mibs:   Module 21 GWMTA-MIB is in /usr/share/snmp/mibs/GWMTA-MIB.txt

> for module 21 there is no further entry - why gets this mib not
> parsed/imported?

Because it's not on the default list.
The library opens the file, and notes which MIB it contains, so that it
can be loaded if required.   But it doesn't parse the MIB file automatically.



> I expect the code the parser needs is in
> /opt/novell/groupwise/agents/lib/libgwsnmp.so

> therefore I've added in snmpd.conf
> dlmod Gwsnmp /opt/novell/groupwise/agents/lib/libgwsnmp.so

No - that'll be the code to *implement* these objects, and is only
relevant to the agent.   Client-side tools (such as snmptranslate)
only work with the MIB file.
   If you don't load the MIB file, then the client-side tools won't
recognise the names of MIB objects defined within it.  This is
completely separate from whether the agent implements these
objects or not.
   The agent can implement objects that the tools don't know about
(in which case, the results will be displayed using numeric OIDs).
And the tools can load MIBs that the agent doesn't implement
(in which case, these values won't appear in the tool output at all)


The client and server side processing are two completely different
things.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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

Reply via email to