diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-07-05 06:46:09 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-07-05 06:46:09 +0200 |
commit | d65dd50278fec1b253fcd3fe4cfcdab533f20cc8 (patch) | |
tree | c7d91ab246242b85b41267d110150be0ec40fd31 /config.sh | |
download | ipmiboot-d65dd50278fec1b253fcd3fe4cfcdab533f20cc8.tar.gz ipmiboot-d65dd50278fec1b253fcd3fe4cfcdab533f20cc8.tar.bz2 ipmiboot-d65dd50278fec1b253fcd3fe4cfcdab533f20cc8.tar.xz ipmiboot-d65dd50278fec1b253fcd3fe4cfcdab533f20cc8.zip |
Spliting from Ands
Diffstat (limited to 'config.sh')
-rw-r--r-- | config.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..f60c8a6 --- /dev/null +++ b/config.sh @@ -0,0 +1,28 @@ +sleep=0.5 +itm=~/devops/itm/ +user="ADMIN" +passpath="KIT/Ands/ipmi" + +if [[ $0 =~ "ipmi-katrin.sh" ]]; then + [ -n "$servers" ] || servers=$(seq 1 3) + iip=$(for i in $servers ; do echo "192.168.26.4$i" ; done) + hip=$(for i in $servers ; do echo "192.168.26.$i" ; done) +elif [[ $0 =~ "ipmi-camera.sh" ]]; then + [ -n "$servers" ] || servers=$(seq 3 4) + iip=$(for i in $servers ; do echo "192.168.26.10$i" ; done) + hip=$(for i in $servers ; do echo "192.168.26.8$i" ; done) + passpath="KIT/Ands/ipmi-desktop" +elif [[ $0 =~ "ipmi-student.sh" ]]; then + [ -n "$servers" ] || servers=$(seq 1 7) + hip=$(for i in $servers ; do echo "192.168.26.6$i" ; done) +elif [ -n "$servers" ]; then + iip=$(for i in $servers ; do echo "192.168.26.$i" ; done) + hip=$(for i in $servers ; do echo "192.168.26.$i" ; done) +elif [ -n "$1" ]; then + iip=$1 + hip=$1 + shift +else + echo "No server is specified..." + exit +fi |