The command opctemplate enables and disables policies on HP
Operations managed
nodes.
If used without any option, opctemplate lists all deployed polices
with type, name, and status.
The command opctemplate lets you to enable and disable policies programmatically, directly on the managed node, without using the HP Operations Manager for Windows console. This is useful in situations where you want to use scripts or programs to disable policies, for example during regular scheduled outages or when packages in cluster environments switch.
Enabling and disabling policies with opctemplate does not change the status of the node in the inventory. This means that the HP Operations Manager console does not get informed when policies are enabled and disabled locally on the node with opctemplate.
Command synopsis
opctemplate [ -help ] [ -list ] [ (
-enable | -disable ) policy_name ... ]
Option | Short | Description |
---|---|---|
-help | -h | Displays the opctemplate options. |
-list | -l | Lists all deployed policies with type, name, and status. This is the default |
-enable <policy_name> | -e | Enables policies specified by <policy_name> on a managed node. |
-disable <policy_name> | -d | Disables policies specified by <policy_name> on a managed node. |
The option <policy_name> can be replaced with any of the following symbolic names to specify all policies of a certain type:
Name | Policy type |
---|---|
-all
|
Policies of all types |
-all_opcmsg
|
Open Message Interface policy |
-all_logfile
|
Windows Event Log policy |
-all_snmptrap
|
SNMP Interceptor policy |
-all_monitor
|
Measurement Threshold policy |
-all_schedule
|
Scheduled Task policy |
-all_wbem
|
Windows Management Interface policy |
\usr\OV\log\OpC\<node>\opcerror
(or
/var/opt/OV/log/OpC/opcerror
for UNIX operating
systems).
opctemplate -l
To enable the "opcmsg" policy:
opctemplate -e opcmsg
To disable all SNMP Interceptor and Windows Event Log policies:
opctemplate -d -all_snmptrap -all_logfile
Related Topics: