now i know more about scalar & instance but i just wonder why you've got the idea to drop the instance helper.
i think it is a fine way to work with a instance especially within a paticular table. right? and we can just do the following with a scalar: in our code, register the scalar as an instance,but give the exact oid without the subid .0 then we can GET snmpget -v2c -c public localhost sysUpTime to a normal use instead of having to add .0 in the command line it seems better,at least for me :-) and i think the most appealing thing is that we could throw the SET steps out of our consideration, as it is automatically done by the instance helper. just one question: when i use netsnmp_register_int_instance(),no warnings; but when using netsnmp_register_ulong_instance(),i get passing arg 4 of `netsnmp_register_ulong_instance' from incompatible pointer type what's the matter? _________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ 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