What's new

RTRMON RTRMON v1.6.9 -May 3, 2024- Monitor your Router's Health (New: AMTM, Network Conn/Bandwidth/Diag + Port Scanner + Speedtest) [NEW THREAD OPENED]

  • 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!

Folks, any thoughts on 'sda' ? It's a functioning 5T USB hard drive.

1713467363661.png
 
Folks, any thoughts on 'sda' ? It's a functioning 5T USB hard drive.

Could you please run this command and let me know what kind of results you get back?

Code:
df | grep /dev/sd
 
Could you please run this command and let me know what kind of results you get back?

Code:
df | grep /dev/sd

--------------------------------------------------------------------------------------------
RT-AC68U-E9C0:/tmp/home/root# df | grep /dev/sd
/dev/sdb1 3866792 2411460 1258908 66% /tmp/mnt/USB
/dev/sda 5814347280 763177524 4758143660 14% /tmp/mnt/sda

PS, sda is a 5T HDD via USB port. sdb1 is a 4G thumb drive.

tx in advance !
 
--------------------------------------------------------------------------------------------
RT-AC68U-E9C0:/tmp/home/root# df | grep /dev/sd
/dev/sdb1 3866792 2411460 1258908 66% /tmp/mnt/USB
/dev/sda 5814347280 763177524 4758143660 14% /tmp/mnt/sda

PS, sda is a 5T HDD via USB port. sdb1 is a 4G thumb drive.

tx in advance !
Well, it seems like your excessively large drive created a math problem! Appears there are some limits I'm not aware of... ;)

Using your values, the outcome of this math problem = 0
Code:
sdtotal="$((5814347280 / 1048576))"

Had to change tactics, and am now using this, which makes it = 5544
Code:
sdtotal=$(echo "5814347280/1048576" | bc -l | cut -d . -f 1)

I have a test version of RTRMON with this fix implemented... if you wouldn't mind giving it a try, and seeing if you have better results with this? (just ignore the update warnings)

Download link:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/develop/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
 
Well, it seems like your excessively large drive created a math problem! Appears there are some limits I'm not aware of... ;)

Using your values, the outcome of this math problem = 0
Code:
sdtotal="$((5814347280 / 1048576))"

Had to change tactics, and am now using this, which makes it = 5544
Code:
sdtotal=$(echo "5814347280/1048576" | bc -l | cut -d . -f 1)

I have a test version of RTRMON with this fix implemented... if you wouldn't mind giving it a try, and seeing if you have better results with this? (just ignore the update warnings)

Download link:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/develop/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
Why would one ever have a 5 TB drive on a router?!? ONCE AGAIN, A ROUTER IS NOT A NAS!!!
 
Last edited:
WHy would one ever have a 5 TB drive on a router?!? ONCE AGAIN, A ROUTER IS NOT A NAS!!!
With a drive like that, BACKUPMON would be happy for quite a long time! :p
 
WHy would one ever have a 5 TB drive on a router?!? ONCE AGAIN, A ROUTER IS NOT A NAS!!!

1714423048985.png


I aggrege on the size. This was a 'stop-gap' for my wife who needed to store 1T or so somewhere local and really quick to off-load pictures from a trip before she headed out on another the next morning. I got like 6 hrs. notice and cobbled this together at 1am. The drive does nothing 99% of the time and is hibernated. It works surprisingly well via a Samba share that I toggle on for an hr., let MS Windows file backup do its thing on 3 PC's, then toggle off which lets the HDD hibernate.

Please don't spend any time on this as it's far-far-far- from a best practice. PS, I like the utility as its 1 stop for a ton of info
 
View attachment 58302

Please don't spend any time on this as it's far-far-far- from a best practice. PS, I like the utility as its 1 stop for a ton of info
Oh dang... looks like "bc" doesn't come standard... :( Hate when that happens... OK. I reverted to yet another method to calculate large numbers using awk. Let's see how that fares. Please download and give it another try! I have a good feeling about it this time! :)

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/develop/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"
 
Oh dang... looks like "bc" doesn't come standard... :( Hate when that happens... OK. I reverted to yet another method to calculate large numbers using awk. Let's see how that fares. Please download and give it another try! I have a good feeling about it this time! :)

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/develop/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"


BINGO !!!

1714744941322.png
 
Small patch to help those with large USB drives attached to your router to display the right drive space info! Thanks @bubba123 for reporting this and helping test against his setup! :)

What's new?
v1.6.9 - (May 3, 2024)
- PATCH:
After @bubba123 reported some display issues with his SDA devices, it was determined that the large size of his drive was creating some sort of math/integer problem, and was causing the division problem to equal zero, even though it should have amounted to 5544GB. I changed the way that RTRMON calculates these large drive space numbers using the awk tool, and implemented a fix. Thanks for the heads-up @bubba123!

Download link (or update directly within AMTM/RTRMON):
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/master/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"

Significant Screenshots:

Courtesy of @bubba123 ... this 5TB attached USB drive is now showing the correct stats.
1714747440096.png
 
After a long overdue overhaul... RTRMON is getting a refresh and will be out soon for everyone to give it a spin... similar guts/engine, collapsible Operations Menu, in the same new wide-screen style as VPNMON-R3, BACKUPMON and TAILMON, it will be joining the fam! Some new much needed enhancements coming along with it as well... ;)

Teaser screenshot...
1716516300010.png
 
So @visortgw ... Tell me more. Is this GT-AX6000 an iMesh Node? Does it have both 2.4 and 5GHz wifi on? I'm wondering if it's because it's not using a WAN interface? Could you send me a screenshot of your /sys/class/net folder?

1716579640822.png


1716579345007.jpeg
 
So @visortgw ... Tell me more. Is this GT-AX6000 an iMesh Node? Does it have both 2.4 and 5GHz wifi on? I'm wondering if it's because it's not using a WAN interface? Could you send me a screenshot of your /sys/class/net folder?

View attachment 58945

View attachment 58944
My bad. I selected IP address of GT-AX6000 AiMesh node, not GT-AXE16000. I will provide more details as requested later this evening when I have access to MacBook Pro (as opposed to phone).
 
So @visortgw ... Tell me more. Is this GT-AX6000 an iMesh Node? Does it have both 2.4 and 5GHz wifi on? I'm wondering if it's because it's not using a WAN interface? Could you send me a screenshot of your /sys/class/net folder?

View attachment 58945

View attachment 58944
From GT-AXE16000 AiMesh node:
Code:
# ls
bcmsw         eth0.501      eth10.502     eth4          eth6.501      eth8.502      ifb1          ip_vti0       wl0.1.502
br0           eth0.502      eth2          eth4.501      eth6.502      eth9          imq0          lo            wl0.2
br1           eth1          eth2.501      eth4.502      eth7          eth9.501      imq1          sit0          wl3.1
br2           eth1.501      eth2.502      eth5          eth7.501      eth9.502      imq2          spu_ds_dummy  wl3.1.501
dummy0        eth1.502      eth3          eth5.501      eth7.502      gre0          ip6_vti0      spu_us_dummy  wl3.1.502
erspan0       eth10         eth3.501      eth5.502      eth8          gretap0       ip6gre0       wl0.1         wl3.2
eth0          eth10.501     eth3.502      eth6          eth8.501      ifb0          ip6tnl0       wl0.1.501
From GT-AX6000 AiMesh node:
Code:
# ls
bcmsw         eth0          eth2          eth4          eth6          gre0          imq2          sit0          wl0.2
br0           eth0.501      eth2.501      eth4.501      eth6.501      gretap0       ip6_vti0      spu_ds_dummy  wl1.1
br1           eth0.502      eth2.502      eth4.502      eth6.502      ifb0          ip6gre0       spu_us_dummy  wl1.1.501
br2           eth1          eth3          eth5          eth7          ifb1          ip6tnl0       wl0.1         wl1.1.502
dummy0        eth1.501      eth3.501      eth5.501      eth7.501      imq0          ip_vti0       wl0.1.501     wl1.2
erspan0       eth1.502      eth3.502      eth5.502      eth7.502      imq1          lo            wl0.1.502
 
So @visortgw ... Tell me more. Is this GT-AX6000 an iMesh Node? Does it have both 2.4 and 5GHz wifi on? I'm wondering if it's because it's not using a WAN interface? Could you send me a screenshot of your /sys/class/net folder?

View attachment 58945

View attachment 58944
Same errors for both GT-AX6000 and GT-AXE16000 AiMesh nodes. Yes, all radios are on, and WAN interface being used on both (details below). Questions/thoughts:
  1. Why is there double slash in directory path of errors (i.e., "cat: can't open '/sys/class/net//statistics/rx_bytes': No such file or directory" and "cat: can't open '/sys/class/net//statistics/tx_bytes': No such file or directory")?
  2. On GT-AX6000, 2.5 Gbps WAN port is used for hardwired backhaul to 2.5 Gbps port of TL-SG3210XHP-M2 2.5/10 Gbps switch.
  3. On GT-AX16000, 10 Gbps WAN/LAN port 2 is used for hardwired backhaul to 10 Gbps port of TL-SG3210XHP-M2 2.5/10 Gbps switch — 2.5 Gbps WAN port unused.
 
  1. Why is there double slash in directory path of errors (i.e., "cat: can't open '/sys/class/net//statistics/rx_bytes': No such file or directory" and "cat: can't open '/sys/class/net//statistics/tx_bytes': No such file or directory")?
It's because the script wasn't able to identify the interface name for something on your end, while in iMesh mode... If it was able to identify the interface... it would show something like /sys/class/net/eth0/statistics/rx_bytes -- or something of the sort.

I may have to send you a test script to help troubleshoot this, or something since I don't have any iMesh to play with on my end? Or maybe you could run it in debug mode, and you could send me the output? That might help too. If you're willing, please do this:

Remove the #'s from the beginning of these lines:
3520
2892
2893

Then run the script as normal... run it long enough to where you think you see the errors... I'd wait at least 10 seconds while it goes the the initial initialization screen. Please send me the output, or the debug code around where the error happens.

To put it back to normal, just replace those #'s.

PLEASE NOTE!!


This thread has been closed due to it's age/number of posts allowed. So sorry for the inconvenience... This thread has been continued here:


 
Last edited:
It's because the script wasn't able to identify the interface name for something on your end, while in iMesh mode... If it was able to identify the interface... it would show something like /sys/class/net/eth0/statistics/rx_bytes -- or something of the sort.

I may have to send you a test script to help troubleshoot this, or something since I don't have any iMesh to play with on my end? Or maybe you could run it in debug mode, and you could send me the output? That might help too. If you're willing, please do this:

Remove the #'s from the beginning of these lines:
3520
2892
2893

Then run the script as normal... run it long enough to where you think you see the errors... I'd wait at least 10 seconds while it goes the the initial initialization screen. Please send me the output, or the debug code around where the error happens.

To put it back to normal, just replace those #'s.
Is debug output to screen only, or is it saved to a file?
 

Similar threads

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!
Top