-
Senior Member
registered user
Counting wifi disconnects
.
I use the measure count to define the frequency of wifi disconnect/reconnects.
count is defined as an alias in my /etc/profile, as follows:
Code:
alias count="date '+%h %e %H:%M:%S'; less /var/log/syslog > text; less text | fgrep restart; less text | fgrep -c disconnecting"
In practice, it works this way:
knoppix@Microknoppix:~$ count
Jan 17 19:18:36
Jan 17 14:25:56 Microknoppix syslogd 1.5.0#6.2: restart.
30
Given these three lines I deduce I have had 30 disconnect/reconnects in the current session
which began at about 14:26. Doing the subtraction that seems to be about 292/30 or once in
9.7 minutes on average. I know the reconnect time is usually quite small, on the order
of two seconds, usually. I'm currently using g-mode on either router since this gives a
much better result with this measure of performance. my n-mode results are on the order
of less than a minute between disconnects, using this same measure. I conclude my g-mode is
preferable to my n-mode as things stand right now.
This approach requires /var/log/syslog which, using Knoppix7, may be partially observed with
control-alt-F12, but I don't know how to manipulate it as above without providing the actual
log. I do this by adding the following entry to /etc/syslog-knoppix.conf
just below the existing tty12 statement:
Code:
*.*;auth,authpriv.none /var/log/syslog
Use two tabs to provide the space between none and /var above.
This log is re-established at boot. So, the accumulation of this record is of no consequence
in using a LiveUSB which is never left on-line overnight or when not in use for any significant
time. Needless to say, if you don't reboot often as I do, you may want to consider how much
space is consumed by contiuously recording syslog.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Samsung Galaxy Tab A8 10.5" SM-X200 128GB Wifi Only Tablet Open Box
$149.99
Samsung Galaxy Tab A 8.0" 2019 SM-T290 32GB WiFi Tablet Open Box
$94.99
SAMSUNG M393A2G40DB0-CPB 16GB PC4-17000P DDR4-2133 2RX4 ECC
$14.95
Samsung - S Pen Creator Edition - White
$40.00
Genuine Samsung Book Cover Keyboard for 14.6" Galaxy Tab S8 Ultra | S8 Ultra 5G
$89.99
Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New)
$129.99
Samsung Galaxy Chromebook Go, 14-inch, 32GB, Unlocked All Carriers - Silver
$99.95
Samsung 16GB 2Rx4 PC3-12800R M393B2G70BH0-CK0 DDR3 RDIMM - SERVER RAM
$8.90
512GB SAMSUNG EVO Plus Micro SD MicroSDXC Flash Memory Card w/ SD Adapter
$21.99
Tempered Glass Screen Protector For Samsung Galaxy Tab S9/S9 FE/S9 Plus/S9 Ultra
$10.95