diff options
Diffstat (limited to 'ups_ctl.sh')
-rwxr-xr-x | ups_ctl.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ups_ctl.sh b/ups_ctl.sh deleted file mode 100755 index 8495a59..0000000 --- a/ups_ctl.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -/usr/bin/expect -c "spawn ssh localadmin@$1 -expect \"password:\" -send \"$3\r\" -expect -timeout 60 \"localadmin>\" -send \"device\r\" -expect \"*)> \" -send \"load 1\r\" -expect \"*)> load (1)> \" -send \"$2\r\" -expect \"Are you sure? Type \\\"yes\\\" to proceed: \" -send \"yes\r\" -expect \"*)> load (1)> \" -send \"exit\r\" -expect \"*)> \" -send \"load 2\r\" -expect \"*)> load (2)> \" -send \"$2\r\" -expect \"Are you sure? Type \\\"yes\\\" to proceed: \" -send \"yes\r\" -expect \"*)> load (2)> \" -send \"exit\r\" -expect \"*)> \" -send \"exit\r\" -expect \"*> \" -send \"exit\r\" -expect \"\0\" -" - |