Re: Problem in registering timeticks

This is a discussion on Re: Problem in registering timeticks within the SNMP Coders forums, part of the Networking and Network Related category; On Sat, 26 Feb 2005 05:55:51 -0800 (PST) Kelvin wrote: KM> I am pretty new to Net-...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-02-2005
Robert Story
 
Posts: n/a
Default Re: Problem in registering timeticks

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 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_instance.

There isn't an existing function to do what you want, but it's pretty easy to
create one. Copy the netsnmp_instance_ulong_handler and
netsnmp_register_ulong_instance functions, change 'ulong' to 'timeticks' and
change ASN_UNSIGNED to ASN_TIMETICKS, and you're in business.

--
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0