Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
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
This mailing list archive is Copyright 1997-2026 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.