Re: How to renew (update) data stored on a OID for a get request?

2008-02-13 Thread Dave Shield
On 13/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > is there no way to solve my problem with 5.2? The cache helper is part of the 5.2.x distribution, so you could probably use the cache-style framework from the "mib2c.table_data.conf" template, with your earlier "mib2c.create-data.conf" code

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >>> What's the installed version of Net-SNMP ? >>> 5.2.x or something later? >> Version 5.2.3-7etch2 (Debian) > > You need 5.3 or later for the "tdata" helper. > The 5.2.x version of mib2c.table_data.conf uses a different

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > > What's the installed version of Net-SNMP ? > > 5.2.x or something later? > > Version 5.2.3-7etch2 (Debian) You need 5.3 or later for the "tdata" helper. The 5.2.x version of mib2c.table_data.conf uses a different table helper (and doesn't

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >> 'netsnmp_tdata_row' undeclared (first use in this function) ... >> and so one! > > What's the installed version of Net-SNMP ? > 5.2.x or something later? > > Dave Version 5.2.3-7etch2 (Debian) SoFar Simon -

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > 'netsnmp_tdata_row' undeclared (first use in this function) ... > and so one! What's the installed version of Net-SNMP ? 5.2.x or something later? Dave - This SF.net

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >> row = hrSWInstalledTable_createEntry(table, c); > >> But how i add the data to the entry?. >> Or modify entry with row->data->...? > > Yes. > > Dave First, thanks for fast help! Next problem: 'netsnmp_tda

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > row = hrSWInstalledTable_createEntry(table, c); > But how i add the data to the entry?. > Or modify entry with row->data->...? Yes. Dave - This SF.net email is s

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >> But now i have a problem with the load routine? >> With routine should i use to fill the table? >> >> netsnmp_create_table_data_row(); >> netsnmp_set_row_column() and so one doesn't work, or? > > No - that's the API fo

Re: Re: Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > But now i have a problem with the load routine? > With routine should i use to fill the table? > > netsnmp_create_table_data_row(); > netsnmp_set_row_column() and so one doesn't work, or? No - that's the API for the "create-dataset" framewo

Re: Re: Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >>> How have you coded your MIB module? >>> What helper(s) are you using? >>>That might affect what your code might look like. > >> I fill the hrSWInstalledTable from HOST-RESOURCES-MIB with the output >> from dpkg. >

Re: Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > > How have you coded your MIB module? > > What helper(s) are you using? > >That might affect what your code might look like. > I fill the hrSWInstalledTable from HOST-RESOURCES-MIB with the output > from dpkg. One of the MIBs (high) on

Re: Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >> I want to update data stored on a OID every time a get-request for this >> OID comes in! >> A AgentX stores the data but only on startup. > > Not true. > It depends how you implement the MIB module. > >> Is there a wa

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > I want to update data stored on a OID every time a get-request for this > OID comes in! > A AgentX stores the data but only on startup. Not true. It depends how you implement the MIB module. > Is there a way to call the init_... function b