Created
September 14, 2015 12:32
-
-
Save e-minguez/57b21bb9193d6ffccc0e to your computer and use it in GitHub Desktop.
one liner to get the node running a specific service in pacemaker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "cat /crm_mon/resources/resource[@id='RESOURCENAME']/node/@name" | xmllint --nocdata --shell <(pcs status xml) | awk -F= '/name/ { print $2 }' | tr -d '"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment