On Sun, 2008-11-16 at 21:27 -0800, zig fun wrote:
> > The agent do not need to load the MIB, it only have to
> > provide the managed objects (the values) indexed by the object
> > identifier.
> 
> Does this mean the agent has to use oid (1.2.3.4.xxx.1. etc) to
> reference an object in the MIB instead of the literal name of the
> object in the MIB?Since we normally use object name in agent coding,
> MIBs need to be loaded most of the time, right?

No - it only means that your module depends on the MIB and thus have to
load it.
For the modules in the base agent I think there is only one that must
load a MIB in order to work.

If you look at the code for the agent you will find that there typically
are just one place that uses the oid and that is the registration code,
other than that no full oid's are used.

> /zgf
> 
> > ------------------------------
> > 
> > Message: 5
> > Date: Thu, 13 Nov 2008 10:02:10 +0530
> > From: Aneesh <[EMAIL PROTECTED]>
> > Subject: MIB In SNMP
> > To: [email protected]
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset="us-ascii"
> > 
> > Hello,
> >         Can Anybody please  give an explanation or a
> > document about MIB
> > in snmp.How It will work?.In agent is  MIB  required etc...
> > Thanks And Regards
> > Aneesh
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > 
> > ------------------------------
> > 
> > Message: 6
> > Date: Sun, 16 Nov 2008 20:57:06 +0100
> > From: Magnus Fromreide <[EMAIL PROTECTED]>
> > Subject: Re: MIB In SNMP
> > To: Aneesh <[EMAIL PROTECTED]>
> > Cc: [email protected]
> > Message-ID:
> > <[EMAIL PROTECTED]>
> > Content-Type: text/plain
> > 
> > On Thu, 2008-11-13 at 10:02 +0530, Aneesh wrote:
> > > Hello,
> > >         Can Anybody please  give an explanation or a
> > document about
> > > MIB in snmp.How It will work?.In agent is  MIB 
> > required etc...
> > 
> > A MIB is a description of some values that someone might
> > choose to make
> > available using an SNMP agent.
> > 
> > The MIB defines the mapping from an object identifier (a
> > sequence of
> > digits) to a name.
> > 
> > The agent do not need to load the MIB, it only have to
> > provide the
> > managed objects (the values) indexed by the object
> > identifier.
> > 
> > /MF
> > 
> > **********************************************
> 
> 
>       
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to