is this script running on the primary blade?
Published Oct 29, 2019
Version 1.0Was this article helpful?
This returns "2" on both blade 1 and blade 2 of a test cluster running 13.1.1.4, where blade 2 is currently master.
Here's the same in just awk:
/usr/sbin/bladectl -g leds | /bin/awk '/slot.*Primary LED.*solid.*Green*/ {gsub(":","",$2);print $2}'