Powershell : How to Find Server ILO IP addresses on your Network ?


APPROACH :

There are two approaches to get the iLo IP’s on your network.

1.  Powershell module for HP iLO :  Download the powershell module for iLO from the HP site and run the cmdlet Find-Ilo to get the list of Ilo IP addresses in a range of IP addresses. This approach can be bit confusing and personally I don’t find it useful as we have to specify the range of IP address in this cmdlet, which can create a large network traffic.

Find-Ilo

2.  Test-Connection : My approach is very easy and quite useful and will save you some network traffic and time. So the logic behind is – In every organization you can access a machine’s iLO by appending something like “ilo” or “-ilo” etc at the end of server name in the address bar of web browser. These are nothing but DNS entry for the iLO.

ilo

When you use Test-Connection  cmdlet against ilo name labdc01-ilo it will give you ilo IP address like in the image below, because DNS has iLO names mapped against the iLO IP addresses.

ilo

Here, we’ll use Test-Connection to ping all  “serverName“+ “iLO Keyword” like labdc01-ilo, here

Servername : labdc01
Keyword : -ilo

First, we’ve to get all ServerNames in a text file like and save it to a location lets suppose C:\servers.txt.

ilo

Then run the below script after modifying the ‘iLO keyword‘ (highlighted below) used in your organization’s and you will get the Servername s and IP addresses :), easy ain’t it?

Get-Content C:\server.txt |  foreach { Test-Connection ($_.ToString()+'ilo')  -Count 1} | select @{l='Server Name';e={(($_.address).split("ilo"))[0]}}, @{l='iLO Ip Address';e={$_.ipv4address}}

ilo

Hope you find above Tip useful and please share if you know any other approach.

Happy Learning ! 🙂

Prateek Singh

 

Advertisements

7 thoughts on “Powershell : How to Find Server ILO IP addresses on your Network ?

  1. What i do not understood is in reality how you are not really much more smartly-liked than you might be right now.
    You’re very intelligent. You understand thus significantly in relation to this subject,
    made me individually believe it from numerous various angles.
    Its like men and women don’t seem to be fascinated except it is one thing to do with Woman gaga!
    Your individual stuffs great. Always deal with it up!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s