lsrefcode -m <Frame Name> -r lpar –filter "lpar_names=<LPAR Name>" -F lpar_name:refcode

or

If you want to test the lsrefcode for a entire frame then below script would be useful

for i in `lssyscfg -r sys -F name`
do
echo $i
echo “=====================”
for s in `lssyscfg -r lpar -m $i -F name`; do lsrefcode -m $i -r lpar –filter "lpar_names="$s"" -F lpar_name:refcode; done
done

You can even see the history of LED codes. Just use -n for the last NUM codes. For example, if you want to see the last 5 LED codes of an LPAR type

lsrefcode -m <Frame Name> -r lpar --filter "lpar_names=<LPAR Name>" -n 5 -F lpar_name:refcode
Advertisements