Stopping osasnmpd

7.1 LPAR mode z/VM guest

The subagent can be stopped by sending either a SIGINT or SIGTERM signal to the thread.

About this task

Avoid stopping the subagent with kill -9 or with kill -SIGKILL. These commands do not allow the subagent to unregister the OSA-Express MIB objects from the SNMP master agent. This can cause problems when restarting the subagent.

If you saved the subagent PID to a file when you started it, you can consult this file for the PID (see osasnmpd – Start OSA-Express SNMP subagent). Otherwise, you can issue a ps command to find it out.

Example

The osasnmpd subagent starts a daemon that is called osasnmpd. To stop osasnmpd, issue the kill command for either the daemon or its PID:
# ps -ef | grep snmp

USER       PID
root       687     1  0 11:57 pts/1    00:00:00 snmpd
root       729   659  0 13:22 pts/1    00:00:00 osasnmpd
# killall osasnmpd