NAME
ovpolicy
- manage and remove local and remote policies.
SYNOPSIS
ovpolicy -help
ovpolicy -version
ovpolicy -remove [-no-notify -host <hostname
> [-targetid [<id
>]...] [-ovrg <ov_res_group
>] <SELECTION
>
ovpolicy [-enable |-disable] [-no-notify -host <hostname
> [-targetid [<id
>]...] [-ovrg <ov_res_group
>] <SELECTION
>
ovpolicy [-addcategory |-removecategory] <cat
>... [-no-notify -host <hostname
> [-targetid [<id
>] [-ovrg <ov_res_group
>]] <SELECTION
>
ovpolicy -removeallcategories [<cat
>]... [-no-notify -host <hostname
> [-targetid [<id
>]...] [-ovrg <ov_res_group
>]] <SELECTION
>
ovpolicy [-addattribute |-removeattribute] <name
> <value
>... [-no-notify -host <hostname
> [-targetid [<id
>]...][-ovrg <ov_res_group
>]] <SELECTION
>
ovpolicy -removeallattributes [-no-notify -host <hostname
> [-targetid [<id
>]...][-ovrg <ov_res_group
>]] <SELECTION
>
ovpolicy [-setowner | -removeowner <owner
>] [-no-notify -host <hostname
> [-targetid [<id
>]...][-ovrg <ov_res_group
>]] <SELECTION
>
ovpolicy -notify [-host <hostname
> [-targetid [<id
>]...][-ovrg <ov_res_group
>]]
ovpolicy -list [-level <0|1|2|3|4> -host <hostname
> [-targetid [<id
>]...][-ovrg <ov_res_group
>]]
DESCRIPTION
ovpolicy
manages and removes local and remote
policies. A policy is a set of one or more specifications rules and
other information that help automate network, system, service, and
process management. You can deploy policies to managed systems,
providing consistent, automated administration across the network.
You can group policies into categories (for example, to assign
policies to a special policy group for simple enable and disable
actions). Each category can have one or more policies. Policies can
also have one or more attributes, an attribute being a name-value
pair.
You can use ovpolicy
to remove, enable, and disable
local policies, as well as perform other functions. For information
about the parameters supported by the ovpolicy
command, see "Parameters." For information about parameter options,
see "Options."
Parameters
ovpolicy
recognizes the following parameters:
-remove
-enable
-disable
-disable
option only disables a policy, it does not
remove a policy from the file system.
-addcategory
-removecategory
-removeallcategories
-addattribute
-removeattribute
-removeallattributes
-setowner
-removeowner
-list
-notify
-version
-h | -help
Options
You can use the following options with the allowed
ovpolicy
command parameters:
-add-attribute
<
name
>
with the
value defined in
<
value
>
to the
specified installed policy.
-add-category
<cat1>
[
<cat2> ...
<catN>
]
-enabled|-disabled
-enabled
or -disabled
, the
new policy acquires the status that is defined in the policy
header. If you do not use -enabled
or
-displayed
, the new policy acquires the status of the
currently installed policy (if any).
Note that this option overwrites the status defined in the policy-header installation file. If the new policy is already installed on the target system, the new version assumes the status of the installed version.
-file
<filename>
stdout
for the successfully installed policy.
-force-attr
-force-cat
-force-owner
-host <
hostname
>
[-targetid <
ids
>]
-targetid
specifies one or more target IDs.
-level
-list
parameter, as follows:
0
1
2
3
4
-no-notify
-no-notify
, ovpolicy
does
not trigger any notifications.
-remove-category
<cat1>
[
<cat2> ...
<catN>
]
-remove-category
option with an empty string
deletes all categories. This is a blank-separated list.
-remove-all-categories
-remove-attribute
<name>
with the value defined in <value>
from
the specified installed policy.
-remove-all-attributes
-set-owner
<
owner
>
-set-owner
with
an empty string deletes the owner.
-ovrg
<
ovrg_res_group
>
The
<SELECTION>
option is
one of the following:
<
SELECTION
>-all|-owner
<
owner
>|-owner
<
owner
> -polname
<
name
>|-polid
<
uuid
> |-polname
<[
type
:]
name
>|-poltype
<
typename
>|-category
<
category>
|-attribute
<
name
> [value]
-all
-owner
<owner>
<owner>
.
-owner
<owner> -polname
<
name>
.<owner>
and the policy
name -owner
<
name>
.
-polid
<id>
-polname
[
<policy_type_name>
:]<
policy
name>
policy_type_name
, the section applies to all
policies of the specified type.
-poltype
<policy_type_name>
-category
<category_name>
-attribute
<name>
<value>
Return Codes
ovpolicy
recognizes the following return codes:
AUTHOR
ovpolicy
was developed by Hewlett-Packard
Company.
EXAMPLES
The following examples show you how to use the
ovpolicy
command:
ovpolicy -list
syslog
policy:
ovpolicy -disable -polname "HPUX ovsyslog"
-host
<HPUX_hostname>
ovpolicy -enable -poltype ovsnmptrap
ovpolicy -remove -all
ovpolicy -remove -owner mgtsvr