Networking Forums

Networking Forums > Computer Networking > Linux Networking > Solution for DSL modem hangs

Reply
Thread Tools Display Modes

Solution for DSL modem hangs

 
 
Justin Gombos
Guest
Posts: n/a

 
      01-25-2004, 07:27 AM
I've found that my ActionTec DSL modem locks up quite frequently, and
the network halts. It has become quite irritating to constantly have
to cycle power on the modem / router.

I wrote a script that will reset the DSL modem and log the event upon
detecting a dead connection. I have this script set up to run every
minute via a cron job.

Currently the script runs on Red Hat 9 out of the box, and probably
other distros. You'll need to edit the variables at the top. Be sure
to replace the "buddy_sites" variable with hosts that actually respond
to pings. Here is the script in anyone is interested:

#!/usr/bin/expect --

set router_addy 192.168.2.1
set username admin
set password mypassword

set buddy_sites "\
www.csun.edu\
chtm.unm.edu\
"

set logfilename /var/log/cron

proc site_dead {site}\
{
spawn ping -c1 -q $site

set rtndata 0

expect \
{
"100% packet loss" {set rtndata 1}
" 0% packet loss" {set rtndata 0}
}

return $rtndata
}

proc my_net_is_a_bastard {sites}\
{
set rtndata 1

foreach site $sites\
{
if {![site_dead $site]}\
{
set rtndata 0
break
}
}

return $rtndata
}

proc reboot_actiontec {addy user pass}\
{
spawn telnet $addy
expect "Login:" {send "$user\r"}
expect "Password:" {send "$pass\r"}
expect -re "-->" {send "system restart\r"}
}

proc log_incident {logfilename selfname}\
{
set log [open $logfilename a]
puts $log "[exec date "+%b %e %T"] [exec hostname -s]\
$selfname: DSL connection reset"
close $log
}

if {[my_net_is_a_bastard $buddy_sites]}\
{

reboot_actiontec $router_addy $username $password
log_incident $logfilename $argv0

} else {

puts "my network rocks!"

}
 
Reply With Quote
 
 
 
 
Richard Steven Hack
Guest
Posts: n/a

 
      01-28-2004, 10:18 AM
On 25 Jan 2004 02:27:24 -0600, Justin Gombos
<bogus_addy@bogus_domain.net> wrote:

>I've found that my ActionTec DSL modem locks up quite frequently, and
>the network halts. It has become quite irritating to constantly have
>to cycle power on the modem / router.


<snip>

How HOT does it get? I've got an Efficient from SBC that gets very
hot and then locks up. You have to disconnect all three cables (NIC,
DSL, and power) for at least fifteen seconds - which doesn't always
work in which case you just have to let it cool down.

These things need a FAN.


--
Richard Steven Hack
"Whatever does not kill me makes me stronger" -
and YOU have not killed me!
 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      01-28-2004, 11:19 PM
Richard Steven Hack <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>. ..
> On 25 Jan 2004 02:27:24 -0600, Justin Gombos
> <bogus_addy@bogus_domain.net> wrote:
>
> >I've found that my ActionTec DSL modem locks up quite frequently, and
> >the network halts. It has become quite irritating to constantly have
> >to cycle power on the modem / router.

>
> <snip>
>
> How HOT does it get? I've got an Efficient from SBC that gets very
> hot and then locks up. You have to disconnect all three cables (NIC,
> DSL, and power) for at least fifteen seconds - which doesn't always
> work in which case you just have to let it cool down.
>
> These things need a FAN.


Seems to be a design "feature" of ActionTec DSL modems:
http://www.everythingusb.com/hardwar...er_reviews.htm

m2c
prg
email above disabled
 
Reply With Quote
 
Justin Gombos
Guest
Posts: n/a

 
      01-30-2004, 03:14 AM
In article <(E-Mail Removed)>, Richard Steven Hack wrote:
>
> How HOT does it get? I've got an Efficient from SBC that gets very
> hot and then locks up.
> [...]
> These things need a FAN.


That does not seem to be the case with my ActionTec R1524SU DSL
gateway. It's not even warm, so I don't think it's a thermal issue.
Whatever it is, the latest firmware did not correct it.

Also, my script does not work in all cases. Sometimes my lan loses
visibility to the router. When it dies in this way, I'm forced to
cycle the power.

My next extension to the script will be to detect loss of the router,
and send an X10 signal to power the device down, and back up. Has
anyone here worked with sending X10 signals from a unix box?
 
Reply With Quote
 
Richard Steven Hack
Guest
Posts: n/a

 
      02-02-2004, 09:29 AM
On 29 Jan 2004 22:14:57 -0600, Justin Gombos
<bogus_addy@bogus_domain.net> wrote:

>In article <(E-Mail Removed)>, Richard Steven Hack wrote:
>>
>> How HOT does it get? I've got an Efficient from SBC that gets very
>> hot and then locks up.


>That does not seem to be the case with my ActionTec R1524SU DSL
>gateway. It's not even warm, so I don't think it's a thermal issue.
>Whatever it is, the latest firmware did not correct it.


A second possibility after heat is static electricity. The SBC tech
support recommended the disconnect procedure I mentioned primarily due
to that, not heat. But I think in my case the heat aggravates the
problem. Perhaps your modem is affected by static electricity. Maybe
try putting it on a static mat or something?


--
Richard Steven Hack
"Whatever does not kill me makes me stronger" -
and YOU have not killed me!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP hangs Dave Sill Linux Networking 0 08-24-2005 08:03 PM
Cisco CW Campus Manager, CW Common Service, CW Device Fault Manager, CW Recource Manager Essentials, NGenious RealTime Monitor, CiscoWorks Routed WAN Management Solution v1.3 [3 CDs], CiscoWorks VPN_Security Management Solution v2.2, CiscoWorks QoS P astra35 Wireless Internet 0 05-21-2004 05:48 PM
Cisco CW Campus Manager, CW Common Service, CW Device Fault Manager, CW Recource Manager Essentials, NGenious RealTime Monitor, CiscoWorks Routed WAN Management Solution v1.3 [3 CDs], CiscoWorks VPN_Security Management Solution v2.2, CiscoWorks QoS P astra35 Windows Networking 0 05-19-2004 01:04 PM
Help anyone? - black screen hangs and ADSL modem prob Antony Broadband 2 11-02-2003 07:53 PM
IE, explorer, etc hangs after connecting to router (ok if connect to DSL modem) Edward Windows Networking 1 09-21-2003 05:06 PM



1 2 3 4 5 6 7 8 9 10 11