Currently browsing tag

expect

Using expect script to power on IBM blades

#!/usr/bin/expect -f spawn ssh root@bcmm.liho.tw expect “password:” send “PASSWORD\r” expect “system>” send “power -on -T system:blade\[1\]\r” expect “system>” send “power -on -T …