File: //opt/OV/www/htdocs/ito_man/opctemplate.1m.html
<!-- manual page source format generated by PolyglotMan v3.2, -->
<!-- available at http://polyglotman.sourceforge.net/ -->
<html>
<head>
<title>Title</title>
</head>
<body bgcolor='white'>
<a href='#toc'>Table of Contents</a><p>
<h2><a name='sect0' href='#toc0'>Name</a></h2>
<p>
opctemplate - Tool for enabling or disabling OVO templates.
<p>
<h2><a name='sect1' href='#toc1'><b>Synopsis</b></a></h2>
<p>
<b>opctemplate</b> [-help | -l | (-e | -d) [-s subproduct_name] template_name
...]
<p>
<h2><a name='sect2' href='#toc2'><b>Description</b></a></h2>
<p>
The command <i>opctemplate</i> enables or disables OVO (or OVO-SE) templates.
By enabling and disabling templates, it is possible to decide which
kind of information the operator will receive on the GUI.
<p><p>
<b>Options</b><br>
opctemplate supports the following options:
<p>
<dl>
<dt>-help </dt></dt>
<dd> Print usage message.
<p></dd>
<dt>-l </dt></dt>
<dd> List all templates with type, name, and status (en/disabled)
ordered by installer (OVO Enterprise or OVO-SE), subproducts,
and type. The list operation is also the default task of the
command.
<p></dd>
<dt>-e | -d </dt></dt>
<dd>Specifies the action to be performed on the template (either
enable or disable).
<p></dd>
<dt>-s </dt></dt>
<dd> (Abbreviation of <i>subproduct</i>). If no subproduct is specified,
the template is assumed to be an OVO Enterprise template.
When not specified, the action will be performed on all the
templates with template name <i>template</i><b>_</b><i>name</i> of OVO Enterprise.
<p></dd>
</dl>
<p>
subproduct_name (OVO-SE only)<br>
Specifies the name of the subproduct which contains the tem‐
plate in question.
<p><p>
template_name<br>
Specifies the name of the template which is going to be
enabled or disabled. The symbolic names -all, -all_opcmsg,
-all_logfile, -all_snmptrap, -all_monitor, -all_schedule,
all_wbem, and -all_console can be used to specify all tem‐
plates of a certain type.
<p>
<h2><a name='sect3' href='#toc3'><b>Exit</b> <b>Values</b></a></h2>
<p>
This command will exit with value zero after successful operation, oth‐
erwise the exit value will be set to one and an appropriate message
will be displayed on standard error respectively written to opcerror
logfile.
<p>
<h2><a name='sect4' href='#toc4'><b>Restrictions</b></a></h2>
<p>
This command can only be issued by the superuser.
The OVO agent must run to execute this command successfully.
You cannot en/disable ECS templates (event correlation).
All en/disable operations are logged in opcerror.
<p>
<h2><a name='sect5' href='#toc5'><b>Examples</b></a></h2>
<p>
Disable OVO-SE template <i>hpux</i><b>_</b><i>opcmsg</i><b>_</b><i>SE</i> from MeasureWare subproduct:
<p><p>
# <i>opctemplate</i> <i>-d</i> <i>-s</i> <i>GlancePak</i> <i>hpux</i><b>_</b><i>opcmsg</i><b>_</b><i>SE</i>
<p><p>
Disable OVO Enterprise template <i>Su(10.x/11.x</i> <i>HP-UX)</i>:
<p><p>
# <i>opctemplate</i> <i>-d</i> <i>“Su(10.x/11.x</i> <i>HP-UX)"</i>
<p><p>
Disable all OVO-SE templates from MeasureWare subproduct:
<p><p>
# <i>opctemplate</i> <i>-d</i> <i>-s</i> <i>GlancePak</i> <i>-all</i>
<p><p>
Disable all OVO Enterprise logfile and trap templates:
<p><p>
# <i>opctemplate</i> <i>-d</i> <i>-all</i><b>_</b><i>snmptrap</i> <i>-all</i><b>_</b><i>logfile</i>
<p><p>
List all installed templates:
<p><p>
# <i>opctemplate</i> <i>-l</i>
<p>
<h2><a name='sect6' href='#toc6'><b>See</b> <b>Also</b></a></h2>
<p>
<a href='opcsetempldel.1M.html'>opcsetempldel(1M)</a>
, <a href='opcsetempladd.1M.html'>opcsetempladd(1M)</a>
, <a href='opcdcode.1M.html'>opcdcode(1M)</a>
<p>
<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>Exit Values</a></li>
<li><a name='toc4' href='#sect4'>Restrictions</a></li>
<li><a name='toc5' href='#sect5'>Examples</a></li>
<li><a name='toc6' href='#sect6'>See Also</a></li>
</ul>
</body>
</html>