hmc Commands :
1. List all Managed systems
lssyscfg -r sys -F name
2. List all managed systems and their states
lssyscfg -r sys -F name,state
3. List all LPARs on a managed system
lssyscfg -r lpar -m "<managed system name>" -F name
4. List all LPARs on a managed system AND the default startup profile
lssyscfg -r lpar -m "<managed system name>" -F name,default_profile
5. Open a vterm for an LPAR
mkvterm -m "<managed system name>" -p "<partition name>"
6. Close a vterm session for an LPAR
rmvterm -m "<managed system name>" -p "<partition name>"
7. Shutdown a LPAR (Gracefully, the equiv of shutdown -h in AIX)
chsysstate -o osshutdown -r lpar -m "<managed system name>" -n "<partition name>"
8. Shutdown a LPAR (Not gracefully, the equiv of pushing the power button)
chsysstate -o shutdown --immed -r lpar -m "<managed system name>" -n "<partition name>"
9. Startup an LPAR
chsysstate -o on -r lpar -m "<managed system name>" -n "<partition name>" -f "<profile name>"
10. Startup an LPAR to SMS (Useful for booting into maintenance mode)
chsysstate -o on -b sms -r lpar -m "<managed system name>" -n "<partition name>" -f "<profile name>"
11. Power off a managed system (Normal)
chsysstate -o off -r sys -m "<managed system name>"
11. Power off a managed system (Fast)
chsysstate -o off --immed -r sys -m "<managed system name>"
12. Power on a managed system to standby
chsysstate -o onstandby -r sys -m "<managed system name>"
13. View current operator panel code for an LPAR
lsrefcode -r lpar -m "<managed system name>" --filter "lpar_names=<lpar name>" -F refcode
14. HMC version and applied patches
lshmc -V
15. HMC VPD (Serial # is field SE)
lshmc -v
16. Reboot HMC
hmcshutdown -r -t now
17. Shutdown HMC
hmcshutdown -t now
1. List all Managed systems
lssyscfg -r sys -F name
2. List all managed systems and their states
lssyscfg -r sys -F name,state
3. List all LPARs on a managed system
lssyscfg -r lpar -m "<managed system name>" -F name
4. List all LPARs on a managed system AND the default startup profile
lssyscfg -r lpar -m "<managed system name>" -F name,default_profile
5. Open a vterm for an LPAR
mkvterm -m "<managed system name>" -p "<partition name>"
6. Close a vterm session for an LPAR
rmvterm -m "<managed system name>" -p "<partition name>"
7. Shutdown a LPAR (Gracefully, the equiv of shutdown -h in AIX)
chsysstate -o osshutdown -r lpar -m "<managed system name>" -n "<partition name>"
8. Shutdown a LPAR (Not gracefully, the equiv of pushing the power button)
chsysstate -o shutdown --immed -r lpar -m "<managed system name>" -n "<partition name>"
9. Startup an LPAR
chsysstate -o on -r lpar -m "<managed system name>" -n "<partition name>" -f "<profile name>"
10. Startup an LPAR to SMS (Useful for booting into maintenance mode)
chsysstate -o on -b sms -r lpar -m "<managed system name>" -n "<partition name>" -f "<profile name>"
11. Power off a managed system (Normal)
chsysstate -o off -r sys -m "<managed system name>"
11. Power off a managed system (Fast)
chsysstate -o off --immed -r sys -m "<managed system name>"
12. Power on a managed system to standby
chsysstate -o onstandby -r sys -m "<managed system name>"
13. View current operator panel code for an LPAR
lsrefcode -r lpar -m "<managed system name>" --filter "lpar_names=<lpar name>" -F refcode
14. HMC version and applied patches
lshmc -V
15. HMC VPD (Serial # is field SE)
lshmc -v
16. Reboot HMC
hmcshutdown -r -t now
17. Shutdown HMC
hmcshutdown -t now
No comments:
Post a Comment