If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:showshringbuf

From BoxMatrix


BoxMatrix >> Shell-Commands >> showshringbuf @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

AVM-Command

Goto:   Examples  -  Ringbuffers  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

showonlinestat is a supportdata helper to print the log in a Shared-Ringbuffer, or to list all currently existing buffers.

The advantage of ringbuffers is they are fixed size and don't grow, perfect for keeping them in RAM.
Messages are written cyclical to the log, overwriting old messages before exceeding the buffer size.
So a ringbuffer always stores the tail of the log, clipped to its bufffer size.

Many modern AVM daemons use ringbuffers for their logs, see the Ringbuffers section below.

Starting with fw 7.39 AVM renamed this command to shringbuf and made showshringbuf a symlink there.

fw 7.29 help:

root@fritz:/var/mod/root# showshringbuf -?

usage: showshringbuf [options] name

options:
  -?                 - print this help
  -l                 - show all existing shringbufs. (NOTSET)
  -i                 - put stdin to shringbuf. (NOTSET)
  -D STRING          - switch debug logs on. (FUNC)
  -m                 - print only messages without date and time prefix. (NOTSET)

Examples

fw 7.29 - list all ringbuffers:

root@fritz1:/var/mod/root# showshringbuf -l | sort

avm_reporting
avmdb
avmeventdsl
backendmails
chronyctl
cloudmsgd
dnsd
dnsdbest
invite
l2tpv3
lan_pairing
landevicesnexus
landevicesupnp
log
mailbuilder
meshd_log
nexus
pcp
sip
sson
tr069
umts
upnp_access
upnp_error
voipbackup
waccess
werror

fw 7.29 - print the tr069 ringbuffer:

root@fritz1:/var/mod/root# showshringbuf tr069

1970-01-01 01:00:37.004 - add bridge dynamic=0
1970-01-01 01:00:37.005 - add bridge dynamic=0

Ringbuffers

Ringbuffers are stored as /var/.srb_<service> files, plus a /var/.srb_<service>.sem semaphore each.
srb means shared ringbuffer. Older firmware placed the semaphores in /var/tmp/csem/.srb_<service> files.
Semaphores prevent collisions when multiple processes or threads try to write to a buffer at once, thus shared ringbuffers.

This is a subset of the Temp-Files section, filtered for /var/.srb_<service> files, excluding *.sem semaphores:

Daily updated index of all ringbuffers found scanning Supportdata-Probes. Last update: 2024-12-21 07:02 GMT.
The label (temp) in the File column shows there are other objects in this wiki using this name.
The Mod column shows the amount of models using the respective file. Click the column header to sort by this number.
You can hover or click a possible Link in the Type column to see the target of that link.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-12-21 07:44 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Symlink to cmd shringbuf 52 7.39 - 8.00 supportdata helper printing the log in a Shared-Ringbuffer, or listing all buffers. AVM
Depends on lib ld.so 44 7.08 - 7.32 Dynamic linker / loader Linux
Depends on lib libavmcsock.so 91 5.29 - 7.32 Networking, I/O and helper functions AVM
Depends on lib libc.so 91 5.29 - 7.32 Standard C library Linux
Depends on lib libdl.so 76 5.29 - 7.31 Dynamic linking library Linux
Depends on lib libgcc_s.so 40 5.29 - 6.110 GCC low-level runtime library Linux
Depends on lib libpthread.so 76 5.29 - 7.31 POSIX threading library Linux
Depends on lib librt.so 60 6.35 - 7.31 POSIX realtime extensions library Linux
Depends on lib libsvctl.so 51 7.19 - 7.32 supervisor notification library AVM
Depends on lib libz.so 51 6.98 - 7.32 Zlib compressor / decompressor Linux
10 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-12-21 05:44 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box WLAN 3270 5.29 - 5.54 /bin 5.5k - 5.6k
FRITZ!Box WLAN 3270 v3 5.29 - 5.54 /bin 5.5k - 5.6k
FRITZ!Box WLAN 3270 IT 5.51 - 5.52 /bin 5.5k - 5.6k
FRITZ!Box 3272 (main) 5.50 - 6.89 /bin 5.5k - 5.9k
FRITZ!Box WLAN 3370 (main) 5.29 - 6.56 /bin 5.4k - 5.9k
FRITZ!Box 3390 (main) 5.50 - 6.56 /bin 5.4k - 5.9k
FRITZ!Box 3490 (main) 6.20 - 7.30 /bin 5.4k - 10.0k
FRITZ!Box 4020 /bin 5.4k - 5.9k
FRITZ!Box 4040 6.52 - 8.00 /bin 4.3k - 9.3k, Link
FRITZ!Box 4050 7.58 - 7.90 /bin Link
FRITZ!Box 4060 7.29 - 7.90 /bin 9.3k, Link
FRITZ!Box 5490 (main) 6.51 - 7.29 /bin 5.4k - 10.0k
FRITZ!Box 5491 (main) 7.01 - 7.29 /bin 5.9k - 10.0k
FRITZ!Box 5530 Fiber (main) 7.21 - 8.00 /bin 9.8k, Link
FRITZ!Box 5590 Fiber (main) 7.29 - 8.00 /bin 9.3k, Link
FRITZ!Box 5590 Fiber (prx) 7.29 - 8.00 /bin 9.8k, Link
FRITZ!Box 5690 Pro (main) 7.62 /bin Link
FRITZ!Box 5690 Pro (rtl) 7.62 /bin Link
FRITZ!Box 6320 Cable v1 6.03 - 6.04 /bin 4.4k
FRITZ!Box 6320 Cable v2 6.21 /bin 4.4k
FRITZ!Box 6360 Cable 6.04 - 6.51 /bin 4.4k
FRITZ!Box 6430 Cable (arm) 6.84 - 7.29 /bin 4.4k - 9.3k
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /bin 4.6k - 9.2k
FRITZ!Box 6490 Cable (arm) 6.20 - 7.51 /bin 4.4k - 9.3k, Link
FRITZ!Box 6490 Cable (atom) 6.20 - 7.51 /bin 4.6k - 9.2k, Link
FRITZ!Box 6590 Cable (arm) 6.83 - 7.57 /bin 4.4k - 9.3k, Link
FRITZ!Box 6590 Cable (atom) 6.83 - 7.51 /bin 4.5k - 9.2k, Link
FRITZ!Box 6591 Cable (arm) 7.04 - 8.00 /bin 5.2k - 9.5k, Link
FRITZ!Box 6591 Cable (atom) 7.04 - 8.00 /bin 5.2k - 9.4k, Link
FRITZ!Box 6660 Cable (arm) 7.14 - 8.00 /bin 5.6k, Link
FRITZ!Box 6660 Cable (atom) 7.14 - 8.00 /bin 5.5k - 9.4k, Link
FRITZ!Box 6670 Cable (arm) 7.61 - 7.90 /bin Link
FRITZ!Box 6670 Cable (atom) 7.61 - 7.90 /bin Link
FRITZ!Box 6690 Cable (arm) 7.28 - 7.90 /bin 5.6k, Link
FRITZ!Box 6690 Cable (atom) 7.28 - 7.90 /bin 9.3k, Link
FRITZ!Box 6810 LTE 6.35 /bin 5.5k - 5.9k
FRITZ!Box 6820 LTE v1 (main) 6.40 - 7.59 /bin 5.9k - 10.0k, Link
FRITZ!Box 6820 LTE v2 (main) 6.40 - 7.59 /bin 5.9k - 10.0k, Link
FRITZ!Box 6820 LTE v3 (main) 7.19 - 7.57 /bin 10.0k, Link
FRITZ!Box 6820 LTE v4 7.59 /bin Link
FRITZ!Box 6840 LTE (main) 5.29 - 6.88 /bin 5.4k - 5.9k
FRITZ!Box 6842 LTE /bin 5.5k - 5.9k
FRITZ!Box 6850 LTE 7.21 - 7.90 /bin 9.3k - 9.8k, Link
FRITZ!Box 6850 5G 7.24 - 7.90 /bin 9.3k, Link
FRITZ!Box 6890 LTE (main) 6.84 - 7.57 /bin 5.4k - 9.8k, Link
FRITZ!Box 6890 LTE v1 (main) 6.84 - 7.57 /bin 5.4k - 9.8k, Link
FRITZ!Box 6890 LTE v2 (main) 6.84 - 7.57 /bin 5.4k - 9.8k, Link
FRITZ!Box Fon WLAN 7240 5.29 - 6.06 /bin 5.5k - 5.6k
FRITZ!Box Fon WLAN 7270 v2 5.29 - 6.06 /bin 5.5k - 5.6k
FRITZ!Box Fon WLAN 7270 v3 5.29 - 6.06 /bin 5.5k - 5.6k
FRITZ!Box 7272 (main) 5.55 - 6.88 /bin 5.5k - 5.9k
FRITZ!Box 7312 5.29 - 6.56 /bin 5.5k - 5.9k
FRITZ!Box Fon WLAN 7320 5.29 - 6.35 /bin 5.5k - 5.9k
FRITZ!Box 7330 5.29 - 6.56 /bin 5.5k - 5.9k
FRITZ!Box 7330 SL 5.29 - 6.56 /bin 5.5k - 5.9k
FRITZ!Box Fon WLAN 7340 /bin 5.6k - 5.9k
FRITZ!Box Fon WLAN 7360 SL 5.29 - 6.34 /bin 5.5k - 5.9k
FRITZ!Box Fon WLAN 7360 v1 5.29 - 6.36 /bin 5.5k - 5.9k
FRITZ!Box Fon WLAN 7360 v2 5.29 - 6.88 /bin 5.4k - 5.9k
FRITZ!Box 7362 SL (main) 5.53 - 7.18 /bin 5.4k - 9.8k
FRITZ!Box 7369 (main) 6.30 - 6.32 /bin 5.9k
FRITZ!Box Fon WLAN 7390 /bin 5.5k - 5.9k
FRITZ!Box 7412 (main) 6.21 - 6.88 /bin 5.4k - 5.9k
FRITZ!Box 7430 (main) 6.26 - 7.31 /bin 5.4k - 10.0k
FRITZ!Box 7490 (main) 5.57 - 7.51 /bin 5.4k - 10.0k, Link
FRITZ!Box 7510 7.30 - 8.00 /bin 9.3k, Link
FRITZ!Box 7520 6.98 - 8.00 /bin 4.5k - 9.3k, Link
FRITZ!Box 7520 v2 (main) 7.30 - 8.00 /bin 9.3k, Link
FRITZ!Box 7530 6.98 - 8.00 /bin 4.4k - 9.3k, Link
FRITZ!Box 7530 AX 7.20 - 8.00 /bin 9.5k, Link
FRITZ!Box 7560 (main) 6.51 - 7.30 /bin 5.4k - 9.8k
FRITZ!Box 7580 (main) 6.53 - 7.30 /bin 5.4k - 9.8k
FRITZ!Box 7581 6.54 - 7.18 /bin 4.1k - 9.5k
FRITZ!Box 7582 6.83 - 7.18 /bin 4.1k - 9.5k
FRITZ!Box 7583 (main) 7.01 - 7.59 /bin 5.9k - 9.8k, Link
FRITZ!Box 7583 VDSL (main) 7.19 - 8.00 /bin 9.8k, Link
FRITZ!Box 7590 (main) 6.83 - 8.00 /bin 5.4k - 9.8k, Link
FRITZ!Box 7590 AX (main) 7.19 - 8.00 /bin 9.8k, Link
FRITZ!Box 7690 7.61 - 7.90 /bin Link
FRITZ!Smart Gateway 7.52 - 7.63 /bin Link
FRITZ!WLAN Repeater 300E 6.00 - 6.34 /bin 5.5k - 5.9k
FRITZ!WLAN Repeater 310 A 5.30 - 7.16 /bin 5.6k - 9.8k
FRITZ!WLAN Repeater 310 B 6.30 - 7.16 /bin 5.4k - 9.8k
FRITZ!WLAN Repeater 450E 6.00 - 7.15 /bin 5.5k - 9.8k
FRITZ!Repeater 600 7.11 - 7.58 /bin 9.8k - 10.0k, Link
FRITZ!Repeater 600 v2 7.27 - 7.58 /bin 10.0k, Link
FRITZ!WLAN Repeater 1160 6.51 - 7.15 /bin 5.4k - 9.8k
FRITZ!Repeater 1200 7.11 - 7.58 /bin 9.3k, Link
FRITZ!Repeater 1200 AX 7.30 - 7.58 /bin 9.3k, Link
FRITZ!WLAN Repeater 1750E 6.12 - 7.32 /bin 5.9k - 10.0k
FRITZ!Repeater 2400 7.12 - 7.58 /bin 9.8k - 10.0k, Link
FRITZ!Repeater 3000 6.98 - 7.58 /bin 4.5k - 9.3k, Link
FRITZ!Repeater 3000 AX 7.41 - 7.58 /bin Link
FRITZ!Repeater 6000 7.19 - 7.58 /bin 9.3k, Link
FRITZ!WLAN Repeater DVB-C 6.12 - 7.04 /bin 5.9k
FRITZ!Powerline 540E 5.58 - 7.15 /bin 5.5k - 9.8k
FRITZ!Powerline 546E 5.50 - 7.15 /bin 5.6k - 9.8k
FRITZ!Powerline 1240 AX 7.57 - 7.58 /bin Link
FRITZ!Powerline 1240E 6.33 - 7.16 /bin 5.4k - 9.8k
FRITZ!Powerline 1260E 6.90 - 7.58 /bin 4.3k - 9.3k, Link
FRITZ!Powerline 1260 7.27 - 7.58 /bin 9.3k, Link
101 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-12-21 07:44 GMT.

Firmware Symbol
5.29 - 7.32 main
1 symbol for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /bin/showshringbuf | grep -e '\.c$' -e '\.cpp$'

<empty>

}}