Skip to content

Instantly share code, notes, and snippets.

@fortitudepub
Created August 29, 2016 08:19
Show Gist options
  • Save fortitudepub/3e46295512b437af901aa3d4e7cd7824 to your computer and use it in GitHub Desktop.
Save fortitudepub/3e46295512b437af901aa3d4e7cd7824 to your computer and use it in GitHub Desktop.
onliner to check all host command result by ssh remote
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.
@fortitudepub
Copy link
Author

cat hostlist | grep compute | awk '{print $2}' | xargs -I X scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -P 1046 ./check-qdisc.sh X:~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment