I have checked the contents of each elements inputted into 
int returnValue = netsnmp_register_read_only_scalar( 
netsnmp_create_handler_registration(buffy, 
handle_snmp, 
scalar_oid, 
OID_LENGTH(scalar_oid), 
HANDLER_CAN_RONLY 
)); 



For each iteration of the loop the OID and scalar name is unique. So why does 
it returns MIB_DUPLICATE_REGISTRATION? 





/Sverre ----- Original Message -----

Fra: "Dave Shield" <d.t.shi...@liverpool.ac.uk> 
Til: "Sverre Moe" <sve...@spacetec.no> 
Kopi: "net-snmp-users" <net-snmp-users@lists.sourceforge.net> 
Sendt: 26. oktober 2012 14:52:18 
Emne: Re: Debugging SNMP 

On 26 October 2012 13:29, Sverre Moe <sve...@spacetec.no> wrote: 
> Full code of my scalar registration. Changed to register all scalars one by 
> one instead of in group. 
> 
> The oid_wrapper class is a wrapper around oid that contains an oid pointer 
> and the length of that oid. 

Try printing out the value of 'scalar_oid' (and 'scalar_length') 
each time round the loop. 
What is the registration call *actually* being invoked with? 
(as opposed to what you think it _should_ be invoked with) 

Dave 



CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be 
proprietary, confidential or subject to export regulations, and is only meant 
for the intended recipient(s). Any disclosure, copying, distribution or use is 
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in 
error, please delete it immediately from your system and notify the sender 
properly.
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
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

Reply via email to