× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



or use the redirection to a PF or a source file
add the following to the end of your QSH command

> /qsys.lib/qgpl.lib/hmc1.file/hmc1.mbr

Bryan


Marc Rauzier wrote on 5/28/2015 4:04 PM:
Le 28/05/2015 21:19, rob@xxxxxxxxx a écrit :
and how would you get that list back to the lpar of IBM i requesting it?

IOW, let's say that this
QSH CMD('ssh -T hscroot@xxxxxxxxxxxxxxxxxxxx lssyscfg -r lpar -m RACK2 -F
name,lpar_id,state')
returns this
TSMAIX2,8,Running
MAILTWO,7,Running
GDISYS2,6,Running
GDIHQ2,5,Running
GDWEB2,4,Running
RACK2HST,3,Running
vios22,2,Running
vios21,1,Running

Now I need this back on IBM i.
I could redirect it to a file on the HMC by appending >outfile.txt or
some
such thing but then I have to figure out how to ftp, nfs or otherwise get
it there.

Did you try
qsh cmd('ssh -T hscroot@xxxxxxxxxxxxxxxxxxxx lssyscfg -r lpar -m RACK2
-F name,lpar_id,state > /tmp/RACK2partitions.txt') ?
I am at home now and cannot check the appropriate syntax (will look at
it tomorrow), but I believe it will create the text file on the IBMi
partition, not on the HMC, because the redirection applies to ssh
command not the lssyscfg command.

I could overridde stdout to a text file or physical file. Which is what
I'm leaning towards.
But I'm open to other suggestions.

Rob Berendt

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.