Lenny Tropiano / asterisk.org Mailing list
2004-Jan-17 20:03 UTC
[Asterisk-Users] Remote reloading Cisco phones...
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 -- ""