AW: [AGENT++] newbie: Where's the MIB?

Eggers, Henning Henning.Eggers at plath.de
Thu Mar 15 17:40:49 CET 2007


Hi John & Bob,
I konw I am a bit late answering but this needs some clarification.

SNMP management applications do indeed come with MIB compilers to load MIB files at run time. This enables them to display the MIB tree and let the user select which objects to manage and so on.

SNMP agents very rarely come with run-time MIB compilers. The OIDS, types, ranges and the like are indeed hard-coded into the agent. Agents _implement_ a MIB and therefore must know what they are implementing at compile time.

Agent++ is for writing SNMP agents and therefore does not include a MIB compiler. AgenPro is a compiler to compile SNMP MIBs into code stubs for Agent++. These code stubs need to be filled by the developer to implement the MIB objects. But the MIB compiler is not required to write an agent, the "compilation" can also be done in the developers head ;-)

Hope this showed you what you were missing here. When I started with SNMP agents I was missing the same thing ...

Best regards,
Henning

> -----Ursprüngliche Nachricht-----
> Von: agentpp-bounces at agentpp.org 
> [mailto:agentpp-bounces at agentpp.org] Im Auftrag von Bob Natale
> Gesendet: Donnerstag, 1. März 2007 23:07
> An: John Mudd
> Cc: agentpp at agentpp.org
> Betreff: Re: [AGENT++] newbie: Where's the MIB?
> 
> Hi John,
> Example programs sometimes use simpler approaches for brevity 
> and clarity (wrt whatever the main objective of the example 
> happens to be).
> Many/most commercial SNMP management applications/platforms 
> will, in fact, load MIB defs in some dynamic or load-time 
> fashion and go from there. (Which is not to say you want find 
> some that use hard-coded MIB defs...sometimes to reduce 
> footprint or improve performance, etc.)
> Cheers,
> BobN
> 
> -----Original Message-----
> From: John Mudd [mailto:johnbmudd at gmail.com]
> Sent: Thursday, March 1, 2007 03:24 PM
> To: agentpp at agentpp.org
> Subject: [AGENT++] newbie: Where's the MIB?
> 
> When a Manger sends my Agent a Get request, it includes an OID. The
> first thing my Agent has to do is look up the OID in the MIB to see if
> I'm managing it.
> 
> What confuses me is that in examples such as agent.cpp it looks like
> the MIB info is being populated into a C++ object via hardcoded
> statements. Why doesn't the program just read a MIB file? I think
> I'm missing something very basic here.
> 
> John
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
> 
> 
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
> 
> 




More information about the AGENTPP mailing list