I just put double quotes around $mngsys as below.

I worked but I do not have spaces in the name


lssyscfg -r sys -F name | sort | while read mngsys; do lssyscfg -r
lpar -F lpar_id,name,state,lpar_env -m "$mngsys"
| sort -n | sed 's/^/'$mngsys',/'; done


Bryan


Jim Oberholtzer wrote on 6/11/2015 10:22 AM:
On a support call (last month) for a P8 that was not cooperating with a
network IBM i installation I was told by IBM that "/" and spaces were not
allowed in the system name, even though the HMC does not stop you from using
them. I get the "/", but the space caught me off guard.

--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
DrFranken
Sent: Thursday, June 11, 2015 9:07 AM
To: Midrange Systems Technical Discussion
Subject: Re: Communicating with HMC, Was: Power Handling program?

Hmmm. Nice idea but fails when managed systems have spaces in the name.

Thoughts?


- Larry "DrFranken" Bolhuis

www.frankeni.com
www.iDevCloud.com
www.iInTheCloud.com

On 6/10/2015 3:03 PM, Bryan Dietz wrote:

lssyscfg -r sys -F name | sort | while read mngsys; do lssyscfg -r
lpar -F lpar_id,name,state,lpar_env -m $mngsys
| sort -n | sed 's/^/'$mngsys',/'; done
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.