Class II router - unlocking

All about firmwares for routers. Support for RouterTech firmwares is here too.
Post Reply
User avatar
Neo
RouterTech Team
RouterTech Team
Posts: 3586
Joined: Thu Jan 26, 2006 1:09 pm
Contact:

Class II router - unlocking

Post by Neo » Thu Nov 16, 2006 1:53 pm

The Class II routers which have limited RAM such as the SART2 4115/GART2 4115 can lock up under heavy usage (under P2P or even heavy browsing).

Several variables in the router's config can be tweaked but personally I haven't had much success with this.

The later RouterTech firmwares do have a memory optimisation script which can help (and which are scheduled with the crontab).

A simple batch and script file in combination with the Telnet Scripter ( viewtopic.php?t=282 ) can be used to temporarily 'unlock' or 'unblock' a router (your mileage may vary).

The script (needs router's IP address and password):

Code: Select all

HOST 192.168.1.1 23
WAIT "login"
SEND "root\n"
WAIT "password"
SEND "password\n"
WAIT "#"

SEND "/usr/local/bin/memopt.sh\n"
WAIT "#"
The batch file (in the same folder as the Telnet Scripter and above script file:

Code: Select all

ipconfig /release
ipconfig /renew
ts.exe /r:quick_opt.txt /o:quick_out.txt
This will refresh the DHCP/PC-to-router connection, run the memory optimisation script and dump the output to the quick_out.txt file. One can inspect the quick_out.txt file to see how the memory optimisation is faring.
Attachments
sart24115_opt.zip
Script and batch file to be used in conjunction with the Telnet Scripter
(380 Bytes) Downloaded 1241 times
RouterTech Team and Founding Member
Image
RouterTech Merchandise (UK)
No support via PM, please ask your questions on the forum!
User avatar
SyBorg
Ex RouterTech Team
Ex RouterTech Team
Posts: 1621
Joined: Mon Apr 17, 2006 4:09 pm
Location: Berkshire
Contact:

Post by SyBorg » Thu Nov 16, 2006 2:47 pm

Neo, great stuff.

Want to add a link to here within the Telnet Scripter post?
We learn something every day, and lots of times it’s that what we learned the day before was wrong.
—Bill Vaughan
User avatar
Neo
RouterTech Team
RouterTech Team
Posts: 3586
Joined: Thu Jan 26, 2006 1:09 pm
Contact:

Post by Neo » Thu Nov 16, 2006 4:14 pm

Thanks SyBorg :)

Link added ;)
RouterTech Team and Founding Member
Image
RouterTech Merchandise (UK)
No support via PM, please ask your questions on the forum!
Post Reply