Send me a PM with the script, please.
- lfbb
This thing (absence of connection uptime) is annoying me for some time. Sometimes I just want to check for how long my connection is up to identify some issues (be it ISP or whatever). This info was available on my old D-Link under WAN status. Guess I'll use the wan-start script to store the last connection time in some text file (which alternatively can be done by FW and displayed in WAN status page )No, there's no timer for it. DHCP leases will get renewed after a while, so there's no way to keep track of when your WAN was up - the concept of "up" is kinda fuzzy due to limited DHCP leases.
Just because I needed a diversion from some other work, I gen'd this up on my fork....still needs some more testing View attachment 7276
This was after I pulled the modem internet cable to create a WAN down for a few minutes.
WAN Uptime (Current) is the uptime following the last WAN up.
I started from a 'clean sheet' and wrote my own solution. From what I can see, it should also work for PPPoE, but will need to get someone to test it.The tricky part is handling the PPPoE session time. The code could probably be borrowed from Tomato, but for me this isn't a priority.
Well, you have to start somewhereAnd we have to assume that Asus's WAN detection works properly. That's something they have been constantly changing these last 4 months...
Well, you have to start somewhere
The tricky part is handling the PPPoE session time. The code could probably be borrowed from Tomato, but for me this isn't a priority.
And we have to assume that Asus's WAN detection works properly. That's something they have been constantly changing these last 4 months...
Feb 21 12:57:08 pppd[671]: Connect time 635.1 minutes.
It's not stored anywhere, it's dynamically logged by the pppd server as it closes its own connection.
I set a script to send me an email
So could you share your script, please?
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!