User's Manual
Creating a Custom Device Group
Description: The Add-CustomGroup command allows you to create a custom device group in the
device tree. If required, you can add devices to the group after it is created.
NOTE: Using OpenManage Essentials CLI, you can only create static groups which contain a finite
list of servers. You can create dynamic groups based on queries using the OpenManage Essentials
console. For more information, see Creating a New Group.
Commands:
• PS> Add-CustomGroup –GroupName <groupName>
• PS> Add-CustomGroup –GroupName <groupName> –DeviceList <DeviceList.xml>
• PS> Add-CustomGroup –GroupName <groupName> -Devices <comma separated list of
devices>
Examples:
• PS> Add-CustomGroup –GroupName MyServers –DeviceList .\Samples\devicelist.xml
• PS> Add-CustomGroup –GroupName MyServers –Devices PE2900-WK28-ZMD, PWR-
CODE.US.DELL.COM, HYPERVISOR, M80504-W2K8
Example of a DeviceList.xml file:
<DeviceList>
<Device Name="PE2900-WK28-ZMD"/>
<Device Name="PWR-CODE.US.DELL.COM"/>
<Device Name="HYPERVISOR"/>
<Device Name="M80504-W2K8"/>
</DeviceList>
Adding Devices to a Custom Group
Description: The Add-DevicesToCustomGroup command allows you to add devices to an existing
group. To add the devices to the group, either use an xml file or list the devices and separate them using
a comma.
Commands:
• PS> Add-DevicesToCustomGroup –GroupName <groupName> -DeviceList
<devicelist.xml>
• PS> Add-DevicesToCustomGroup –GroupName <groupName> -Devices <comma
separated list of devices>
Examples:
PS> Add-DevicesToCustomGroup –GroupName MyServers –DeviceList .\Samples
\DeviceList.xml
or
PS> Add-DevicesToCustomGroup –GroupName MyServers –Devices PE2900-WK28-ZMD, PWR-
CODE.US.DELL.COM, HYPERVISOR, M80504-W2K8
Example of a DeviceList.xml file:
<DeviceList>
<Device Name="PE2900-WK28-ZMD"/>
<Device Name="PWR-CODE.US.DELL.COM"/>
<Device Name="HYPERVISOR"/>
251