-
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
IBM System X3650 Server M2 2 x Xeon X5570 2.93 Ghz w/128 GB/DVDRW
$169.99
IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD
$399.99
IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server
$209.98
IBM SYSTEM x3200 M2 Server - HDD wiped, No OS
$75.00
ibm server z series
$16000.00
IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES
$27.25
IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W
$199.00
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server
$319.99
IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED
$99.99
IBM Intel EXPI9404PTL Pro/1000 PT Quad Port Server Adapter PCI-E 39Y6138 Free SH
$16.99