Users Guide

Table Of Contents
: 通过 OpenManage Essentials CLI您只能创建包含有限服务器列表的静态组。通过 OpenManage
Essentials 控制台您可以创建基于查询的动态组。有关更多信息请参阅创建新组
命令
PS> Add-CustomGroup GroupName <groupName>
PS> Add-CustomGroup GroupName <groupName> DeviceList <DeviceList.xml>
PS> Add-CustomGroup GroupName <groupName> -Devices <comma separated list
of devices>
示例
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
DeviceList.xml 文件的示例
<DeviceList> <Device Name="PE2900-WK28-ZMD"/> <Device Name="PWR-
CODE.US.DELL.COM"/> <Device Name="HYPERVISOR"/> <Device Name="M80504-W2K8"/> </
DeviceList>
将设备添加到自定义组
说明Add-DevicesToCustomGroup 命令可以将设备添加到现有组。要将设备添加到该组请使用 xml
件或列出设备并使用逗号进行分隔。
命令
PS> Add-DevicesToCustomGroup GroupName <groupName> -DeviceList
<devicelist.xml>
PS> Add-DevicesToCustomGroup GroupName <groupName> -Devices <comma
separated list of devices>
示例
PS> Add-DevicesToCustomGroup GroupName MyServers DeviceList .\Samples
\DeviceList.xml
PS> Add-DevicesToCustomGroup GroupName MyServers Devices PE2900-WK28-ZMD,
PWR-CODE.US.DELL.COM, HYPERVISOR, M80504-W2K8
DeviceList.xml 文件的示例
<DeviceList> <Device Name="PE2900-WK28-ZMD"/> <Device Name="PWR-
CODE.US.DELL.COM"/> <Device Name="HYPERVISOR"/> <Device Name="M80504-W2K8"/> </
DeviceList>
删除组
说明Remove-CustomGroup 命令可以从根节点删除组。
命令
PS> Remove-CustomGroup GroupName <groupName>
206