SNMP SET of sysLocation and sysContact

Doroubo Doroubo <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
 

I am having a problem on setting the syslocation and syscontact in
RFC1213. I have read that removing these fields in snmpd.conf would
make them writable. I did this and it really became writable, but my
problem is that once the snmp agent restarts, the values changes back
to default.
 

I also tried programming by registering the oid for these fields
(sysContact and sysLocation), but I did not successfully registered it.
Here is a code snippet.
 

    netsnmp_register_scalar(

        netsnmp_create_handler_registration("sysContact", handle_SysContact,

                               syscontact_oid, OID_LENGTH(syscontact_oid),

                               HANDLER_CAN_RWRITE

        ));
 

The error might be duplicate registration. Is there anyone who could
help me with this? I want sysLocation and sysContact to be writable via
SNMP SET and gets preserved even if snmp agent restarts.
 

Thanks in advance!!!


 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.