adapt for ipmi wake
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Thu, 16 Jun 2016 12:53:04 +0000 (14:53 +0200)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Thu, 16 Jun 2016 12:53:32 +0000 (14:53 +0200)
master/etc/init.d/ipmiwake
master/opt/ipmi/update_blade_cfg.sh
master/opt/tftp/sw.txt
master/opt/tftp/swg1.txt
master/opt/tftp/swg2.txt
master/opt/tftp/swm.txt

index 541f363d4d83d38393e3b7bb0dbff0190daa11b0..8f2da33a5747d6c2dfe53819f1d6f2f4e67e16cd 100755 (executable)
@@ -33,10 +33,10 @@ do_action () {
 
     log_action_msg "Send IPMI boot $ACTION command"
 
-    ip addr add 10.133.25.1/24 dev eth0
+    ip addr add 10.133.29.1/24 dev eth0
 
     for mac in $(awk '{sub(/#.*/, "")} /host\s+trc[0-9]/ && ! /-rf/ { gsub(/[;{}]/, " "); print $5}' $DHCPCONF); do
-       ipmi=$(awk '{sub(/#.*/, "")} /'$mac'/ {print}' $DHCPCONF | sed 's/.* [0-9.]*\.\([0-9][0-9]*\)[^0-9].*/10.133.25.\1/')
+       ipmi=$(awk '{sub(/#.*/, "")} /'$mac'/ {print}' $DHCPCONF | sed 's/.* [0-9.]*\.\([0-9][0-9]*\)[^0-9].*/10.133.29.\1/')
         host=$(awk '{sub(/#.*/, "")} /'$mac'/ {gsub(/[{}]/, " "); print $2}' $DHCPCONF)
         log_action_msg "Wake-up $host (IPMI boot $ACTION $ipmi)"
         ipmipower --session-timeout=$TIMEOUT -h $ipmi -u ADMIN -p ADMIN --$ACTION &
@@ -44,7 +44,7 @@ do_action () {
 
     wait
 
-    ip addr del 10.133.25.1/24 dev eth0
+    ip addr del 10.133.29.1/24 dev eth0
 }
 
 case "$1" in
index 81deeb0dccecbd7e176ee0258f3619a8a616226c..39d5edc0ce2e823d4f6fb6a7f7172ccfcb22ac35 100755 (executable)
@@ -59,10 +59,11 @@ title "Host ID: $ID"
 title "Configure IPMI"
 do_cmd $mydir/ipmicfg.sh -dhcp off
 do_cmd $mydir/ipmicfg.sh -vlan off
-do_cmd $mydir/ipmicfg.sh -m 10.133.25.$ID
+do_cmd $mydir/ipmicfg.sh -m 10.133.29.$ID
 do_cmd $mydir/ipmicfg.sh -k 255.255.248.0
-do_cmd $mydir/ipmicfg.sh -g 10.133.26.231
-do_cmd $mydir/ipmicfg.sh -g 0.0.0.0
+do_cmd ipmitool lan set 1 defgw ipaddr 10.133.26.231
+do_cmd ipmitool lan set 1 bakgw ipaddr 10.133.28.231
+#do_cmd $mydir/ipmicfg.sh -g 0.0.0.0
 fanmode=$($mydir/ipmicfg.sh -fan 2>/dev/null | awk -F: '$2 ~ /Optimal/ {print $1}')
 [ "$fanmode" ] && do_cmd $mydir/ipmicfg.sh -fan $fanmode
 [ "$(which ipmitool)" ] && do_cmd ipmitool chassis policy  always-on
index cb01ca193277d38a8d4b618683ef24d5fda2ed58..a1a4c74e48c777ae0ae21e3fe206b180ed0d81dc 100644 (file)
@@ -22,7 +22,7 @@ enable secret 5 $1$OMTZ$xM5SrEPag4m7MGrV1u86/0
 !
 !
 macro name VERSION
-macro description 2.4
+macro description 2.5
 @
 !
 no aaa new-model
@@ -358,7 +358,7 @@ interface TenGigabitEthernet1/51
 interface TenGigabitEthernet1/52
 !
 interface Vlan1
- ip address 10.133.28.231 255.255.255.0
+ ip address 10.133.28.231 255.255.254.0
  ip pim sparse-mode
 !
 interface Vlan10
index 1fc0598fb9da259e5953fdd04f625a8fe1775fe7..bfa4cbf852349702336d9834eb03ad876544a69b 100644 (file)
@@ -22,7 +22,7 @@ enable secret 5 $1$OMTZ$xM5SrEPag4m7MGrV1u86/0
 !
 !
 macro name VERSION
-macro description 2.3 full-duplex
+macro description 2.4
 @
 !
 no aaa new-model
@@ -322,7 +322,7 @@ interface TenGigabitEthernet1/52
  switchport mode access
 !
 interface Vlan1
- ip address 10.133.26.231 255.255.255.0
+ ip address 10.133.26.231 255.255.248.0
  ip pim dense-mode
 !
 ip http server
index 7dc952d41b3e3919ec4c9ddd5a90ef83406ac2e3..39bed30ad216dc9fc0522a40a14a0bb8d56dc2e5 100644 (file)
@@ -22,7 +22,7 @@ enable secret 5 $1$OMTZ$xM5SrEPag4m7MGrV1u86/0
 !
 !
 macro name VERSION
-macro description 2.3
+macro description 2.4
 @
 !
 no aaa new-model
@@ -317,7 +317,7 @@ interface TenGigabitEthernet1/51
 interface TenGigabitEthernet1/52
 !
 interface Vlan1
- ip address 10.133.26.232 255.255.255.0
+ ip address 10.133.26.232 255.255.248.0
  ip pim dense-mode
 !
 ip http server
index c6356901ea45c245432b215060d198ef9af1be9f..f3eca337ecd33925302b6185c6573c699a3695b7 100644 (file)
@@ -22,7 +22,7 @@ enable secret 5 $1$OMTZ$xM5SrEPag4m7MGrV1u86/0
 !
 !
 macro name VERSION
-macro description 2.3
+macro description 2.4
 @
 !
 no aaa new-model
@@ -324,7 +324,7 @@ interface TenGigabitEthernet1/51
 interface TenGigabitEthernet1/52
 !
 interface Vlan1
- ip address 10.133.28.231 255.255.255.0
+ ip address 10.133.28.231 255.255.254.0
  ip pim sparse-mode
 !
 interface Vlan10