What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

scMerlin scMerlin 2.5.40 - Service and script control menu for Asuswrt-Merlin

@Tarek Yag and @abcxyz

I've created a PR: https://github.com/AMTM-OSR/scMerlin/pull/15 to test this implementation.
Please try to run the following:

Code:
sh /jffs/scripts/scmerlin develop

And advise if you have any issues or if it's functional.

- WebUI (using nvram):
1753150803826.png


- SSH:
1753150959358.png


- Using nvram:
1753150928445.png


- Using logfile:
1753150762704.png
 
on my gt-axe11000 i can't see the wan uptime it says
Code:
WAN Uptime No WAN events in syslog
 
on my gt-axe11000 i can't see the wan uptime it says
Code:
WAN Uptime No WAN events in syslog

Interesting, so basically your router isn't using the nvram values I'm using, additionally, it finds no WAN events in the system logs as the fallback method.

When was the last time you rebooted the router? Does "nvram get wan0_uptime" give any results in SSH?
 
Interesting, so basically your router isn't using the nvram values I'm using, additionally, it finds no WAN events in the system logs as the fallback method.

When was the last time you rebooted the router? Does "nvram get wan0_uptime" give any results in SSH?

the last time i rebooted my router was:
Code:
Uptime    10 days 14 hour(s) 18 minute(s) 51 seconds

Code:
ASUSWRT-Merlin GT-AXE11000 3004.388.9_2 Mon Apr 28 21:28:05 UTC 2025
****@****:/tmp/home/root# nvram get wan0_uptime
****@****:/tmp/home/root#

will do a fresh reboot and see what it reports then.
 
the last time i rebooted my router was:
Code:
Uptime    10 days 14 hour(s) 18 minute(s) 51 seconds

Code:
ASUSWRT-Merlin GT-AXE11000 3004.388.9_2 Mon Apr 28 21:28:05 UTC 2025
****@****:/tmp/home/root# nvram get wan0_uptime
****@****:/tmp/home/root#

will do a fresh reboot and see what it reports then.

I'm assuming that you generally have a very stable WAN connection like me and Martinski, you could just try unplugging the WAN connection for a second to see if it updates without rebooting the whole router.
 
Last edited:
I'm assuming that you generally have a very stable WAN connection like me and Martinski, you could just just unplugging the WAN connection for a second to see if it updates without rebooting the whole router.

Yep, i have a very stable connection hardly any downtimes with my provider but after a reboot it now correctly shows the uptime.
 
Yep, i have a very stable connection hardly any downtimes with my provider but after a reboot it now correctly shows the uptime.

Okay I have an idea on how to address this. Thanks for the testing and feedback. It's not technically doing anything wrong, but we can keep better track that than for "stable" connections.
 
Okay I have an idea on how to address this. Thanks for the testing and feedback. It's not technically doing anything wrong, but we can keep better track that than for "stable" connections.
Thanks for your hard work and dedication 👍👍👍
 
Awesome, just what I needed!
View attachment 66869

Fantastic news @abcxyz I would it expect it to work correctly for you as it seems your running the newer firmware versions (3006?) and the nvram values are populated
My fallback method was to go to the syslog, but I have a bit more poking to do for "stable" connections.
 
I like the idea of using wan-event and writing a timestamp file to /tmp on a “connected” event.

More or less my thought as well, I was just going to keep our own "records" of it as a reference point.
 
Last edited:
Done in this commit: https://github.com/AMTM-OSR/scMerlin/pull/15/commits/90f9d4a8fbdbf9e719286dd883efdc871c3daaaf
Waiting on feedback from @Martinski before merging anything

@abcxyz @Tarek Yag and @laracroftonline ; can you please try again with the latest develop version?
You will need to run this again:

Code:
sh /jffs/scripts/scmerlin develop
I downloaded your lastest develop version and it works perfectly 😃
Can you add a real-time second counter to make it more dynamic? 😍
 
I downloaded your lastest develop version and it works perfectly 😃
Can you add a real-time second counter to make it more dynamic? 😍

Thank you for your feedback @abcxyz
Unfortunately at this time. I don't think a real-time counter updated every second would be reasonable, given the nature of the utility. it's always been (even in the original script designs) a rough estimation tool and should not be taken with accuracy down to the seconds.

It may look nice to have seconds update consistently but it's wasteful on resources to refresh that consistently with little added value. At this time "within the nearest minute" is good enough and is as far as I intend to take this implementation.

I much appreciate you testing and validating no additional bugs were found.
 
with your latest update i get
Code:
WAN uptime    (wan0): 0 days 0 hrs 0 mins (initial-seed)
 
with your latest update i get
Code:
WAN uptime    (wan0): 0 days 0 hrs 0 mins (initial-seed)

Perfect! Thank you for testing! I wanted to make sure the initial seeded value of zero showed up correctly on fresh installs and upgrades for older routers still on 3004.

I think this is pretty much ready to go out the door now.
 
Last edited:
Hey @ExtremeFiretop , installed your develop version and then rebooted ...

AX86U on 3004 firmware as per my sig.

scMerlin 2.4.50 is showing the uptime of my backup/secondary connection WAN1, which is an InSeeGo 5G hotspot connected via ethernet.

Screenshot 2025-07-26 at 10.24.55.png



Screenshot 2025-07-26 at 10.25.52.png


I run the wan-failover script and my main WAN0 HFC connection is active and running.

Screenshot 2025-07-26 at 10.31.31.png


Is this a bug, or maybe a timing issue with startup "settling"?
Does scMerlin re-interogate? Seems to be stuck on WAN1 ...

I'll do a few more reboots and see if it's random maybe?

Any suggestions?

Cheers,

StephenH

EDIT: Just saw that if I refresh the scMerlin web page I get a VERY quick flash of a "WAN is down" message in the "WAN uptime" slot before it settles back to showing WAN1 instead. That may be a clue? Doesn't seem to be detecting my WAN0 ... any diagnostics I can get for you?
 
Last edited:
Hey @ExtremeFiretop , installed your develop version and then rebooted ...

AX86U on 3004 firmware as per my sig.

scMerlin 2.4.50 is showing the uptime of my backup/secondary connection WAN1, which is an InSeeGo 5G hotspot connected via ethernet.

View attachment 66929


View attachment 66930

I run the wan-failover script and my main WAN0 HFC connection is active and running.

View attachment 66931

Is this a bug, or maybe a timing issue with startup "settling"?
Does scMerlin re-interogate? Seems to be stuck on WAN1 ...

I'll do a few more reboots and see if it's random maybe?

Any suggestions?

Cheers,

StephenH

EDIT: Just saw that if I refresh the scMerlin web page I get a VERY quick flash of a "WAN is down" message in the "WAN uptime" slot before it settles back to showing WAN1 instead. That may be a clue? Doesn't seem to be detecting my WAN0 ... any diagnostics I can get for you?

Very interesting.

I think I have an idea, but i just came back from a bike ride from deep into the bush to find some geocaches. All I found was a swarm of mosquitoes and pretty sure I'm 40% burrs now.

While in the woods I realized two things: 1. nature is beautiful, and 2. I’m not built for any of it. 😂

I'll get to this shortly. I'll let you know if I need anything from you, or if I can nail this down.
 
Commiserations on the bike ride @ExtremeFiretop :p ...

I'll get to this shortly. I'll let you know if I need anything from you, or if I can nail this down.

Thanks, let me know if you need some data or a test. I'm ducking in and out but mostly around for the arvo/evening (here in Sydney Australia).

Oh, forgot to say - did a couple more reboots with same result ... still stubbornly showing WAN1 Uptime.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top