Ok,

     here i have attached the function for write_method pointer. you can see
"SNMPconfSetSectionKey" function in COMMIT action.

     I cant set the value through SNMP-SET tool . I assumed that IP value is
assigned in var_val pointer.
But the value is not settable.

    But if i hard-code the ip value instead of "ptr" in
SNMPconfSetSectionKey function it is set.

    I dont know where we can get the ip value if i set like,

 snmpset -v2c -c private 192.168.1.2 OID a  192.168.1.4
Here 192.168.1.4 value will be available in which variable in writeLan
function in attached file?

 Guide me please...

regs,
Thazhaiarasan R.

On Wed, Jul 21, 2010 at 10:29 AM, Dave Shield <[email protected]>wrote:

> On 21 July 2010 15:10, Thazhai Arasan <[email protected]> wrote:
> >  But when i set this (var_val) value in COMMIT action, it wont set the
> new
> > value. The value is not set.  But when i hard-coded the  some values
> instead
> > of (var_val) in function, it is set. can you please tell me the reason.
>
> Short answer - no.  I can't.
>
> If you gave us some indication of what your code might be doing,
> then maybe we could help.    But given a report that essentially says
>       "my code doesn't work"
> doesn't really give us much to work with!
>
> Dave
>

Attachment: test1
Description: Binary data

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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

Reply via email to