Unsolved
This post is more than 5 years old
11 Posts
0
82429
Question about adding a discovery range from the OME 2.1 PowerShell CLI
The background is that I'm working on a script to automatically add new hosts to Dell OME when a corresponding computer account shows up in AD so that I don't have to scan 200 Class C IP ranges that span the globe. I've got a copy of the Profile.xml from the CLI guide and trying to add a server to it through the Powershell snapin on the server. I'm getting this error and wasn't sure If anyone else has run into it before. Any thoughts on the cause?
PS C:\temp> Add-DiscoveryRange -Profile c:\temp\DellOMEProfile.xml -range 172.30.12.230-230
Add-DiscoveryRange -Profile c:\temp\DellOMEProfile.xml -range 172.30.12.230-230
Range is 172.30.12.230-230
Profile is c:\temp\DellOMEProfile.xml
Add-DiscoveryRange : Sequence contains no elements
At line:1 char:19
+ Add-DiscoveryRange <<<< -Profile c:\temp\DellOMEProfile.xml -range 172.30.12.230-230
+ CategoryInfo : NotSpecified: (:) [Add-DiscoveryRange], InvalidOperationException
+ FullyQualifiedErrorId : System.InvalidOperationException,A.cc6f8a26f8cf06cfdd2a9058cdbf2fe4a
DELL-Amit Y
24 Posts
0
January 13th, 2016 20:00
Hi,
Above command looks fine. Can you please try these
1. Check whether path of profile xml is correct maybe some typos are there.
2. Give the folder path in double quotes.
Alternatively OpenManage Essentials carries own discovery profile xml which is present at C:\Program Files\Dell\SysMgt\Essentials\Tools\CLI (default location) or wherever it is installed. You can use that too.
Let us know the behavior then. Hope it helps