It's for processing the getnext request. My concern is my agent is getting all the value as string and as per the data type of the OID; I have to convert and return to snmpd. I feel like, the error is related to the value I am returning for an OID of type OID.
Please let me know what is the conversion required (from String) in my call back function for returning an OID value to snmpd on the getNext request. Please let me know if I am still not making any sense !!! -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Friday, February 27, 2009 1:54 PM To: Ragesh V Cc: [email protected] Subject: Re: SNMP Agent response time 2009/2/27 Ragesh V <[email protected]>: > My application returns the value of OID as a string and I am passing it > to snmpd as below > *var_len = (int) 14; // My OID is of size 14 always. > return (u_char *)strRetValue.c_str(); > > Thanks in advance for your help... What is the full code for: a) registering this object b) processing the request ? Trying to debug a problem from two isolated lines of code is not easy! Dave DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ----------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
