help

Siuli Roy <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAEB4zOdj0aEXTnxjZ0kUniLZZRzyrocj5MCHNfodQvgkj4+F8w@mail.gmail.com>
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 <[email protected]>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 <[email protected]> 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
[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.