Re :Re: Re :Re: Re :Re: Re :Re: Errors while accessing Table objects
"girish" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <1193052512.S.5901.30864.webmail59.rediffmail.com.old.1193056587.4379@webmail.rediffmail.com> |
Well I\'ve defined NNN as 32 already. Now I tried using netsnmp_check_vb_type_and_max_size but still the error is there. I doubt whether the command which I\'m using is correct or not. snmpset -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost UserLabel.1 s girishor any other issue with this. Not able to find. Please help in this regard.Thanks & Regards,GirishOn Mon, 22 Oct 2007 12:19:47 +0100 \"Dave Shield\" wrote On 22 Oct 2007 10:14:09 -0000, girish wrote: > In the subagent i\'ve this code for the object. > struct myTable_entry { : > long myId; > char UserLabel[NNN]; : > }; > switch (table_info->colnum) { > case COLUMN_USERLABEL: > r
et = netsnmp_check_vb_type_and_size(request->requestvb, > ASN_OCTET_STR, NNN); Hmmm.... It looks suspiciously as if you haven\
't edited the template code at all. In particular, you need to specify the size of the field \'UserLabel\', and the size passed to the validation routine. Given that you\'ve left these as \'NNN\', then I\'m surprised that the subagent even compiles! The other thing that you might need to do is replace the call \'netsnmp_check_vb_type_and_size(....)\' with an equivalent call to \'netsnmp_check_vb_type_and_max_size()\' Which call to use depends on the characteristics of the MIB object that you are implementing. Does it always take a value of *exactly* NNN characters, or does it take a value of *no more than* NNN chars? Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping thr
ough log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _____
__________________________________________ 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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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