[ 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. ]
On 08/02/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> In this case, am I correct in saying that I wouldn't need to parse a
> MIB, but rather just declare the "oid" in my C among other things and
> then send off the pdu?
That's correct.
Your code could work with numeric OIDs throughout,
which would avoid the need for parsing the MIBs.
> In other words, I know that 'snmpd' parses the MIB and keeps account of
> each of the MIB variables,
That's not actually true.
The SNMP agent basically uses the MIB files as a design document
to guide the MIB implementation code. Once the code has been written,
the agent doesn't really need the MIB files any more.
At run time, they are mostly used by the client-side tools, to convert
between numeric OIDs and MIB object names, and to display results
in a sensible manner.
(The agent also uses these files to convert between numeric OIDs
and MIB names, but that's mostly just for entries in the config files,
and debugging output - the basic operation of the agent uses hard-coded
numeric OIDs throughout).
> so am I correct in saying that my
> 'lightweight' application that sends traps ONLY wouldn't have to worry
> about a MIB?
Only as a design document.
It wouldn't need to load the MIB file when it's running, no.
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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