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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HMC - command line

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
I am trying to find how to run "lssyscfg" comamnd to get a PROFILE NAME(s) defined on a DESIRED PARTITION/LPAR.

none of lssyscfg examples from "manual" return the name of a profile name (profile name - not partition name)
 
from man page examples:


List all partition profiles defined for partition lpar2:

lssyscfg -r prof -m system1 --filter "lpar_names=lpar2"


List the partition profiles prof1 and prof2 defined for the partition that has an ID of 2:

lssyscfg -r prof -m system1 --filter "lpar_ids=2, "profile_names=prof1,prof2""

You need to escape embedded quotes in the filter --string...

HTH,

p5wizard
 
p5wizard,

you gave exactly the commad I had used.

I can't find a profile NAME on the output of the fist comamnd you sent.

I need to ensure what profile name(s) are configured for the LPAR to be able successfuly power on this lpar (I have no HMC GUI access from home).

I thought that I know the profile name, but going to power on a LPAR with command:

chsysstate -m <machine> -o on -r lpar -n <lpar name> -f <profile>

(where <profile> I expected is labeled Normal)

I get error that the profile doesn't exist for this partition.



 
here is the error I get:

HSCL05E7 The profile you tried to activate does
not belong to the partition {0} you
specified. Select the correct LPAR
profile.
Verify that you selected the correct
LPAR profile to activate.
 
ok, it does it:

lssyscfg -r lpar -m "MANAGEDSYS" --filter "lpar_names=lparname"


I've found it here:

for MANAGEDSYS in `lssyscfg -r sys -F type_model*serial_num`
do
echo "============MANAGED SYSTEM --> ${MANAGEDSYS}"
for LPAR in `lssyscfg -r lpar -m ${MANAGEDSYS} -F name`
do
echo " ============LPAR --> ${LPAR} --> CPU resources"
lshwres -r proc -m ${MANAGEDSYS} --level lpar --filter lpar_names=${LPAR}

echo " ============LPAR --> ${LPAR} --> Memory resources"
lshwres -r mem -m ${MANAGEDSYS} --level lpar --filter lpar_names=${LPAR}

echo " ============LPAR --> ${LPAR} --> Physical adapters"
lshwres -r io --rsubtype slot -m ${MANAGEDSYS} --filter lpar_names=${LPAR}

echo " ============LPAR --> ${LPAR} --> Virtual Ethernet config"
lshwres -r virtualio --rsubtype eth --level lpar -m ${MANAGEDSYS} --filter lpar_names=${LPAR}

echo " ============LPAR --> ${LPAR} --> Virtual SCSI config"
lshwres -r virtualio --rsubtype scsi --level lpar -m ${MANAGEDSYS} --filter lpar_names=${LPAR}

echo " ============LPAR --> ${LPAR} --> LPAR config"
lssyscfg -r lpar -m ${MANAGEDSYS} --filter lpar_names=${LPAR}

echo " ============LPAR --> ${LPAR} --> LPAR profiles"
lssyscfg -r prof -m ${MANAGEDSYS} --filter lpar_names=${LPAR}
done
done
 
ok, the first command is also ok.

someone changed the profile name from Normal to a lpar name.

thx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top