Saturday, August 6, 2011

HMC Command Reference

HMC Command Reference

HMC Version
Discription:Can get Version & Release details
lshmc -V

To Get HMC serial Num
Discription:Will get HMC serial Num and Product Info
lshmc -v

N/W conf of HMC
Discription: will Get HMC network Configurations
lshmc -n

To reboot HMC
Discription: Will reboot the HMC
hmcshutdown -t now -r Don't forgot -r option to reboot

List users
Discription:List the HMC user details
lshmcusr

Change HMC password
Discription: to change the HMC password (Please be careful with user name)
Syntax :chhmcusr -u -t passwd
Example : chhmcusr -u hscroot -t passwd Will change the hscroot password

To List All managed systems on HMC
Discription: List all Managed systems
lssysconn -r all

List LPARS by Managed system
Discription: List LPARS under a managed system (Physical Server)
Syntax : lssyscfg -m -r lpar -F name:state
Example :lssyscfg -m subha -r lpar -F name:state
Discription: will List all the Lpars under management server named subha

Check Status of LPARS
Discription:List all Lpar status in HMC
Power4 HMC : lslpars
Power 5 Above lssyscfg -r sys -F name:state Lists with lapr name and Status

What Is soft reset ??
Soft reset is just like shuting down the LPAR operating system or Applications & and bring it back. This Both conditions will use when system hangs and don't use hard reset first try with soft reset if we use hard reset without soft reset it may cause to crash lpar OS

Soft reset LPAR
Discription: Soft resets the LPAR if there is any problem
Power4 chsysstate -m -r lpar -n -o reset
Power 5 chsysstate -r lpar -m -o shutdown -n
Soft rests the p5 above LPAR's by HMC

Soft rest Full Partition
Discription: Soft resets the Manged system in Full Partition Mode
chsysstate -n -r sys -o reset


What is hard reset ??
Hard reset is Powering off the LPAR and bring it back.

Hard rest a LPAR
Description:Hard rest of a LPAR
Power 4 chsysstate -m -r lpar -n -o reset
Power 5 chsysstate -r lpar -m -o shutdown -n --immed

Hard rest Full Partition
Description:Hard reset the managed system in Full Partittion Mode
Power 4 chsystate -n -r sys -o off


Open server Console of a LPAR
Description:To get the Lpar Physical console
mkvterm -m -p

Close a Open Console of a LPAR
Description:To close the Opened console of a LPAR
rmkvterm -m -p

Open Conosle for full partition Mode
Description: To get managed sys console
power4 mkvterm -m

Note :Use two tidles (~~) and followed by .(dot) will Close the existing Terminal Opened by u.

Boot LPAR
Description:Boot p4 LPAR with specicfied profile name
Power4 chsysstate -r lpar -m -o on [-f
Power5 chsysstate -r lpar -m -o on -f -n

Change LPAR Name
Description:Change the lpar name from lpar1 to mylpar1
chsyscfg -r lpar -m -i "name=lpar1, new_name=mylapr1"

change the Managed sys Name
Description:Chnages the Managed sys name to power5
chsyscfg -r lpar -m -I "new_name=power5"

increase the Processing units
description:Increase additional 8 processing units to Lpar
chhwres -r proc -m -o a -p --procunits 8

HMC Logs : /var/hsc/log/hmclogger.log
cim server logs /var/hsc/log/cimserver.log