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?

1
  • There is a clue in the instructions. Use WinSCP to transfer files to the router
    – Mark Ch
    Jan 6, 2016 at 6:28

2 Answers 2

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
13
  • I'm attempting to use WinSCP. Again though, it's looking like I need to enable SSH, which I don't have. So....I will try to go with option C of the alternatives. Tell me if this is correct. I can download it to my router by running this command: "wget dd-wrt.com/phpBB2/… -O [some destination on router]" Is this correct? Also, I am unsure of where to save the file. Could you tell me a good location for that? Thanks for your help. I really appreciate it.
    – W. Hib
    Jan 6, 2016 at 16:05
  • Try /tmp as recommended in the other answer. You can always move the file later, just try to download it first. That web address doesnt look right, that is the forum... Find the URL of the file direct
    – Mark Ch
    Jan 6, 2016 at 16:55
  • Okay. We'll try putting it on /tmp. So I literally just input "/tmp" for the destination part of the command? Also, I'm trying to create a direct link to the file within the zip, since I'm pretty sure that's what I need to download (vs. the zip itself). I unzipped the file and uploaded it to my dropbox and created what I think is a direct link. This is it: dropbox.com/s/xyfdudrjzuvib1u/wrtbwmon?dl=1 . Will that work? Check it out for yourself. The link immediately just starts the download. Also, anything we need to do about the MAC-to-PCname.txt?
    – W. Hib
    Jan 6, 2016 at 18:00
  • nice try!... but my installation of wget can't do HTTPS (SSL), so I guess yours can't either. It would need to be uploaded somewhere with only HTTP. try this: wget http://52.90.176.152/wrtbwmon -O /tmp/wrtbwmon
    – Mark Ch
    Jan 6, 2016 at 19:15
  • Hm, well, I tried that link you supplied and it just says "Connecting to 52.90.176.152 (52.90.176.152)" (there's two more digits in the parentheses I'm leaving out in case that's some sort of private number). It never seems to do anything else. I'm guessing this means that it didn't download, correct? Again, I really appreciate the help. Nobody else on this website has helped me out this much, hahaha :)
    – W. Hib
    Jan 6, 2016 at 21:16
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.

1
  • Thanks for you reply. I don't seem to have an SSH tab on my DD WRT. Looks like I'm gonna have to do some work first to get that in there. It's because I have the micro build. Is there another way or should I get SSH working?
    – W. Hib
    Jan 6, 2016 at 4:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .