-
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
Dell 9020 Optiplex Micro-Intel Core i5 - 1TB SSD 8GB RAM Window 11
$119.49
HP EliteDesk 800 G5 TWR Intel Core i5-9500 3.00GHz 8GB RAM 256GB M.2 NVMe No OS
$119.99
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA
$234.98
HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb 240gb SSD 1TB Win10
$199.99
Intel Core i7-13700K - 13th Gen Raptor Lake 16-Core (8P+8E) 3.4GHz LGA 1700 CPU
$314.99
Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor
$24.00
Intel Core i7-13700KF - 13th Gen Raptor Lake 16-Core (8P+8E) Desktop CPU
$295.99
AMD Ryzen 7 7800X3D (5 GHz, 8 Cores, Socket AM5) NEW
$329.00
Dell Precision T7610 8-Core 2.60GHz E5-2650 v2 4x Trays 64GB RAM 2tb SSD WIN 10
$319.99
HP Chromebase Desktop PC 21.5" FHD Core i3-10110U Intel UHD 8GB DDR4 128GB SSD
$356.19