Dear Dave,
Thanks a lot for your help... I am now able to get refreshed data in the
table...
Now, I need your help to do the following:
1. SET the column (field) of a row in a table with a new value
2. Insert a new row in a table
Which mib2c command I should use to do so? Is there any example available
for this?
So far I have generated the table(to generate the skeleton .c and .h file)
using the command below .
mib2c -S cache=1 -c mib2c.iterate.conf myTable
I want to perform SET and Add Row operation on the same table which I have
generated using the above mib2c command.
Please help.
Regards,
Siuli
On Thu, Feb 9, 2012 at 8:01 PM, Dave Shield <d.t.shi...@liverpool.ac.uk>wrote:
> [ First - *please* don't mail me privately, without copying
> any responses to the mailing list. I don't have the time
> or inclination to offer private, unpaid, SNMP consultancy.
> Keep discussions to the list, where others can both learn,
> offer advice, and see me correct my mistakes. Thanks. ]
>
>
> On 9 February 2012 14:24, Siuli Roy <siuli....@gmail.com> wrote:
> > Dear Dave,
> >
> > Thanks a lot for your reply...
> >
> > I have tried mib2c command, as suggested by you, using
> > "mib2c -Scache=1 -c mib2c.iterate.conf myTable" command...
> >
> > However, it is giving the following error:
> > "no variable specified for -S flag. at /usr/bin/mib2c line 96"
>
> Bother - I'm always getting that wrong!
> Try
>
> mib2c -S cache=1 -c mib2c.iterate.conf myTable
>
> (i.e. it needs a space after the '-S')
>
>
>
> > I am using net-snmp-5.5-17.
> >
> > Where can I change the cache timeout value???
>
> The code that's generated will include a definition
>
> #define MYTABLE_TIMEOUT 60
>
> in the header file. Adjust this definition and recompile
> to set the default timeout value.
>
> (Note that it's also possible to set this dynamically while
> the agent is running, via the nsCacheTable)
>
> Dave
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users