Just to share here are some of the commands you can use to check on the HP blades other than using iLO2/OA through HTTP.
 
For Blade Servers
 
Logging in
> ssh 
 
- Displaying information in iLO2
In iLO2 CLI, information is organised in folders, therefore 'cd' is used to navigate around. 
In the below example, there are 2 folders "system1" and "map1".
"system1" has all the hardware information for the blade you are in.
"map1" has all the iLO2 configuration for the blade you are in.
 
e.g.
>hpiLO-> show
status=0
status_tag=COMMAND COMPLETED
 
/
  Targets
    system1
    map1
  Properties
  Verbs
    cd version exit show set
Basically, use the 'cd' command to navigate and "show" command to display the information.
You will know that you are at the end of the tree branch when you see nothing in the "Targets" listing. 
when you "show", the information will be display under the "Properties".
 
e.g. 
hpiLO-> cd /system1/fan1
status=0
status_tag=COMMAND COMPLETED
 
/system1/fan1
 
hpiLO-> show
status=0
status_tag=COMMAND COMPLETED
 
/system1/fan1
  Targets
  Properties
    DeviceID=Virtual Fan
    ElementName=System
    OperationalStatus=Ok
    VariableSpeed=Yes
    DesiredSpeed=37
    HealthState=Ok
  Verbs
    cd version exit show set
if you know the direct path, you can do the following as well.
 
e.g.
>hpiLO-> show /system1/cpu1/logical_processor1
status=0
status_tag=COMMAND COMPLETED
 
/system1/cpu1/logical_processor1
  Targets
  Properties
    current_pstate=1
    pstate0_avg=0.0
    pstate1_avg=100.0
    pstate2_avg=0.0
    pstate3_avg=0.0
    pstate4_avg=0.0
    pstate5_avg=0.0
    pstate6_avg=0.0
    pstate7_avg=0.0
  Verbs
    cd version exit show set
If you want to show everything to that you can pipe to somewhere else for further processing, try this.
 
e.g.
 
>hpiLO-> show -l all system1
 
Reset the system
This will reboot the blade
 
>hpiLO-> reset system1
 
Power off the system gracefully.
This will shutdown the blade gracefully.
 
>hpiLO-> stop
 
Power off the system forcefully.
This will shutdown the blade forcefully without going through the OS levels.
 
>hpiLO-> stop -f
 
Power up the system.
This will power up the blade
 
>hpiLO-> start system1
 
Reset iLO2.
This will reset iLO2.
 
>hpiLO-> reset map1
 
*tip* to backspace when you typo, use shirt+backspace.
 
Reference: 
 
For Blade Enclosure OA
 
Logging in
> ssh 
 
The OA CLI is different from iLO2 CLI. There is no need to "navigate".
The command set is as follows,
 
e.g.
OA-00237D382975> help
 
ADD ASSIGN CLEAR CONNECT DISABLE DOWNLOAD ENABLE EXIT FORCE GENERATE HELP
HISTORY HPONCFG LOGOUT PING POWEROFF POWERON QUIT REBOOT REMOVE RESTART SET SHOW
SLEEP TEST UNASSIGN UPDATE UPLOAD
 
OA-00237D382975> help show
 
SHOW { ALL | CA | CONFIG | DATE | DEVICE | DISPLAY EVENT(S) | EBIPA | ENCLOSURE
| FRU | HPSIM INFO | INTERCONNECT | LDAP | NETWORK | OA | PASSWORD SETTINGS |
POWER | RACK NAME | SERVER | SESSION TIMEOUT | SNMP | SSHFINGERPRINT | SSHKEY |
SYSLOG | TOPOLOGY | TWOFACTOR | UPDATE | USBKEY | USER | VCMODE }
Showing the c7000 enclosure information.
 
e.g.
OA-00237D382975> show enclosure info
 
Enclosure Information:
        Enclosure Name: Your Enclosure Name
        Enclosure Type: BladeSystem c7000 Enclosure
        Part Number: 412152-B21
        Serial Number: Your Serial Number
        UUID: Your UUID
        Asset Tag:
        Midplane Spare Part Number: 414050-001
        Power Distribution Unit:
                PDU Type: HP AC Module, Single Phase
                PDU Spare Part Number: 413494-001
        Onboard Administrator Tray Information:
                Type: HP BladeSystem c7000 Onboard Administrator Tray
                Spare Part Number: 416000-001
                Serial Number: Your OA Serial Number
Shown here for OA CLI are the "show" commands only since changing parameter in the OA may cause impact to the other blade systems. 
Please refer to attached if you need to set parameters.
Friday, September 25, 2009
How to Access HP C-Class Blades iLO2 and C-Class Enclosure OA using SSH
Labels:
HP_Blade
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment