Automation

 View Only
  • 1.  PowerCLI script to get HP Onboard Administrator IP

    Posted Sep 12, 2017 11:07 PM

    Hi All,

    I'm in a difficult situation. I have 4 HP C7000 Chassis' that I have no IP information (OA and VCM). The Blades in the chassis are BL460 G7's (16 per Chassis total of 64 Hosts in 4 Farms). The ILO's do not appear to be configured. I'm using this query below, it is not connecting to get an IP. On others that are configured I get the IP. The team that was to set this up is gone and the Hosts are in Production, never a good thing with Murphy around. If I'm not able to get to the Chassis, is there a script I can use the set the IP, Gateway, Subnet, Unsername and Password? Yes this is a BIG mess and I need to find a way to clean it up if possible. Any help would be greatly appreciated.

    Re: Hardware sensors



  • 2.  RE: PowerCLI script to get HP Onboard Administrator IP

    Posted Sep 13, 2017 03:21 PM

    So, I'm not sure exactly how they did it, but check out the vDocumentation scripts from arielsanchezmora​ and Edgar Sanchez.  They list this as the RAC IP and it works for HP iLO and Dell iDRAC.

    GitHub - arielsanchezmora/vDocumentation: vDocumentation provides a community-created set of PowerCLI scripts that produ…

    Just grab it from the Powershell gallery, run the get-esxinventory script against your host(s) and you'll get the iLO IP (if configured). 

    I haven't touched HP in years so I can't help you with setting the IP remotely.



  • 3.  RE: PowerCLI script to get HP Onboard Administrator IP

    Broadcom Employee
    Posted Nov 01, 2017 04:16 AM

    Thanks Ben! Really appreciate you helping promote vDocumentation sir :smileyhappy:

    To the OP - yes, you can use our script and it will get the ILO IP if you are using vsphere 5.5 or 6.0 - 6.5 has an issue that PowerCLI team may fix.

    I think that in order for the chassis to administer the blades, they should have an ILO IP, so you shouldn't be in too bad a situation. However, you do need to determine the chassis IP and credentials, and our script won't help you there. To be honest, I would gather the serial numbers and open up a ticket with HP support if you don't know what to do.

    To actually setup ilo IP details is not hard, but in a blade environment, the chassis tends to overrule the blades, so it's best to go the chassis route.

    let me know if I can help in any other way through twitter, @arielsanchezmor , as I'm not terribly active in these forums :smileyhappy:



  • 4.  RE: PowerCLI script to get HP Onboard Administrator IP

    Posted Nov 01, 2017 03:24 PM

    I'm not sure if you're familiar with "Scripting Tools for Windows PowerShell" from HPE.  They have cmdlets to interact with the OA and iLO.  There is also a cmdlet to find an OA "Find-HPOA", you can select an IP range.  I'm somewhat familiar with the cmdlets, and the below link will let you download the module.

    Scripting Tools for Windows PowerShell OID5440657 | HPE™