Am I a WPAR? (workload partition) or just a regular AIX?
nagger 100000MRSJ Visits (7728)
How can we tell (in a script) if we are running in a WPAR or a regular AIX?
We also called it the Global AIX, if its running WPARs. It took me a good few minutes to find out how to do it and thought I would shared it to save you time: Use: uname -W
It returns 0 for the Global AIX and a regular AIX or if it is in a WPAR it returns the WPAR Number (i.e. non-zero)
Below we show how to use this in a script.
if (( $wparno == "0" ))
echo Global AIX
echo WPAR number $wparno