RE: SNMP SET of sysLocation and sysContact

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

Yes, that's what I'm doing (killall snmpd).  How do you terminate properly?  I tried snmp stop but when I check the running processes, I can see snmpd running.  I want it not running sometimes.  Do you know how to terminate it gracefully?

I can see that /var/net-snmp/snmpd.conf updates everytime I set syslocation and syscontact.  The problem now is when I restart the machine (power off then power on).  The values in /var/net-snmp/snmpd.conf resets.  

In my snmpd.conf inside SNMPCONFPATH, I defined the following tokens psyslocation and psyscontact.  These fields doesn't get updated everytime I set these.  I even tried removing these fields completely.  Still, the values in /var/net-snmp/snmpd.conf resets.


Thanks!!

Ed


> Date: Fri, 9 Jul 2010 16:38:19 +0100
> Subject: Re: SNMP SET of sysLocation and sysContact
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> On 9 July 2010 14:41, Doroubo Doroubo <[email protected]> wrote:
> > 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.
> 
> How are you restarting the agent?
> 
> As long as the agent is shut down cleanly,
> then it should save the new values (in /var/net-snmp/snmpd.conf)
> and restore them when it starts up again.
> 
> If you kill the agent abruptly (e.g. using "kill -9"), then it doesn't
> get a chance to save these values, so would revert to the default
> ones when it restarts.
>    There again, if you kill processes using "kill -9", then you
> deserve all you get!   :-)
> 
> 
> > I also tried programming by registering the oid for these fields (sysContact
> > and sysLocation), but I did not successfully registered it.
> 
> That shouldn't be necessary - the existing code ought to do
> what you need.
> 
> Dave
 		 	   		  
_________________________________________________________________
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.