Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

very useful hmc oneliners especially having planty P5 systems managed 1

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
After importing it to an excel sheet I have really good view what is in which slot, which slot is empty, which slot is configured in which lpar, etc... - for all my P5 systems.

All slots configuration - what is in it etc.
Code:
lssyscfg -r sys -F name | while read mngsys; do lshwres -r io --rsubtype slot -F unit_phys_loc:phys_loc:lpar_name:description --header -m $mngsys | sed "s/^/$mngsys:/"; done

CPU usage by LPARs:
Code:
lssyscfg -r sys -F name | while read mngsys; do lshwres -r proc --level lpar -F lpar_name:curr_min_procs:curr_procs:curr_max_procs:pend_min_procs:pend_procs:pend_max_procs:run_procs --header -m $mngsys | sed "s/^/$mngsys:/"; done

Memory usage by LPARs:
Code:
lssyscfg -r sys -F name | while read mngsys; do lshwres -r mem --level lpar -F lpar_name:curr_min_mem:curr_mem:curr_max_mem:pend_min_mem:pend_mem:pend_max_mem:run_min_mem:run_mem --header -m $mngsys | sed "s/^/$mngsys:/"; done

Total CPU configuration on managed P5 systems:
Code:
lssyscfg -r sys -F name | while read mngsys; do lshwres -r proc --level sys -F configurable_sys_proc_units:curr_avail_sys_proc_units:pend_avail_sys_proc_units:installed_sys_proc_units:deconfig_sys_proc_units:min_proc_units_per_virtual_proc:max_virtual_procs_per_lpar --header -m $mngsys | sed "s/^/$mngsys:/"; done

Total memory configuration on managed P5 systems:
Code:
lssyscfg -r sys -F name | while read mngsys; do lshwres -r mem --level sys -F configurable_sys_mem:curr_avail_sys_mem:pend_avail_sys_mem:installed_sys_mem:deconfig_sys_mem:sys_firmware_mem:mem_region_size --header -m $mngsys | sed "s/^/$mngsys:/"; done


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top