Home | Previous Page | Next Page   IBM Informix Implementation of SNMP > Using SNMP on UNIX >

The runsnmp.ksh Script

The runsnmp.ksh script on UNIX ensures that both the SNMP master agent and the onsrvapd server-discovery daemon are running on a host. The runsnmp.ksh file is in the $INFORMIXDIR/snmp directory. You must correctly set the INFORMIXDIR environment variable to the latest installed version of the product and run the script as root.

Read syntax diagramSkip visual syntax diagram>>-runsnmp.ksh--+------------------------+--+------+------------>
                +- -m--master_agent_args-+  '-stop-'
                '- -s--server_disc_args--'
 
>--+-------+---------------------------------------------------><
   '-start-'
 

Issue the runsnmp.ksh commands that the following diagram shows.

Option
Description
-m master_agent_args
The master-agent arguments can be either stop or valid master-agent arguments.
-s server_disc_args
The server-discovery arguments can be either stop or valid onsrvapd arguments.
start
Starts snmpdm or snmpdp and onsrvapd if they are not running. This option is the default.
stop
Stops snmpdm or snmpdp and onsrvapd if they are already running and exits.

The master_agent_args and the server_disc_args are not checked for correctness.

The following examples illustrate how to use runsnmp.ksh:

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]