Tuesday, August 16, 2011

HMC command to list LPAR profile attributes

Log in HMC shell
List all profiles on one machine and it's CPU attributes.
for LPAR in `lssyscfg -r lpar -m MACHINE_NAME -F lpar_id | sort -n`
do
lssyscfg -r prof -m MACHINE_NAME --filter "lpar_ids=${LPAR}" -F "name:lpar_name:lpar_id:proc_mode:min_proc_units:desired_proc_units:max_proc_units:min_procs:desired_procs:max_procs:sharing_mode:uncap_weight" --header
done



List current values of CPU on one machine for all LPARs.

for LPAR in `lssyscfg -r lpar -m p595P_12 -F lpar_id | sort -n`
do
lshwres -m p595P_12 -r proc --level lpar --filter "lpar_ids=${LPAR}" -F "lpar_name:lpar_id:curr_shared_proc_pool_id:curr_proc_mode:curr_min_proc_units:curr_proc_units:curr_max_proc_units:curr_min_procs:curr_procs:curr_max_procs:curr_sharing_mode:curr_uncap_weight" --header
done

Helpful links:
http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/iphcx_p5/lssyscfg.htm
http://capacityreports.com/VIO/VIOCommands/hmc_commands.html
http://www.tablespace.net/quicksheet/aix-annex.html
http://aixwiki.org/wiki/HMC_Command_Line_Interface

No comments:

Post a Comment