summaryrefslogtreecommitdiffstats
path: root/config.sh
blob: ccf0d0b9bf6577755acbc544a3a753b7b0dba2fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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-ands.sh" ]]; then
    [ -n "$servers" ] || servers=$(seq 0 0)
    iip=$(for i in $servers ; do echo "192.168.26.16$i" ; done)
    hip=$(for i in $servers ; do echo "192.168.26.14$i" ; done)
elif [[ $0 =~ "ipmi-compute.sh" ]]; then
    [ -n "$servers" ] || servers=$(seq 1 4)
    iip=$(for i in $servers ; do echo "192.168.26.15$i" ; done)
    hip=$(for i in $servers ; do echo "192.168.26.13$i" ; done)
    passpath="KIT/Ands/ipmi-compute"
elif [[ $0 =~ "ipmi-camera.sh" ]]; then
    [ -n "$servers" ] || servers=$(seq 3 6)
    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