On 10 February 2010 09:58, Prakash <[email protected]> wrote:
> Hi Dave,
Please address queries to the list as a whole - not to me personally.
I am *not* the sole support for this project (though it sometimes
feels like it!)
> How to define a MIB for the following structure.
What do you have at the moment?
> …privete(4).enterprise(1).abc(16142).newyork(3).machine(1).app(4).noOfMessagesPending;
> …privete(4).enterprise(1).abc(16142).newyork(3).machine(1).app(4).noOfMessagesSent;
> …privete(4).enterprise(1).abc(16142).newyork(3).machine(1).app(3).noOfMessagesPending;
> …privete(4).enterprise(1).abc(16142).newyork(3).machine(1).app(3).noOfMessagesSent;
How many different "apps" will you have?
Will there only ever be two - or might you potentially have more?
At first sight, it would probably make sense to turn this into a
table, and use 'app'
as an index into the table.
If there are inherently only these two possibilities, then you need to
give them different
names. You could then merge the last levels together:
appAMessagesPending
appAMessagesSent
appBMessagesPending
appBMessagesSent
But it's not really possible to offer advice without knowing what the
problem actually is.
You wouldn't start designing a program by choosing the variable names.
Why should designing a MIB be any different.
It has to be driven by the underlying problem.
Which you haven't said anything about at all!
> And which config file is best to generate code using mib2c for this
> structure.
How on earth can I answer that?
Until the MIB design is finished, you don't even know whether it's
going to be a table or not. Let alone where the information will
come from, how frequently it will be updated (and who by), etc, etc.
All of this will influence the choice of MIB template.
Dave
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders