2

I am trying to set something up on my old WRT54G router so that I can monitor live upload and download speeds. The info for it is here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=75275

I am not familiar with this type of stuff by any means. I'm an everyday college kid just trying to find a way to ID bandwidth hogs on my network; that's it. I've hardly messed around with this kind of stuff before. For this reason, everything I'm reading on how to get this script running is confusing and seems to contradict other tutorials. In the linked thread, the guy is talking about moving that file where the router can access it and even using some sort of MAC-PCname.txt file. On the second page, he says to a newb, "There are two ways of running a script everytime the router starts, one is by entering the code directly through the router's Web Interface, another is to write a startup script and use the extention .startup and place it in one of the correct locations.

To make the script executable run this in the command line: Code: chmod 700 /path_to/wrtbwmon

Or if you're using WinSCP with an SD/MMC card mod, just right-click on the file, select properties, and check all the X checkboxes."

Again, I am lost. He makes no mention of how to get the file onto the router. I would just enter the script's command into the little command box on DD WRT (this is what the official DD WRT guide says to do as well), but I don't know how to find the commands of the script. Can someone please supply a newb friendly step by step guide on what to do to get this setup? I don't want to screw anything up by trying to do this on my own.

Also, I have 368 kb of free ram available on my router. Please tell me if that's not enough.

Thanks. Any help is appreciated!

EDIT: I have the micro build so I don't have SSH on there. Apparently I can compress a file and get it to fit on there if needed though. Is there any other option?

W. Hib
  • 21

2 Answers2

1

A common method of transfering files between PC and networked device (e.g. router in this case) is to use SCP. There is a friendly windows GUI for it called WinSCP.

However,

If the "wrtbwmon" is available on the Internet somewhere, then you can download it directly onto the router by a number of methods.

Step 1:

Gain shell (terminal) access to the router

  • Option a) use telnet to log in to a router shell
  • Option b) use ssh to log in to a router shell (you already said you dont have SSH, but for completeness)
  • Option c) go to the web interface for your router in a browser and use the Administration/Commands interface

Step 2

Download file directly to the router. From the shell use "wget" command to download the file:

wget [web address of file] -O [destination folder on router]

for example:

wget http://52.90.176.152/wrtbwmon -O /tmp/wrtbwmon
Mark Ch
  • 556
  • 4
  • 10
0

Assuming you have DD-WRT running already:

  • Go to the directory on your local system that has the script in it
  • SSH to your router (guide available here)
  • Change directory as recommended on the thread: cd /tmp
  • Run the script as recommended: /bin/sh /tmp/wrtbwmon setup

Let me know if you need clarification - glad to help. For reference, DD-WRT has all their tutorials available here, but that doesn't make finding the right answer easy.

mbb
  • 2,546
  • 7
  • 27
  • 39