Totals for Yesterday
Incoming: 0 MB
Outgoing: 0 MB
Totals for Month to Date
Incoming: 2 MB
Outgoing: 0 MB
but I tried the command to send a test and it never does. Will the script automatically send me an email each day of the prev day usage? Also I put the script in the "Save Startup" area.
Yes. Note that you just flashed the router, so there is no previous day's usage. Nvram was wiped.
You only need the first cron line. The second one is only for another part (wlclient) of the original script that you may not have even implemented (it's a separate function), though if you did, leave it in, but it's not really part of this thread.
You want to save the script in the custom script section.
If you ever want to test from telnet, this will work:
sh -x custom.sh bwmail
ok sendmail doesn't give me that error now. but I tried "sendmail -S"smtp.comcast.net" -f"sender@comcast.net" -F"DD-WRT" -d"comcast.net" -s"Bandwidth Report" -m"test" me@gmail.com" and it did not send me an email. I put my comcast email in the sender email and my email in the me@gmail.com spot.
I'm getting much the same thing, but in addition the -F and -s flags are getting an illegal flag error. I'm also trying the command on the terminal command line in the hope that I can get errors shown. My sendmail is the one in busybox, which doesn't appear to support the -F and -s flags. Are there any other versions of sendmail supplied with DD-WRT?
I'm using DD-WRT v24-sp2 (06/08/12) mini - build 19342 on a Buffalo WHR-HP-G54
Yes, that's because you're using a modern version of BusyBox in that version, and sendmail was fundamentally changed. You have to go back a few pages in the thread for that discussion. Don't worry, someone figured it out and came up with a very nice script.
Yes, that's because you're using a modern version of BusyBox in that version, and sendmail was fundamentally changed. You have to go back a few pages in the thread for that discussion. Don't worry, someone figured it out and came up with a very nice script.
Yes - found it, and changed the sendmail command to reflect my set-up. I changed it to:
I initially tried to run the script in the web interface command window, but it didn't work. The bwmsg.txt file was created, but nothing was emailed. I then copied the file to /tmp and ran it from there in a terminal window using telnet. It worked fine. I've now moved the script to a small jffs directory so it will survive a router reboot.
"" is connected to "dd-wrt - - 00:0D:0B:97:6A:E9" at this time.
What should be within the starting double quotes? The variable in the script states wl0.1_ssid, but there's never any value for this on my DD-WRT installation. What sort of connection is wl0.1_ssid referring to?
I don't use that part of the script, so I never tried to figure it out, but based on the context I'm guessing that it's trying to show the host name (machine name) of the connected wireless user. Unfortunately, in DD-WRT, that's often just an asterisk.
Posted: Sat Jul 21, 2012 23:31 Post subject: macignore
Hi All,
great script many thnaks.
having trouble getting macignore="mac_address" to work - should it be "mac_address mac_address mac_address" or "mac_address" "mac_address" "mac_address"
Hi
I have this Router:
Router Model TP-Link TL-WR1043ND
Firmware Version DD-WRT v24-sp2 (08/07/10) std - build 14896
BusyBox v1.13.4 (2010-08-07 06:53:22 CEST) built-in shell (ash)
The wl command is not present:
ash: wl: not found
(In line 46 of the script)
Code:
Line 46: maclist=$(wl -i $(nvram get wl0_ifname) assoclist | cut -d" " -f2
Does anyone no the equivalent command for this firmware?
That's really strange, since it definitely should be there in a std version from 2010 (I'm looking at one a little older right now, and it's there). If you open telnet, login, and type wl, it doesn't show wl's usage?
BTW, you probably know this, but that section of the script is not necessary to get a bandwidth report from the router, so if that's all you're looking to do, you're OK.