Created
August 29, 2016 08:19
-
-
Save fortitudepub/3e46295512b437af901aa3d4e7cd7824 to your computer and use it in GitHub Desktop.
onliner to check all host command result by ssh remote
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
cat hostlist | grep compute | awk '{print $2}' | xargs -I X > all_drops.txt 2>&1 ssh X -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 1046 source check-qdisc.sh | |
BTW: | |
using the same command while using SCP to upload the script to each host. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cat hostlist | grep compute | awk '{print $2}' | xargs -I X scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -P 1046 ./check-qdisc.sh X:~