Showing posts with label HMC Topic. Show all posts
Showing posts with label HMC Topic. Show all posts

Tuesday, 12 March 2013

Command Line HMC Commands


To list status of all systems and LPARs connected to an HMC:
lslpars
lslpars --wide
To reboot the HMC:
hmcshutdown -t now -r
To issue a soft reset to an LPAR:
chsysstate -m <managedsystemname> -r lpar -n <lparname> -o reset
To issue a soft reset to a system running in FullSystemPartition mode:
chsysstate -n <managedsystemname> -r sys -o reset
To issue a hard reset to an LPAR:
chsysstate -m <managedsystemname> -r lpar -n <lparname> -o off
To issue a hard reset to a system running in FullSystemPartition mode:
chsysstate -n <managedsystemname> -r sys -o off
To open a console connection to an LPAR:
mkvterm -m <managedsystemname> -p <lparname>
To open a console connection to a system running in FullSystemPartition mode:
mkvterm -m <managedsystemname>
If the mkvterm command results in this error message:
"All available virtual terminal sessions have been opened and are in use. To force a new open session, perform a Close Terminal Session operation which frees up the session."
then either someone else already has a console open, or a console was improperly closed. You may choose to check with your colleagues before killing the console session using this command:
rmvterm -m <managedsystemname> -p <lparname>
To close a console connection: The session can be ended by typing ~ and . as the first characters on a line.
To view state and operator panel (LED/LCD display) of an LPAR:
lssyscfg -r lpar -m <managedsystemname> -n <lparname>
To view state and operator panel (LED/LCD display) of a system running in FullSystemPartition mode (note the -n):
lssyscfg -r sys -n <managedsystemname>