Using the same environment setup described for the InfoHub, you can operate the SNMP Plugin from the shell and from within GT.M. To operate the SNMP Plugin from the shell, the general command is:
$gtm_dist/mumps -run IHsnmp --action=<Action> --plugin=PluginId
<Action> is one of the following: start, status, shutdown.
--plugin specifies the subscriberID which tells the plugin which alerts to pick up from the InfoHub. The subscribers are defined in the InfoHub configuration file. Currently, you can have only one SNMP plugin per system.
All <Action> entry points in IHsnmp API produce output to $IO.
To operate the SNMP Plugin from within GT.M, invoke the action entry point in the IHsnmp API: