2018-09-14

Finding your LPAR/s what HMC and Managed Systems it is running on

It help a lot for system administrators to run a script in order to find the LPAR is in.  And I used this whenever someone asks me to find them, so it's really quite handy.

hscroot@phmc01:~> for sys in $(lssyscfg -r sys -F "name"); do echo -e "$sys\n---"; lssyscfg -m $sys -r lpar -F "name,state"; echo; done
SYPWR02
---
DSAP24,Running
QSAP35,Running
PSAP96,Running
PVIO13B,Running
PSAP98,Running
PVIO13A,Running
DLNX03,Running

SYPWR04
---
PRD48,Not Activated
DTST04,Not Activated
PSAP32,Running
PSAP30,Running
PSAP26,Running
PSAP57,Running
PSAP55,Running
PSAP53,Running
PSAP07,Running
PSAP94,Not Activated
PSAP05,Running
PSAP92,Not Activated
PSAP90,Running
PSAP88,Running
PMQ02,Running
PSAP47,Running
PCSDK02,Running
PSAP45,Running
PNFS02,Running
PSAP35,Running
PSAP75,Not Activated
PVIO06B,Running
PSAP33,Running
PVIO06A,Running

SYPWR06
---
DSAP09,Running
QSAP05,Running
CSAP06,Running
QSAP04,Running
QSAP03,Running
QSAP22,Running
PRD45,Running
DTST03,Running
DSAP11,Running
DSAP17,Running
DSAP16,Running
DSAP15,Running
QSAP18,Running
PTWSDB01,Running
PSAP14,Not Activated

No comments:

Post a Comment