What's new

Stuck commands

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

I didn't run or use your script for "production." I simply tried to run it on my router to see how it works as a "proof of concept" (which I'm very familiar with as a professional s/w dev. myself). The point was that the current version of the script goes into an infinite loop because some NVRAM vars are set to empty strings or not set at all, which are not uncommon scenarios on ASUS routers. A "proof of concept" demonstration should take care of common scenarios like empty values; it doesn't have to be completely foolproof, but it shouldn't go into an infinite loop either.

Look, I get it. Nobody likes criticism, and some people are more averse to it than others even when it's constructive, as my feedback was meant to be. In one way or another, we're here to learn and if you are, I can offer some advice. If not, I can certainly move on - I got no skin in this game.
I actually don’t mind criticism at all and this may be how you write but you do seem to come off as providing a little more than criticism and you are welcome to edit the script for checking values you prefer to test with that aren’t null. Again it’s just a conceptual script.
 
I seem to be experiencing the symptoms mentioned here. The AC86U in question is abroad and use a vpn connection to login to it. Wifi unstable, client list not updating, connections dropping etc etc. Could these all be symptoms of issues mentioned here? Any help is appreciated.
 
I seem to be experiencing the symptoms mentioned here. The AC86U in question is abroad and use a vpn connection to login to it. Wifi unstable, client list not updating, connections dropping etc etc. Could these all be symptoms of issues mentioned here? Any help is appreciated.
Probably not. See post #1. SSH into the router and run top or ps to see if there are any processes that look like they shouldn't be there.
 
Ran the script for a day, below is the grep from trace file for the script. Lots of 'nvram get' commands get stuck!

Code:
admin@RT-AC86U-9988:/tmp/mnt/ac86u/entware/var/log/Trace# grep nvram *.txt
StuckProcCmds_00001_06276.TRC.txt:2024-01-25 12:05:21  1119  1111 admin    S     3104  0.7   0  0.0 nvram get productid [KILLED]
StuckProcCmds_00001_06276.TRC.txt:2024-01-25 12:05:04  1142     1 admin    S     3104  0.7   0  0.0 nvram get odmpid [KILLED]
StuckProcCmds_00001_06276.TRC.txt:2024-01-25 12:04:50  1142     1 admin    S     3104  0.7   0  0.0 nvram get odmpid
StuckProcCmds_00001_06276.TRC.txt:2024-01-25 12:04:50  1119  1111 admin    S     3104  0.7   0  0.0 nvram get productid
StuckProcCmds_00002_04205.TRC.txt:2024-01-25 19:51:18  1741  1728 admin    S     3104  0.7   1  0.0 nvram get ntp_ready [KILLED]
StuckProcCmds_00002_04205.TRC.txt:2024-01-25 19:51:04  1741  1728 admin    S     3104  0.7   1  0.0 nvram get ntp_ready
StuckProcCmds_00003_05066.TRC.txt:2024-01-25 21:12:19  1142  1136 admin    S     3104  0.7   0  0.0 nvram get http_username [KILLED]
StuckProcCmds_00003_05066.TRC.txt:2024-01-25 21:12:04  1142  1136 admin    S     3104  0.7   0  0.0 nvram get http_username
StuckProcCmds_00004_06143.TRC.txt:2024-01-25 23:18:18  1138  1107 admin    S     3104  0.7   0  0.0 nvram get productid [KILLED]
StuckProcCmds_00004_06143.TRC.txt:2024-01-25 23:18:04  1138  1107 admin    S     3104  0.7   0  0.0 nvram get productid
StuckProcCmds_00005_03983.TRC.txt:2024-01-26 00:42:19  2364  2363 admin    S     3104  0.7   1  0.0 nvram get http_username [KILLED]
StuckProcCmds_00005_03983.TRC.txt:2024-01-26 00:42:04  2364  2363 admin    S     3104  0.7   1  0.0 nvram get http_username
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:07:06 99925 99924 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist [KILLED]
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:06:51 99925 99924 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:06:51 87093 86301 admin    S     2972  0.7   1  0.0 nvram get vpn_server_custom
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:06:34 98559 98558 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist [KILLED]
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:06:19 98559 98558 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:06:19 87093 86301 admin    S     2972  0.7   1  0.0 nvram get vpn_server_custom
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:06:01 97088 97087 admin    S N   2972  0.7   1  0.0 nvram get custom_clientlist [KILLED]
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:05:46 97088 97087 admin    S N   2972  0.7   1  0.0 nvram get custom_clientlist
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:05:46 87093 86301 admin    S     2972  0.7   1  0.0 nvram get vpn_server_custom
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:05:29 95141 95140 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist [KILLED]
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:05:14 95141 95140 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:05:14 87093 86301 admin    S     2972  0.7   1  0.0 nvram get vpn_server_custom
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:04:56 93762 93761 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist [KILLED]
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:04:41 93762 93761 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:04:41 87093 86301 admin    S     2972  0.7   1  0.0 nvram get vpn_server_custom
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:04:24 92286 92285 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist [KILLED]
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:04:09 92286 92285 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:04:09 87093 86301 admin    S     2972  0.7   1  0.0 nvram get vpn_server_custom
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:03:51 90917 90916 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist [KILLED]
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:03:36 90917 90916 admin    S N   2972  0.7   0  0.0 nvram get custom_clientlist
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:03:36 87093 86301 admin    S     2972  0.7   1  0.0 nvram get vpn_server_custom
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:03:19 87729 87728 admin    S N   2972  0.7   1  0.0 nvram get custom_clientlist [KILLED]
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:03:04 87729 87728 admin    S N   2972  0.7   1  0.0 nvram get custom_clientlist
StuckProcCmds_00006_05344.TRC.txt:2024-01-26 03:03:04 87093 86301 admin    S     2972  0.7   1  0.0 nvram get vpn_server_custom
 

Similar 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