For example, when a SPI is uninstalled from the management server, a forced undeployment for all SPI policies is executed. That is, the SPI policies are removed from the policy inventory on the management server, even if the managed node is currently not running or just not reachable. After the node is up and running again, however, the policies (which where not removed) may still generate lots of messages.
These policies are no longer in the policy inventory on the server, it is not possible to remove them from the managed node using the console. If the node has the HTTPS agent, you can synchronize the inventory, and then remove the policy using the console. Alternatively, you can remove the policy manually. If the node has the DCE agent, you must remove the policies manually from the managed node.
The procedure to delete policies manually differs, depending on whether the node has a HTTPS agent or a DCE agent.
export
PATH=/opt/OV/bin:$PATH
and then press Enter.export
PATH=/usr/lpp/OV/bin:$PATH
and then press
Enter.export
PATH=/usr/opt/OV/bin:$PATH
and then press
Enter.ovpolicy -list
, and then press Enter.
A list of policies appears.ovpolicy -remove
to delete individual
policies, or all policies.
ovpolicy -remove -polname
<name>
, and then press Enter.ovpolicy -remove
-all
, and then press Enter. TIP:
You can also remove a policy remotely from the management server by
adding the -host
option. For example: ovpolicy
-remove -all -host <hostname>
.
opcagt -kill
Delete all files in directory "%OvAgentDir%\conf\svcdisc\policies" to remove all Service Auto-Discovery policies from the node. If this directory does not exist, no Service Auto-Discovery policies are currently deployed on the node.
Delete all files in directory "%OvAgentDir%\conf\nodeinfo\policies" to remove all Node Info policies from the node. If this directory does not exist, no Node Info policies are currently deployed on the node.
Delete all files in directory "%OvAgentDir%\conf\mgrconf\policies" to remove all Flexible Management policies from the node. If this directory does not exist, no Flexible Management policies are currently deployed on the node.
Delete all files in directory "%OvAgentDir%\conf\OpC\vpwin" to remove all other policies from the node.
opcagt -start
- %OvAgentDir%\conf\OpC\nodeinfo
- %OvAgentDir%\conf\OpC\mgrconf
If you manually delete policies of the Node Info or the Flexible Management policy type on the managed node, you must make sure that the content of the above two files is still valid before you restart the agent. If this is not the case, the agent may not work properly.
Related Topics: