Enabling SNMP engine update automation
To create the probe tools for engine update automation, perform the following steps:
- After installation, run the following command:
$OMNIHOME/bin/nco_sql -server server_name -user user_name -password password < mttrapd_create_SnmpActionTools.sql
This command performs the following tasks:
- Adds the two columns
SNMPAction
andSNMPError
to alerts.status. - Creates the trigger group
mttrapd_triggers
. - Creates the trigger
mttrapd_set_engine_correction
. - Creates the procedure
mttrapd_engine_command
.
- Adds the two columns
- Set the probe property EngineInfoProbeWatch to
1
. - Activate the Process Agent (PA). Now when the PA receives commands issued from the
mttrapd_set_engine_correction
ObjectServer trigger, the PA log will contain messages of the following type:2019-05-09T17:02:09: Information: Command '[SETGID=0]$OMNIHOME/probes/linux2x86/mttrapd_Nhttp_SnmpActions.pl 'http:// your_omnihost:your_port/probe/c ommon' set_engine_correction 'err:Remote boot count invalid.' 'engine_id=8011ab22cd33ef cached_boot=1 cached_time= remote_boot=1 remote_time=3 232' '8011ab22cd33ef' ' passed to dispatch thread and RPC acknowledged. 2019-05-09T17:02:09: Debug: Route Lookup on 'localhost' which is a ROUTE_LOOPBACK route type. 2019-05-09T17:02:09: Information: Starting an unmanaged process. (OS External effect). 2019-05-09T17:02:09: Debug: Launch process, argv[0] = /opt/IBM/tivoli/netcool81/omnibus/probes/linux2x86/mttrapd_Nhttp_SnmpActions.pl 2019-05-09T17:02:09: Debug: Launch process, argv[1] = http://your_omnihost:your_port/probe/common 2019-05-09T17:02:09: Debug: Launch process, argv[2] = set_engine_correction 2019-05-09T17:02:09: Debug: Launch process, argv[3] = err:Remote boot count invalid. 2019-05-09T17:02:09: Debug: Launch process, argv[4] = engine_id=8011ab22cd33ef cached_boot=1 cached_time= remote_boot=1 remote_time=3232 2019-05-09T17:02:09: Debug: Launch process, argv[5] = 8011ab22cd33ef 2019-05-09T17:02:09: Debug: Launch process, uid = 0 2019-05-09T17:02:09: Debug: Launch process, gid = 0 2019-05-09T17:02:09: Debug: Successful Fork.