Automated connection to Modem failed .

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Automated connection to Modem failed .

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Automated connection to Modem failed .
Automated connection to Modem failed .
2015-12-18 00:15:55
Model :

Hardware Version : Not Clear

Firmware Version :

ISP :

Hy folks ,

I would like to submit a strange case :
I have to script automated connection to a TD-W9980 via Telnet ( telnet mandatory because restriction : some of the computers aren't in the same level of SSH so SSH is prohibited ). I use sh script like this :
[CODE]
#!/usr/local/bin/expect -f
set password admin
set user admin
set host [lindex $argv 0]
# Defini le temps avant d'envoyer le mot de passe
set timeout 3
spawn telnet $host
match_max 100000
expect {
"Login: " {
send $user\r
exp_continue
}
"username:" {
send $user\r
}
}
expect {
"Password: " {
send $password\r
exp_continue
}
sleep 2
"password:" {
send $password\r
}
}
expect {
">" {
send "reboot\r"
exp_continue
}
"$" {
send "reboot\r"
exp_continue
}
"conf" {
send "dev reboot\r"
exit
}
}
interact
[/CODE]

But when I start the script ( wich works well with 2 other kind of ADSL Modems ), it stay freezed just after the password entry.

My Question is : Is it possible to rebuild the firmware to prevent the Clear Buffer of the screen when we connect to the modem , I mean when you connect to the modem manualy , as soon as you enter the password , the console send a clear command and the screen is cleared and wait for a command like this :




Thank you in advance for any information about this .
  0      
  0      
#1
Options
1 Reply
Re:Automated connection to Modem failed .
2015-12-18 23:41:50
  0  
  0  
#2
Options