0473f1517bb3099e065f4efb6fce6e3c8d67a4c8
3 # ============================================================================
5 # Copyright (C) THALES. All rights reserved
7 # * V1.0 Laurent Mazet 29/04/2013
8 # creation script de configuration de la matrice par ligne de commande
9 # ============================================================================
11 set ipmaxtrix
"10.133.28.253"
13 spawn
/opt
/trc6500
/tools
/matrix_tool
17 exec ifconfig eth1
:0 192.168.1.1 netmask
255.255.255.0
20 exec ifconfig eth1
:0 down
25 "taper la commande choisie" { send "0\r" }
26 timeout
{ send_user
"connection to $host timed out\n"; cleanexit
1 }
27 eof { send_user
"connection to host failed\n"; cleanexit
1 }
30 "timeout detected" { send_user
"can't connect on defaut ip\n"; cleanexit
1 }
31 "taper la commande choisie" { send "10\r" }
34 expect
"nouvelle adresse" { send "010.133.028.253\r" }
36 expect
"taper la commande choisie" { send "12\r" }
38 expect
"taper la commande choisie" { send "14\r" }
41 # vim:set tabstop=4 expandtab shiftwidth=4: