From 78d758a85d74380af09f85f367f0ff38ea6b4eff Mon Sep 17 00:00:00 2001 From: Marcel Stangenberger Date: Sun, 18 Jun 2023 13:52:25 +0000 Subject: [PATCH] Add 'doit.sh' --- doit.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doit.sh diff --git a/doit.sh b/doit.sh new file mode 100644 index 0000000..7e291ce --- /dev/null +++ b/doit.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ $# -gt 0 ]; then + for h in $*; do + hosts="$hosts `dig +short +search $h`" + done +else + hosts=`awk '/^[0-9]+.*# # Linux/ { print $2; }' /usr/local/bb/etc/bb-hosts` +fi + +for h in $hosts ; do + echo "$h (`host $h | awk '{print $5;}'`)" + scp /usr/local/operations/linux/evault/Agent-Linux-latest.tar.gz $h: + ssh -qT $h < no + ./install.sh -s -D < no + ) + rm -rf /tmp/Agent+WCC-6.73.3196-Linux-i386-stdc++v3_6 + rm -f Agent-Linux-latest.tar.gz +EOF +done \ No newline at end of file