##### lpar OS shutdown hmc:~> chsysstate -r lpar -m Server-9179-MHB-SN123456P -o osshutdown --immed -n SERVER3 ##### lpar hard shutdown hmc:~> chsysstate -r lpar -m Server-9179-MHB-SN123456P -o shutdown --immed -n SERVER3 ##### lpar start with a chosen profile hmc:~> chsysstate -r lpar -m Server-9179-MHB-SN123456P -o on -f PROFILE9 -n SERVER9 ##### lpar start to SMS menu. hmc:~> chsysstate -r lpar -b sms -o on -f PROFILE9 -m Server-9179-MHB-SN123456P -n SERVER9 ##### unbind not-activated lpar resources from hypervisor hmc:~> chhwres -m Server-9179-MHB-SN123456P -r proc -o r -p SERVER5 --procunits 0.3 ##### display profile info lssyscfg -r prof -m Server-9179-MHB-SN123456P --filter lpar_names=SERVER9 ##### display lpar info lssyscfg -r lpar -m Server-9179-MHB-SN123456P --filter lpar_names=SERVER9 ##### save LPAR config to profile mksyscfg -r prof -m Server-9179-MHB-SN123456P -o save -p PROFILE9 -n SERVER9 --force ##### lpar virtual-scsi config hmc:~> lshwres -r virtualio --rsubtype scsi -m Server-9179-MHB-SN123456P --filter "lpar_names=SERVER1" -F --header lpar_name,lpar_id,slot_num,state,is_required,adapter_type,remote_lpar_id,remote_lpar_name,remote_slot_num,backing_devices,connect_status,backing_device,server_loc_code,active_loc_code,active_lpar_id,active_lpar_name,active_slot_num,remote_backing_device,topology SERVER1,33,2,1,0,client,1,VIO1,33,null,active,"hdisk1, hdisk2, hdisk3, hdisk1, hdisk3",U9179.MHB.123456P-V1-C33,U9179.MHB.123456P-V33-C2-T1,1,VIO1,33,",hdiskpower97,hdiskpower99","/Active/vscsi0/vhost14//,hdisk2/Missing/vscsi0/vhost14//hdiskpower97,hdisk1/Active/vscsi0/vhost14//hdiskpower97,hdisk3/Active/vscsi0/vhost14//hdiskpower99" SERVER1,33,3,1,0,client,2,VIO2,33,null,active,"hdisk0, hdisk2, hdisk1, hdisk3, hdisk1, hdisk3",U9179.MHB.123456P-V2-C33,U9179.MHB.123456P-V33-C3-T1,2,VIO2,33,",hdiskpower97,hdiskpower99","/Active/vscsi1/vhost14//,hdisk2/Missing/vscsi1/vhost14//hdiskpower97,hdisk1/Active/vscsi1/vhost14//hdiskpower97,hdisk3/Active/vscsi1/vhost14//hdiskpower99,hdisk0/Missing/vscsi1/vhost14//hdiskpower99" hmc:~> ##### display cpu pools hmc:~> lshwres -m Server-9179-MHB-SN123456P -r procpool name=DefaultPool,shared_proc_pool_id=0,"lpar_names=SERVER1,SERVER2,SERVER3","lpar_ids=61,60,59" name=WASTSTPool0,shared_proc_pool_id=1,max_pool_proc_units=3.0,curr_reserved_pool_proc_units=0.0,pend_reserved_pool_proc_units=0.0,"lpar_names=SERVER4","lpar_ids=9" name=WASPRDPool0,shared_proc_pool_id=2,max_pool_proc_units=25.0,curr_reserved_pool_proc_units=0.0,pend_reserved_pool_proc_units=0.0,"lpar_names=SERVER5,SERVER6","lpar_ids=40,67" hmc:~> hmc:~> lshwres -m Server-9179-MHB-SN123456R --level lpar -r proc -F lpar_name,pend_shared_proc_pool_name SERVER1,DefaultPool SERVER2,DefaultPool SERVER3,DefaultPool SERVER4,WASTSTPool SERVER5,WASPRDPool SERVER6,WASPRDPool hmc:~> ##### display WWN of LPAR hmc:~> lshwres -r io --rsubtype slotchildren -m Server-9179-MHB-SN123456P | grep SERVER7 phys_loc=U5802.001.00B5368-P1-C1-T2,lpar_id=35,lpar_name=SERVER7,description=8 Gigabit PCI-E Dual Port Fibre Channel Adapter,pci_vendor_id=10DF,pci_device_id=F100,pci_subs_device_id=038A,pci_subs_vendor_id=1014,pci_class=0C04,pci_revision_id=0003,wwpn=10000000c9a8bf69,wwnn=20000000c9a8bf69,parent_drc_index=21010150,parent=U5802.001.00B5368-P1-C1,device_type=PCIFunction,programming_interface=00,is_primary_dev_function=0,serial_num=1C041081FF,part_num=10N9824,slot_child_id=14,parent_slot_child_id=none hmc:~> ##### pool cpu usage hmc:~> lslparutil -r procpool -m Server-9179-MHB-SN123456R -h 1 --filter "event_types=sample,pool_names=WASPRDPool" -F time,total_pool_cycles,utilized_pool_cycles | head -2 04/02/2015 00:07:30,74899548402623305,38658571405354072 04/02/2015 00:06:30,74899394762709615,38658508545305264 hmc:~> ##### lpar cpu usage hmc:~> lslparutil -m Server-9179-MHB-SN123456R -r lpar --filter "lpar_names=SERVER2" -h 1 -F time,lpar_name,capped_cycles,uncapped_cycles,entitled_cycles,time_cycles | head -2 04/02/2015 10:28:30,SERVER2,28511336932013820,8905023304217607,43298760778344233,17732339969158847 04/02/2015 10:27:30,SERVER2,28511256624895377,8905014513965129,43298668592831816,17732309240730790 hmc:~> ##### List all open serviceable events lssvcevents -t hardware --filter status=open ##### List all open serviceable events for a managed system lssvcevents -t hardware -m Server-9179-MHB-SN123456P --filter status=open ##### Close all serviceable events chsvcevent -o closeall