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

moving/adding CD device to an LPAR

Status
Not open for further replies.

saucyboy

Technical User
Feb 23, 2006
78
US
Hi Guys

I have a P570 with 5 Lpars - the cd device i don't think has been added to any of them.
Phyiscally i can see the device.
How do I add the device to an LPAR?

:)
 
look at this line of script

ssh $HMCUSER@$HMC lshwres -r io --rsubtype slot -m \"$SYSTEM\" -F drc_name:drc_index | awk -F: '$1 == "'$SLOT'" {print $2}')


This runs on HMC as this ssh to HMC there check the slot, it uses the awk command after | sign,

I just want to know how Khalid use this, on HMC as when i run awk command it gives "bash: awk: command not found"

Thanks and Regards to all
 
First of all, this script was provided by the IBM consultant who came to configure our P5 570s machines (abubasim) just to give him credit on that.

It seems that the awk command runs on the LPAR not on the HMC! I just tested it again with different command:

DRC=$(ssh hscroot@p5hmc ls -al | awk '{ printf $9 }')

Then i echoed $DRC and i got the list of the files!

Regards,
Khalid
 
Dear Khali may be u r saying 100% correct. i will check it and can u give me your email if u don't mind
 
Dear Khalid may be u r saying 100% correct. i will check it and can u give me your email if u don't mind
 
I'm not sure if it is allowed to give away email addresses but you can email me on this:

khalidtektips@alayam.com

Regards,
Khalid
 
[tt]
ssh $HMCUSER@$HMC lshwres -r io --rsubtype slot -m \"$SYSTEM\" -F drc_name:drc_index | awk -F: '$1 == "'$SLOT'" {print $2}')
[/tt]

[tt]
ssh user@hmc lshwres ...[red]# this part runs from a machine via an ssh session on the hmc[/red]
| awk 'awkprogram' [red]# this part runs on the machine that you ssh from[/red]
[/tt]

there is no awk necessary on the HMC


HTH,

p5wizard
 
aixos,

Sorry i gave you the wrong email address! Just remove the 's' out!

Regards,
Khalid
 
Thanks to all of you, its my pleasure that all of u help a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top