Re: array-user question

Vinh Nguyen <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Apart from the tutorials on net-snmp web site, I found this tutorial 
extremely detail and helpful.
Try it out:

http://openhpi.sourceforge.net/subagent-manual/

Hope that helps,
Vinh

Mats M Lindberg wrote:
>
> Hi!
>
> I have a question about an array-user table generated mib.
>
> My table consist of Id (integer) and Value (integer) columns. The Id 
> is similar to the index and is not-accessible and the Value is 
> readable with the snmpget.
>
> I would like to initiate the table with for instance id = 1 to id = 
> 100 and the values should be set to zero in the beginning.
>
> I’m not successful when creating new rows in the table.
>
> Now I invoke the creation_row from the template code in the 
> init_”name”Table method and it seems to work for one row. But I would 
> like to inititate the hole table.
>
> Questions: How should I do to create rows the right way?
>
> If I would like to set a certain id/index to a certain value, how 
> should I do that. Now, it’s always id/index 1 that is set to the 
> default value I have decided in the method create_row.
>
> Thanks in advance!
>
> /Mats
>
> _______________________________
>
> Mats M Lindberg
>
> Software Engineer
>
> Teligent AB
>
> Konsul Jonssons väg 17
>
> P.O. Box 213
>
> SE 14923 Nynäshamn
>
> mail: mats.m.lindberg <mailto:[email protected]>@teligent.se 
> <mailto:[email protected]>
>
> web: www.teligent.se <http://www.teligent.se/>
>
> phone: +46 (0)8 410 17261
>
> mobile: +46 (0)733 117261
>
> fax: +46 (0)8 520 193 36
>
> _______________________________
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.