Linux – HP BLADE machines – identify the Server name from the Linux OS

blade-serverhphp-proliantilo

I have a Linux machine (RedHat version release 5.6) in HP BLADE Hardware

I am trying to find a solution to identify the server name from my Linux OS (Linux installed in the HP Blade HW), (Server name) appears in the Access Options screen

 Example – how to configure the server name in the HP Blade:



 from the HP Blade System Onboard Administrator screen

 I configured the server name as the following:



  click on Device Bays 

  click on ILO (  device 1 )

  click on Web Administration

  click on  Administration

  click on  Access

  click on  Options

  from the Access Options screen 

  I type the server name: barracuda1 in (Server Name:) field

In device Bay 1
I installed Linux redhat version release 5.6

how to discover the server name ( as already configured in Access Options screen ) from my Linux?

Or by which tool/command/SW we can identify the Server Name from Linux OS

Best Answer

You need the HP ProLiant Support Pack or management agents installed on the server to obtain this information from the Linux command line. Once installed, the hponcfg utility has a -g flag, which corresponds to "Get Host Information". The following is an example where I have a different name defined in the ILO (as you've done) than the one defined in the server's /etc/sysconfig/network file.

[root@LA_Server ~]# hponcfg -g
Firmware Revision = 2.07 Device type = iLO 2 Driver name = hpilo
Host Information:
                        Server Name: LA_Server_New
                        Server Number: 000000000