White Papers
Dell EMC Technical White Paper
2 PowerShell Extension
The OME CLI infrastructure is an extension to the PowerShell command shell. Windows PowerShell is an
interactive prompt and scripting environment that can be used independently, or in combination, and is used
by a system administrator. Unlike most shells, which accept and return text, Windows PowerShell is built on
top of the .NET Framework Common Language Runtime (CLR) and the .NET Framework and accepts and
returns .NET Framework objects. Many system administrators are familiar with PowerShell commands and
feel very comfortable using PowerShell’s infrastructure; common practices and WRT-defining commands
make CLI functionality of the OME much easier to adopt.
2.1 Authentication
CLI authentication uses the same methodology as the OME console. A single sign-on is used to access the
OME console and the CLI commands can only be run by a user who is a member of the OMEAdministrators
group. Note that the CLI infrastructure is available on the management station only. The CLI capability is not
available remotely.
2.2 Discovery or inventory task control through CLI syntax
From the PowerShell CLI, you can use three commands:
• Add <command>
• Remove <command>
• Set <command>
These three are the approved PowerShell command verbs that must prefix any new commands. The
following conventions are used in the following paragraphs:
• […]: an optional value - <…>: user provided input - ‘|’ logical „or‟.
o –Range <name> | -RangeList <rangeList.xml>: you can only provide the -Range or
-RangeList switch on the command line but not both.
2.3 Discovery configuration profile template
Several discovery configuration range or discovery configuration group commands require a template that
defines the various parameters and the associated protocol values. This template can be individually modified
and submitted as part of the CLI argument input parameter. The input parameter is consistent for all the
commands that create discovery configuration ranges or groups, and it is Profile <profile.xml file>. The
template is given here:
<DiscoveryConfiguration>
<ICMPConfig>
<Timeout>400</Timeout>
<Retries>1</Retries>
</ICMPConfig>
<SNMPConfig Enabled="True">
<SNMPV1V2CConfig Enabled="True">
<GetCommunity>public</GetCommunity>
<SetCommunity></SetCommunity>
</SNMPV1V2CConfig>
<SNMPV3Config Enabled="True">