On 07/02/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote:
> If I have just one SNMP agent serving many pieces of equipment, what could be
> the structure of the MIB?
> I think I must register a subtree for each combination of the pieces:
> The user with a machine composed by A and B pieces I have two subtrees:
>    ...enterprises.mycompany.user1.A...
>    ...enterprises.mycompany.user1.B...
> The user with a machine composed by A, A and B:
>    ...enterprises.mycompany.user2.A1...
>    ...enterprises.mycompany.user2.A2...
>    ...enterprises.mycompany.user2.B...


It's best not to think in terms of "the MIB for a piece of equipment".

Instead, take a step back, and think about the sort of information
you may wish to report for each piece of equipment.

Some of this information will be similar for the various types of kit,
in which case you're probably looking at a shared MIB, perhaps
containing tables with one row (or group of rows) for each piece
of attached equipment.
  (Or else use contexts to have parallel versions of the same
MIB structure).

Some of this information will be specific to a particular type of
equipment, in which case you're really looking at a separate
MIB for that particular element.


But think in terms of a collection of inter-related and cooperating MIBs,
rather than one single monolithic MIB to cover everything.
   As I keep telling our students here - break it down into smaller
(simpler!) sub-problems.   That way your brain won't ache as much :-)

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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to