The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Remote Lights-Out Mgmt (iLO 2, iLO, RILOE II) Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Get C-Class Blade Location Programatically

Highlighted
Jim Hanson
Super Collector

Get C-Class Blade Location Programatically

Hi,
I am trying to find a way to get the physical location (rack, enclosure, and slot) from an ilo2 in my c-class blades. I have looked at the sample scripts from the website but the only "get location" ones refer to P-Class. What I ultimately want to do is populate the location field in my windows snmp service automatically in my build.
Anyone do this or have any ideas where to point me?

Much appreciated,

Jim

4 REPLIES
David Claypool
Honored Contributor

Re: Get C-Class Blade Location Programatically

That information is not held by iLO but in the Onboard Administrator. The easiest way to get the information is by parsing the XML that returns when you access the OA with the following statement. No authentication is necessary:

http://OA_IP_ADDRESS_OR_DNS_NAME/xmldata?item=all
Jim Hanson
Super Collector

Re: Get C-Class Blade Location Programatically

Thanks, david, but that query is not returning the system name (as you would see if you click the device bay button in the OA gui). this is ideally what I am looking for:

Thanks,

Jim
JasonF
Acclaimed Contributor

Re: Get C-Class Blade Location Programatically

I'm essentially looking for the same thing. I can parse out the XML if I can at least get the servername and bay info.

Is there more specific xmldata available?
acartes
Honored Contributor

Re: Get C-Class Blade Location Programatically

I do not believe that better data is available for C-Class via a scripting interface to iLO today.
//Add this to "OnDomLoad" event