Re: Problem in registering timeticks

2005-03-11 Thread Robert Story
On Wed, 02 Mar 2005 16:34:05 + Dave wrote: DS> > KM> I have several counters that I need to register with the Master. Some DS> > KM> of these have type timeticks in the MIB file. DS> > DS> > There isn't an existing function to do what you want, DS> DS> Oh yes there is! DS> What about the 'sca

Re: Problem in registering timeticks

2005-03-02 Thread Kelvin Moss
There isn't an existing function to do what you want, but it's pretty easy tocreate one. Copy the netsnmp_instance_ulong_handler andnetsnmp_register_ulong_instance functions, change 'ulong' to 'timeticks' andchange ASN_UNSIGNED to ASN_TIMETICKS, and you're in business. --- Thanks much. I

Re: Problem in registering timeticks

2005-03-02 Thread Dave Shield
On Tue, 2005-03-01 at 13:51, Robert Story wrote: > KM> I have several counters that I need to register with the Master. Some of > KM> these have type timeticks in the MIB file. I can't find the appropriate > KM> function to register them. For integers I am using > KM> netsnmp_register_int_instanc

Re: Problem in registering timeticks

2005-03-02 Thread Robert Story
On Sat, 26 Feb 2005 05:55:51 -0800 (PST) Kelvin wrote: KM> I am pretty new to Net-SNMP. I need to develop a subagent that attaches to KM> master agent and reports values for some SNMP counters. KM> KM> I have several counters that I need to register with the Master. Some of KM> these have type ti

Problem in registering timeticks

2005-02-26 Thread Kelvin Moss
Hi all,   I am pretty new to Net-SNMP. I need to develop a subagent that attaches to master agent and reports values for some SNMP counters.   I have several counters that I need to register with the Master. Some of these have type timeticks in the MIB file. I can't find the appropriate function to