OVO: Assign and distribute templates from the command line
To assign and distribute templates from the command line, use these tools:
Assign a template to a node
# /opt/OV/bin/opcnode -assign_templ templ_name=<template name> templ_type=<template type> node_name=<node name> net_type=NETWORK_IP
template type can be one of the following:
TEMPLATE_GROUP
CONSOLE_TEMPLATE
OPCMSG_TEMPLATE
LOGFILE_TEMPLATE
MONITOR_TEMPLATE
SNMP_TEMPLATE
EC_TEMPLATE
SCHEDULE_TEMPLATE
Assign a template to a node group
#/opt/OV/bin/opcnode -assign_templ templ_name=<template name> templ_type=<template type> group_name=<group name>
Distribute template
#/opc/OV/bin/opcragt -distrib -templates -monitors -commands -actions -force <hostname>
you don’t have to specify all of the template types at once.
Viewing deployed templates on the node
#/opt/OV/bin/ovpolicy -list -host <node name>