Yes, that's exactly what I want. Thanks.

Is there a tutorial on how to manage Tables with net-snmp?

If I have multiple instances of the same server, and a manager console 
asking for statistics on a specific server:
- How the master agent dispatches the request to the correct subagent? Do I 
have to manage it myself in the master agent? I'm a bit confused...

Thanks.

P.S: I write a sample test where I start a master agent on a specific port, 
and a subagent (AgentX) on the same specific port.
I set the variable NETSNMP_DS_AGENT_X_SOCKET to create sort of shared memory 
between the master agent and the subagent.
Successful test:
I only start the master agent => the file is created
I stop the master agent => the file is deleted

Unsuccessful test:
I start the master agent => the file is created
I start the subagent
I stop the subagent
I stop the master agent => the file is NOT deleted

Do I have to do something specific in the code at the shutdown of the 
subagent?

>From: "Dave Shield" <[EMAIL PROTECTED]>
>To: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>CC: [email protected]
>Subject: Re: FW: Re: How can I extend a MIB with a subagentX
>Date: Wed, 23 Aug 2006 21:18:53 +0100
>
>On 23/08/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
>>- genStatisticsTable with the index genServerIndex and genStatisticsIndex 
>>:
>>statistics here are specific to each server
>>
>>Is there a generic way to create the genStatisticsTable with columns
>>that can be added dynamically by a sub agent?
>
>Well, that does sound like a generic statistics table.
>You can't change the number of *columns* dynamically, but you can
>certainly add new rows (corresponding to new statistics).
>
>So you'd probably have three columns in this table (plus the external
>genServerIndex):
>
>  *  genStatisticsIndex - to distinguish between multiple statistics
>relating to the same server
>  *  genStatisticsDescr - a textual description of what this statistic 
>reports
>  *  genStatisticsValue - the value for this statistics
>
>So you might have a table such as:
>
>1   1    "# Silly Questions received"    23
>1   2    "# Sarcastic Answers"    22
>1   3    "# Clearly phrased Questions"   3
>2   2    "# Silly Questions received"   17
>2   3    "# Patient Answers"    18
>
>
>Note that a given "genStatisticsIndex" value can refer to two
>different statistic for two different servers.
>
>OK?
>
>Dave

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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

Reply via email to