This post is more than 5 years old
2 Posts
0
3010
April 27th, 2016 03:00
Add DiscoveryGroup to OME with REST API call or Powershell
Hello,
we are running a Powershell workflow to automate the configuration of the iDRAC of our PowerEdge servers, as part of this workflow I want to add the DNS name of the Server to a OME Discovery Range.
Is there a OME Powershell module we can use to do this?
Or as an alternative can we use an REST API Post call to achive this? Unfortunately the REST API documentation for OME is not exposing a lot of details:
"POST /DiscoveryRange
To create a new discovery range. If the
service generates the identifier, the
resource identifier is returned in the
Location response header.
"
Can someone please provide an example of how to do this?
Thanks,
Simon
No Events found!
Dell-Priyanka
1 Message
0
May 3rd, 2016 02:00
Hi Simon,
There is no REST API implemented to add Discovery Range currently. However, there are power shell scripts you can use to do the same in CLI mode.
Below is an example to discover an iDRAC using WSMAN protocol. This script worked for me. You can give a try. You will need 3 files here: PowerShell Script, DiscoveryConfigurationXML, DiscoveryRangeListXML.
PS Script------------>
Set-ExecutionPolicy RemoteSigned -Force
Add-PSSnapIn Dell.OME.CLI
Start-Sleep -s 10
Start-Sleep -s 5
$secure = ConvertTo-SecureString " " -asplaintext -force
Add-DiscoveryRange –profile -WSManPassword $secure –rangelist
Start-Sleep -s 5
set-rundiscoveryinventory -rangelist
Start-Sleep -s 5
Exit
DiscoveryConfigurationXML-------->
255.255.255.0
1000
1
public
4
2
Administrator
Administrator
443
root
60
4
443
certificate.cer
root
00
5
2
DiscoveryRangeListXML----------------------->
Hope this helps!
Regards,
Priyanka
DELL-Shivendra K
2 Intern
•
685 Posts
0
May 3rd, 2016 01:00
Hi Simon,
Thanks for the query.
OpenManage Essentials does have a CLI infrastructure which is an extension to the PowerShell command shell. To explore more about the guidelines and how to use it, please refer this detailed white paper:
en.community.dell.com/.../20218169
Hope this helps!
Simon Schug
2 Posts
1
May 4th, 2016 08:00
Thanks Guys, this was what I was looking for.
Set-ModifyDiscoveryRangeGroup with CSV imports has done the trick for me.
BR,
Simon
DELL-Shivendra K
2 Intern
•
685 Posts
0
January 29th, 2018 01:00
Hi,
This functionality is now available with OpenManage Essentials v2.4. Please refer the REST API guide here: http://www.dell.com/support/home/us/en/19/product-support/product/openmanage-essentials-v2.4/manuals