Last active
August 29, 2015 14:06
-
-
Save yu81/632387373cf0fcd506b5 to your computer and use it in GitHub Desktop.
Check version of bash each AWS EC2 instances written in /etc/hosts.
This file contains hidden or 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
# Check version of bash each AWS EC2 instances written in /etc/hosts. | |
# As for tomahawk options, see http://tomahawk.readthedocs.org/en/latest/tomahawk.html | |
# logged in as a user which has the same password in each server. | |
echo YOUR_COMMON_PASSWORD | | |
# execute tomahawk. | |
# yarr is one of a utility command in OpenUsp-Tukubai (https://github.com/usp-engineers-community/Open-usp-Tukubai) | |
tomahawk --login-password-stdin -c -h -t 10 \ | |
"$(awk '$0~/^(10|192|172)\./{print $1}' /etc/hosts|yarr|tr " " ",")" \ | |
'echo ${HOSTNAME} $(LANG=C yum info bash|grep amzn1|head -1)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment