summaryrefslogtreecommitdiff
path: root/ups_ctl_t.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ups_ctl_t.sh')
-rwxr-xr-xups_ctl_t.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/ups_ctl_t.sh b/ups_ctl_t.sh
deleted file mode 100755
index 89e6c81..0000000
--- a/ups_ctl_t.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-/usr/bin/expect -c "spawn telnet $1 5214
-expect \"login: \"
-send \"localadmin\r\"
-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\"
-"
-