Target Group AVCLI Commands
The AVCLI target group commands enable you to alter a target group.
Table A-6
Table 6 AVCLI Target Group Commands
| Command | Description |
|---|---|
| ADD TARGET | Adds a specific target to a target group. |
| DELETE TARGET | Deletes a specific target from a target group. |
ADD TARGET
Use this command to add a specific target to a target group.
Syntax
ALTER TARGETGROUP <target group name> ADD TARGET <target name>
HELP ALTER TARGETGROUP
Arguments
| Argument | Description |
|---|---|
help |
To seek help on available options. |
target name |
The name of the specific target that needs to be added. |
target group name |
The name of the specific target group. |
Example
alter targetgroup tg1 add target t1
ALTER TARGET GROUP
Use the ALTER TARGET GROUP command to modify the specified target group.
To add or delete targets from the specified target group. To modify the description of the target group.
Syntax
ALTER TARGET GROUP <target group name> ADD TARGET <target name>
To add a target to an existing target group.
ALTER TARGET GROUP <target group name> DELETE TARGET <target name>
To remove the target from an existing target group.
ALTER TARGET GROUP <target group name> MODIFY DESCRIPTION <description>
To modify the description of an existing target group.
HELP ALTER TARGET GROUP
To seek help on available options.
Arguments
| Argument | Description |
|---|---|
| target group name | The name of the specified target group that needs to be modified. |
| target name | The name of the specified target that needs to be added or deleted from the target group. |
| description | The new description of the specified target group. |
Examples
alter target group tg1 add target t1;
This command adds target t1 to the target group tg1.
alter target group tg1 delete target t1;
This command deletes target t1 from the target group tg1.
alter target group tg1 modify description 'new description';
The description of the specified target group is modified to the specified one.
CREATE TARGET GROUP
Use the CREATE TARGET GROUP command to create a target group with the specified name.
To create a target group with the given name. A target group can be created only by a super administrator or superauditor.
Syntax
CREATE TARGET GROUP <target group name>
Creates a target group with the specified name.
CREATE TARGET GROUP <target group name> DESCRIPTION <description>
Optionally add a description while creating the new target group.
Arguments
| Argument | Description |
|---|---|
| target group name | The name of the target group being created. Special characters ( |
Examples
CREATE TARGET GROUP test22
A new target group with the name test22 is created.
create target group my_group2 description 'new group for new reports';
Creates a target group my_group2 with description new group for new reports.
DELETE TARGET
Use this command to delete a specific target from a target group.
Syntax
ALTER TARGETGROUP <target group name> DELETE TARGET <target name>
HELP ALTER TARGETGROUP
Arguments
| Argument | Description |
|---|---|
help |
To seek help on available options. |
target name |
The name of the specific target that needs to be deleted. |
target group name |
The name of the specific target group. |
Example
alter targetgroup tg1 delete target t1
DROP TARGET GROUP
Use the DROP TARGET GROUP command to remove the registration of the specified target group from Audit Vault Server.
To drop the specified target group from Audit Vault Server.
Syntax
DROP TARGET GROUP <target group name>
Arguments
| Argument | Description |
|---|---|
| target group name | The name of the specified target group being dropped. |
Example
DROP TARGET GROUP test22
The target group with the name test22 is dropped.
GRANT ACCESS ON TARGET GROUP
This command grants access to target group <target-group> to user specified by <username>.
Syntax
GRANT ACCESS ON TARGET GROUP <target-group> TO <username>
Example
avcli> GRANT ACCESS ON TARGET GROUP hr_db_group TO hr;
LIST ADMINUSERS OF TARGET GROUP
This command lists the various admins of a target group specified by the name <target-group>. Outputs the admin name.
Syntax
LIST ADMINUSERS OF TARGET GROUP <target-group>
Example
avcli> LIST ADMINUSERS OF TARGET GROUP tg1;
LIST TARGET GROUPS
Use the LIST TARGET GROUPS command to view a list of all target groups for a user.
To view a list of all target groups for a user.
Syntax
LIST TARGET GROUPS
This command lists all the target groups for the current user.
Example
list target groups;
Lists all the target groups.
LIST TARGETS OF TARGET GROUP
Use the LIST TARGETS OF TARGET GROUP command to view a list of active targets in a specific target group.
To view a list of active targets in a specific target group.
Syntax
LIST TARGETS OF TARGET GROUP <target group name>
This command lists various active targets in a specific target group. The output contains the name, location, and description for each target.
Arguments
| Argument | Description |
|---|---|
| target group name | The name of the target group for which the active targets are being listed. |
Example
list targets of target group tg1;
Lists various active targets of the target group tg1.
REVOKE ACCESS ON TARGET GROUP
This command revokes access to the target group <target group> from user specified by <username>
Syntax
REVOKE ACCESS ON TARGET GROUP <target-group> FROM <username>;
Example
avcli> REVOKE ACCESS ON TARGET GROUP