The command below returns:
/usr/es/sbin/cluster/utilities/cldump |grep STABLE
either
Cluster Substate: STABLE
or
Cluster Substate: UNSTABLE
What I want is to get the word (STABLE or UNSTABLE) as $CLSTATE so that the result can show on the e-mail subject line.
mail -s "$SYSNAME State = $CLSTATE" .......
thx much
/usr/es/sbin/cluster/utilities/cldump |grep STABLE
either
Cluster Substate: STABLE
or
Cluster Substate: UNSTABLE
What I want is to get the word (STABLE or UNSTABLE) as $CLSTATE so that the result can show on the e-mail subject line.
mail -s "$SYSNAME State = $CLSTATE" .......
thx much