Friday, September 14, 2007

HMC with command line

HMC webconsole is a good tool for doing LPAR administration, but it would be better if I can manage some jobs in command level:

Get the system name
lssyscfg -r sys -F name

Get the LPAR names, id and state
lssyscfg -m -r lpar -F name,lpar_id,state

Details of a LPAR
lssyscfg -m -r prof --filter "lpar_ids=2"

List resources
lshwres -r mem -m --level sys

List LPAR resources location
lshwres -m -r io --rsubtype slot -F description,unit_phys_loc,bus_id,phys_loc,lpar_id (--filter "lpar_ids=x")

Ref: http://www-941.ibm.com/collaboration/wiki/display/LinuxP/HMC+command+line

No comments: