Commit 11b8d01b authored by Michael Völske's avatar Michael Völske

update betamng-status command

parent 3d2c0876
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
scriptPath=${0%/*} scriptPath=${0%/*}
. "$scriptPath"/../../libs/bashhelper.sh . "$scriptPath"/../../libs/bashhelper.sh
check_tools "ssh" check_tools "sshpass" "ssh" "xargs"
# #
# Define usage screen. # Define usage screen.
...@@ -26,7 +26,18 @@ Usage: ...@@ -26,7 +26,18 @@ Usage:
# #
# #
main() { main() {
"$scriptPath/pssh.sh" "racadm serveraction powerstatus"
read_password "Enter betamng password:" SSHPASS
export SSHPASS
seq -f "betamng%03.0f" 1 135 \
| xargs -n1 -P0 -I% bash -c ' \
echo -e % \\t $( \
sshpass -e ssh \
-o StrictHostkeyChecking=no -o UserKnownHostsFile=/dev/null \
webis@%.medien.uni-weimar.de \
racadm serveraction powerstatus 2>/dev/null ) ' \
| sort
#"$scriptPath/pssh.sh" "racadm serveraction powerstatus"
} }
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment