Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Remote Lights-Out Mgmt (iLO 2, iLO, RILOE II)
cancel
Showing results for 
Search instead for 
Did you mean: 

Get C-Class Blade Location Programatically

Jim Hanson
Advisor

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
Advisor

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
Advisor

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.