works for me...
 
[EMAIL PROTECTED] ~]# ps -ef | grep snmp
root      5296     1  0 Jun16 ?        00:01:01 /usr/sbin/snmpd -Lsd -Lf
/dev/null -p /var/run/snmpd -a
[EMAIL PROTECTED] ~]# kill -HUP 5296
 
why don't you try ...
 
[EMAIL PROTECTED] ~]# service snmpd restart
Stopping snmpd:                                            [  OK  ]
Starting snmpd:                                            [  OK  ]

if your distro has these scripts.

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joan
Landry
Sent: 04 August 2008 12:52
To: Hu, Fengliang; [email protected]
Subject: RE: A SIGHUP signal just kills snmpd daemon instead of
reloadingtheconfig.


NET-SNMP version 5.4.1


________________________________

From: Hu, Fengliang [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2008 6:00 PM
To: Joan Landry; [email protected]
Subject: RE: A SIGHUP signal just kills snmpd daemon instead of
reloading theconfig.


Hi, Joan,
 
I just tried it and it didn't work... what's the version of net-snmp you
used?
 
On Linux tried: 
    kill -1 <pid>
    kill -SIGHUP <pid>
    kill -s SIGHUP <pid>
    kill -s 1 <pid>
    kill -hup <pid>
 
Thanks,
Feng

________________________________

From: Joan Landry [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2008 2:38 PM
To: Hu, Fengliang; [email protected]
Subject: RE: A SIGHUP signal just kills snmpd daemon instead of
reloading theconfig.


kill -hup pid, where pid = the snmpd process id.
 
worked when I tried it.


________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hu,
Fengliang
Sent: Friday, August 01, 2008 5:29 PM
To: [email protected]
Subject: A SIGHUP signal just kills snmpd daemon instead of reloading
theconfig.


Hi,
 
This is Feng. I am poking net-snmp software 5.4 on x86 Linux (ubuntu
7.4) and trying to see how it can reloads the new configuration (such as
the updated community string). Googled some articles, I thought SIGHUP
signal needs to be sent to snmpd process. I also took a look at the code
and it seems that on Linux it installs the signal handler for SIGHUP to
set a reconfig flag. But for me, snmpd always simply died after I "kill
-s SIGHUP <snmpd_pid>".
 
Snmpd was started with the following command line options:
"
-u 0 -Ls5 -Lf /dev/null -p <PID_FILE_FULL_PATH> -c
<SNMP_CONFIG_FILE_FULL_PATH> -M <MIB_DIRS>"
"
 
Thanks for any feedback here.
Feng
 

Overture Networks Inc. The information contained in this message is
privileged, confidential, and non-binding and is intended for use by the
intended recipient or entity. All other uses, including distribution to
third parties, are prohibited. Please notify the sender if you have
received this message in error. Thank You, Overture Networks. 
Overture Networks Inc. The information contained in this message is
privileged, confidential, and non-binding and is intended for use by the
intended recipient or entity. All other uses, including distribution to
third parties, are prohibited. Please notify the sender if you have
received this message in error. Thank You, Overture Networks. 

http://www.vital-group.com      - Dedicated to business communications.
http://www.vital-storage.com    - Secure easy-to-use remote backups for 
business critical data.

The information contained in this message is intended for the addressee only 
and may contain confidential and/or privileged information.If you are not the 
addressee, please delete this message and notify the sender; you should not 
copy or distribute this message or disclose its contents to anyone.Any views or 
opinions expressed in this message are those of the author and do not 
necessarily represent those of The Vital International Group or any of its 
affiliates.No reliance may be placed on this message without written 
confirmation from an authorised representative of its contents.

Registered in England. Vital International Limited. Leigh House, Weald Road, 
Brentwood, Essex, CM14 4SX.Company registration number - 45022560. 

08/05/08 11:45:46
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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