LPAR level commands, all
start with "lpar". After EZH install, type "lpar" and hit tab twice
to see all commands listed |
Function
| EZH Command
| HMC Native Command
|
Open a virtual terminal
| lparconsole aix1
| mkvterm -m p520 -p aix1
|
Close a virtual terminal
| lparconsoleclose aix1
| rmvterm -m p520 -p aix1
|
Show LPAR/profile info
| lparinfo aix1
| lssyscfg -r prof -m p520 --filter lpar_names=aix1 lssyscfg -r lpar -m p520 --filter lpar_names=aix1
|
Show command to re-create LPAR (Can be used to easily clone LPAR)
| lparclone aix1
| No native HMC command available
|
Show frame an LPAR is on
| lparframelookup aix1
| No native HMC command available
|
Display list of LPAR's and Managed systems and there current state
| lparls
| No native HMC command available
|
Save running LPAR configuration to profile
| lparsaveconfig aix1
| mksyscfg -r prof -m p520 -o save -p aix1 -n aix1 --force
|
Run VIO command (" lsmap -all" in this example)
| lparviorun vio1 lsmap -all
| viosvrcmd -m p520 -p vio1 -c "lsmap -all"
|
Power on LPAR
| lparpoweron aix1
| chsysstate -r lpar -o on -f aix1 -m p520 -n aix1
|
Power on LPAR to SMS
| lparpoweronsms aix1
| chsysstate -r lpar -b sms -o on -f aix1 -m p520 -n aix1
|
Power off LPAR - Operating System shutdown
| lparshutdownos aix1
| chsysstate -r lpar -o osshutdown --immed -m p520 -n aix1
|
Power off LPAR - hard shutdown
| lparshutdownhard aix1
| chsysstate -r lpar -o shutdown --immed -m p520 -n aix1
|
Delete LPAR
| lpardelete aix3
| rmsyscfg -r lpar -m p520 -n aix3
|
List LPAR system attention LED status
| lparlsled aix1
| lsled -m p520 -r sa -t virtuallpar --filter lpar_names=aix1
|
Clear LPAR system attention LED
| lparclearled aix1
| chled -m p520 -r sa -t virtuallpar -o off -p aix1
|
Managed system level commands, all start with "frame". After EZH install, type "frame" and hit tab twice to see all commands listed
|
Function | EZH Command
| HMC Native Command
|
List managed systems attached to HMC
| framels
| lssyscfg -r sys -F name
|
Power on managed system
| framepoweron p520
| chsysstate -m p520 -r sys -o on
|
Power off managed system
| framepoweroff p520
| chsysstate -m p520 -r sys -o off
|
List attention LED status on managed system
| framelsled p520
| lsled -m p520 -r sa -t phys
|
Clear attention LED on managed system
| frameclearled p520
| chled -m p520 -r sa -t phys -o off
|
List managed system details, CPU, and memory
| frameinfo p520
| lssyscfg -r sys -m p520 lshwres -r proc -m p520 --level sys lshwres -r mem -m p520 --level sys
|
List servicable events for a managed system
| framelsevents p520
| lssvcevents -t hardware -m p520 --filter status=open
|
Misc. Commands
|
Edit a file
| vi
| rnvi -f
|
Check disk usage
| df
| monhmc -n 0 -r disk
|
Source a file
| .
| source
|
List LED status of all frames and LPAR's
| lsledall
| No native HMC command available
|
List open serviceable events
| lsevents
| lssvcevents -t hardware --filter status=open
|
Close all serviceable events
| closeallevents
| chsvcevent -o closeall
|
Show HMC version
| hmcversion
| lshmc -V
|
Reboot HMC
| hmcrestart
| hmcshutdown -t now -r
|