
Name SubnetMask
192.168.2.2 255.255.254.0
192.168.3.3 255.255.128.0
192.168.3.4 255.255.128.0
Specifying Input Files in PowerShell
To use input files in PowerShell, specify the location of the file in the command line. By default, OpenManage Essentials
CLI starts at the following directory:
PS C:\Program Files (x86)\Dell\SysMgt\Essentials\Tools\CLI>
If you are running commands from the default CLI directory, with commands located in the directory one level from it
(\samples), you can use either of the following methods of specifying the path to the input files:
• Type the entire path name in quotes. For example, Add-DiscoveryRange –Profile “C:\Program
Files (x86)\Dell\SysMgt\Essentials\Tools\CLI\Samples\DiscoveryProfile.xml”.
• Use a period (.) to retrieve the file located in the current directory, or .\directory to retrieve the file located one
level from the current directory. For example, Add-DiscoveryRange –Profile .\samples
\DiscoveryProfile.xml.
Command Line Interface Commands
Access to CLI commands in the OpenManage Essentials is dependent on your access privilege. If your user id belongs
to the OMEAdministrators group, you can access all the CLI commands. If your user id belongs to the OMEUsers group,
then you cannot delete or modify any data using the CLI and a warning message is displayed.
Creating a Discovery Range
Description: The Add-DiscoveryRange command allows you to create a new discovery range. The command
references an xml file (DiscoveryProfile.xml) which is a protocol definition associated with the discovery range. Enter
the ranges either using an xml file, csv file, or by specifying the range. For more information about DiscoveryProfile.xml,
RangeList.xml, and RangeList.csv files, see Creating a Discovery Profile Input File and Specifying IPs, Ranges, or Host
Names Using XML or CSV Files.
Commands:
• PS> Add-DiscoveryRange –Profile <DiscoveryProfile.xml> -Range <range>
• PS> Add-DiscoveryRange –Profile <DiscoveryProfile.xml> -RangeList
<RangeList.xml>
• PS> Add-DiscoveryRange –Profile <DiscoveryProfile.xml> -RangeListCSV
<RangeList.csv>
Examples:
• PS> Add-DiscoveryRange –Profile .\Samples\DiscoveryProfile.xml -Range
10.35.0.124
•
PS> Add-DiscoveryRange –Profile .\Samples\DiscoveryProfile.xml -
RangeList .\Samples\RangeList.xml
• PS> Add-DiscoveryRange –Profile .\Samples\DiscoveryProfile.xml -
RangeListCSV .\Samples\RangeList.csv
169
Kommentare zu diesen Handbüchern