5-5 deleteobjectforlogicalgroup, 5-6 getlogicalgroup – HP XP Command View Advanced Edition Software User Manual

Page 164

Advertising
background image




Command line interface commands



164

Command execution example:

hdvmcli DeleteLogicalGroup -o "D:\logs\DeleteLogicalGroup.log" "objectid=*****"

*****

: The value is encoded by the CLI.

Command execution result:

RESPONSE:

(Command completed; no data returned)

4-5-5 DeleteObjectForLogicalGroup

DeleteObjectForLogicalGroup

deletes the specified object from a logical group (see

Table 4-

62

).

A user who has only View permission cannot execute this command. A user to whom a user-defined
resource group is assigned and who also has Modify permission can remove a single object or
objects from logical groups that the user is permitted to access.

Table 4-62

DeleteObjectForLogicalGroup command parameters

Parameter Name Status

Description

objectid

Optional

Object ID of the logical group

NOTE:

You must specify either objectid or logicalpath. Do not

specify both parameters at the same time, as this might cause an error to
occur.

logicalpath

Optional

Path of the logical group to delete object from

NOTE:

You must specify either objectid or logicalpath. Do not

specify both parameters at the same time, as this might cause an error to
occur.

groupelements

Required

Comma-separated list of one or more object IDs of the
HostStorageDomains

and/or hosts to be removed from the logical

group
These must be valid IDs of objects currently in the group. Specify the
comma-delimited objectIDs obtained from another CLI response. The
values are encoded by the CLI.

Command execution example:

hdvmcli DeleteObjectForLogicalGroup -o "D:\logs\XP1024
DeleteObjectForLogicalGroup.log" "objectID=*****" "groupelements=*****"

*****

: The values are encoded by the CLI.

Command execution result:

RESPONSE:

(Command completed; no data returned)

4-5-6 GetLogicalGroup

GetLogicalGroup

obtains a list for the specified logical group or all logical groups (see

Table 4-

63

). By default, the characteristics of the group are provided, but not the group's contents. If you

specify subtarget, the group's contents of the specified types can be obtained. If a logical group
contains other groups, the contained groups cannot be obtained with the group. Instead, the
relationship between containing and contained groups is determined by the parent attribute of
contained groups.

Advertising