apply_privilege_delegation_setting
Activates Sudo or PowerBroker settings for specified targets.
Standard Mode
emcli apply_privilege_delegation_setting
-setting_name="setting"
-target_type="host/composite"
[-target_names="name1;name2;..."]
[-input_file="FILE:file_path"]
[-force="yes/no"]
[ ] indicates that the parameter is optionalInteractive or Script Mode
apply_privilege_delegation_setting
(setting_name="setting"
,target_type="host/composite"
[,target_names="name1;name2;..."]
[,input_file="FILE:file_path"]
[,force="yes/no"])
[ ] indicates that the parameter is optionalOptions
-
setting_name
Name of the setting you want to apply.
-
target_names
List of target names. The newly submitted setting applies to this list of Enterprise Manager targets.
-
All targets must be of the same type.
-
The target list must not contain more than one element if the element's target type is "group."
-
The group referenced above should have at least one host target.
-
-
target_type
Type of targets to which the setting is applied. Valid target types are "host" or "composite" (group).
-
input_file
Path of the file that has target names. This enables you to pass targets in a separate file. The file cannot contain any colons ( : ) or semi-colons ( ; ).
For more information about the input_file option, see -input_file Syntax Guidelines.
-
force
If
yes, the operation continues and ignores any invalid targets. The default isno.
Examples
Example 1
This example applies a privilege setting named sudo_setting. This setting applies to targets of type host, and it is being applied to host1, host2, and so forth.
emcli apply_privilege_delegation_setting
-setting_name=sudo_setting
-target_type=host
-target_names="host1;host2;"
Example 2
This example applies a privilege setting named sudo_setting. This setting applies to targets of type host, and it is being applied to host1, host2, and so forth. The force flag indicates that the setting is applied to all valid targets, and invalid targets are ignored.
emcli apply_privilege_delegation_setting
-setting_name=sudo_setting
-target_type=host
-target_names="host1;host2;"
-force=yes