Hi, there is no direct interface to HWILIST in address HWS to list the LPAR's, however if you are running the OPS/MVS 13.5 and the OPSBCPII Server you can list the HMC Network's topology and parse the results as you desire. Here's a bit of code that allows this:
/* REXX */
ADDRESS TSO
"OPSCMD C('F OPPTMBCP,DIS.OPSZ TOPOLOGY')"
DO Queued() /* Returns command results */
PULL msg
SAY msg
END
In this case, OPSZ is my OPS subsystem id and OPPTMBCP is the OPSBCPII Server PROC name. If you are using HISRV it would look like this:
/* REXX */
ADDRESS TSO
"OPSCMD C('F OPPTMHIS,SHOW HWITOP')"
DO Queued() /* Returns command results */
PULL msg
SAY msg
END
Original Message:
Sent: 12-19-2019 05:08 AM
From: ALPAERTS
Subject: no HWILIST in address HWS ?
Hello All,
what is the recommended way to obtain a list of lpar names on one or more cpc's with OPS Rexx?
In IBM system rexx I would use
ListImages:
PARSE ARG ConnectToken
ListType = HWI_LIST_IMAGES
ImageList. = 'Image names will be listed here'
address bcpii "hwilist ",
"ReturnCode ",
"ConnectToken ",
"ListType ",
"ImageList. ",
"DiagArea."
Can I do the same with address HWS ?
The doc for address HWS says I can do SENDCMD|GETATTR|SETATTR, HWILIST is not an option.
Thanks, Tim.