I am trying to communicate with the HMC. I am making good progress. I
can now do:
QSH CMD('ssh -T hscroot@xxxxxxxxxxxxxxxxxxxx lssyscfg -r lpar -m RACK2
--filter "lpar_names=RACK2HST" -F name,lpar_id,state')
and I get:
RACK2HST,3,Running
Press ENTER to end terminal session.
But when I try more lpar names I get:
QSH CMD('ssh -T hscroot@xxxxxxxxxxxxxxxxxxxx lssyscfg -r lpar -m RACK2
--filter "lpar_names=RACK2HST,GDWEB2" -F name,lpar_id,state')
The command entered has a malformed filter. The --filter parameter has
the f
orm "<filter name 1>=<value>,<filter name 2>=<value>,..." or ""<filter
name 1
=<value 1>,<value 2>,...",..." . Please correct the filter and retry the
co
mmand. Note that depending on the shell being used, any nested double
quote
characters may need to be preceded by an escape character, which is
usually a
'\' character.
Press ENTER to end terminal session.
I got the same error with:
QSH CMD('ssh -T hscroot@xxxxxxxxxxxxxxxxxxxx lssyscfg -r lpar -m RACK2
--filter \""lpar_names=RACK2HST,GDWEB2,GDIHQ2,GDISYS2,MAILTWO\"" -F
name,lpar_id,state')
From the command line specifications available at:
https://www-304.ibm.com/webapp/set2/sas/f/hmcl/resources.html
List the partitions lpar1, lpar2, and lpar3:
lssyscfg -r lpar -m system1 --filter ""lpar_names=lpar1,
lpar2,lpar3""
List only the names, IDs, and states of partitions lpar1, lpar2, and
lpar3, and separate the output values with
a comma:
lssyscfg -r lpar -m system1 --filter ""lpar_names=lpar1,
lpar2,lpar3"" -F name,lpar_id,state
This works:
lssyscfg -r lpar -m RACK2 -F name,lpar_id,state
TSMAIX2,8,Running
MAILTWO,7,Running
GDISYS2,6,Running
GDIHQ2,5,Running
GDWEB2,4,Running
RACK2HST,3,Running
vios22,2,Running
vios21,1,Running
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.