1833137 Members
3155 Online
110051 Solutions
New Discussion

changing snmpd.conf file

 
Jim Galliher
Advisor

changing snmpd.conf file

Is there a way to reread the snmpd.conf file after modifying it without rebooting?
3 REPLIES 3
DCE
Honored Contributor

Re: changing snmpd.conf file


to stop:
/sbin/init.d/SnmpHpunix stop
/sbin/init.d/SnmpMaster stop

to start:
/sbin/init.d/SnmpHpunix start
/sbin/init.d/SnmpMaster start
Fabio Ettore
Honored Contributor

Re: changing snmpd.conf file

Hi Jim,

DCE is right.

From http://docs.hp.com/en/B2355-90692/snmpd.1M.html


Manual Startup
There are two ways to start the SNMP Agent manually. The first way is to execute snmpdm and then start each subAgent. Separate process subAgents are started by invoking the particular subAgent executables.

The second and simplest way to start the SNMP Agent manually is to execute the snmpd startup script which will invoke the Master Agent and all subAgents who have been installed and designed to operate in this paradigm. The snmpd script is layered upon the V.4 startup paradigm and so makes use of the component startup scripts in /sbin/init.d and configuration scripts in /etc/rc.config.d. When snmpd is invoked it starts /usr/sbin/snmpdm, passes all its command line arguments to it and then executes each script (S*) found in /sbin/SnmpAgtStart.d.


Best regards,
Fabio
WISH? IMPROVEMENT!
Florian Heigl (new acc)
Honored Contributor

Re: changing snmpd.conf file

for lazy people like me:

for way in op art;
do
/sbin/init.d/SnmpMaster st$way
sleep 3
ps -ef | grep snmp
done
yesterday I stood at the edge. Today I'm one step ahead.