[Asterisk-Users] Remote reloading Cisco phones...

Lenny Tropiano / asterisk.org Mailing list asterisk at enterprise.icus.com
Sat Jan 17 20:03:53 MST 2004


Here's a simple small expect script ...

I call it "phreboot", usage: phreboot IP

$ phreboot 10.99.1.1

-- cut here --

#!/usr/bin/expect -f
set timeout -1
spawn $env(SHELL)
match_max 10000
send -- "telnet [lrange $argv 0 0]\r"
expect -exact "word :"
send -- "cisco\r" 
expect -exact "Phone> "
send -- "reset\r"
send -- ""



More information about the asterisk-users mailing list