HMC操作命令(tree)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
echo "################################ Machine's CPU/Memory #######################################";lssyscfg -r sys -F name |while read xxx; do echo $xxx" "`lshwres -r proc -m $xxx --level sys -F installed_sys_proc_units`" "`lshwres -r mem -m $xxx --level sys -F installed_sys_mem`; done
echo "################################ Machine's Lpars CPU/Memory #######################################";lssyscfg -r sys -F name|while read M; do echo "";echo "======================="$M"====================";echo "lpar_name,desired_procs,desired_mem";lssyscfg -r prof -m $M -F lpar_name,desired_procs,desired_mem;done
echo "################################ Machine's Lpars IO cards sort for Units #######################################";lshwres -r io -m Server-9117-MMA-SN06395C5 -F lpar_name,drc_name,description,feature_codes --rsubtype slot | sort
echo "################################ Machine's Lpars IO cards sort for Lpar #######################################";lshwres -r io -m Server-9117-MMA-SN06395C5 -F drc_name,lpar_name,description,feature_codes --rsubtype slot | sort
echo "################################ Machine's HMC ip #######################################";lssyscfg -r sys -F name |while read xxx; do echo $xxx" "`lshwres -r proc -m $xxx --level sys -F installed_sys_proc_units`" "`lshwres -r mem -m $xxx --level sys -F installed_sys_mem`; done
lshwres -r mem -m Server-9119-595-SN83B0E00 --level lpar
#######################################################################
查看managed系统名,状态:
lssyscfg -r sys -F name,serial_num,state --header
name,serial_num
Server-9131-52A-SN0671E0G,0671E0G
Server-9131-52A-IBSweb1,0671DFG
Server-9119-595-SN838E9BD,838E9BD
Server-9110-51A-ncs2busi,063C92F
Server-9110-51A-SN063C8EF,063C8EF
Server-9133-55A-TUXEDO_APP,062239H
Server-9133-55A-HJ,06EDFAG
Server-9110-51A-SN063C94F,063C94F
Server-9110-51A-ncs2bank,063C91F
Server-9133-55A-SN06FFEDG,06FFEDG
Server-9133-55A-OD,0622DCH
Server-9133-55A-IBSHHGL,06FFDFG
Server-9119-595-SN838E98D,838E98D
Server-9131-52A-ncsapp1,0671D9G
Server-9110-51A-ncs2zwxt,063C93F
Server-9131-52A-IBSweb2,0671E6G
查看各Lpar名称、状态:
lssyscfg -r sys -F name |while read xxx; do echo '+++++'$xxx'+++++'; lssyscfg -r lpar -m $xxx -F name,lpar_id,os_version,state --header;echo ""; done
查看物理主机指示灯状态:
lsled -r sa -t phys -m Server-9119-595-SN838E98D
state=on
查看所有物理主机中亮告警灯的主机:
lssyscfg -r sys -F name |while read xxx; do echo $xxx" "`lsled -r sa -t phys -m $xxx `|grep "state=on"; done
查看各分区指示灯状态:
lsled -r sa -t virtuallpar -m Server-9119-595-SN838E98D