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.
Property:log server (avmcmd)
| BoxMatrix >> Shell-Commands >> log_server (avmcmd) | @ 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 | 
| Name-Collision - multiple objects in this wiki use the name log_server! 
 | 
AVM-Command
| Command: | log_server (avmcmd) - type Exec | Wiki | Freetz | IPPF | whmf | AVM | Web | 
| Location: | Shell-Commands >> AVM-Commands - Origin: AVM | ||||||
| Path: | Release: /usr/bin Lab+Rel: /usr/bin | ||||||
| Properties: | Size: 36.5k - 44.5k - Firmware: 6.98 - 7.51 | ||||||
| Function: | Inter-CPU logging receiver daemon for x490 models. | ||||||
Goto: Source - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
log_server and log_sink are a remote logger solution to forward the Scorpion Linux logs to the VR9 Linux
on 3490, 5490, 5491 and 7490 models.
log_server listens to a range of internal IPv6 UDP ports on the wasp interfacee of the VR9 Linux which connects the Scorpion.
It writes all received data to a range of logs on the VR9 Linux, excerpt from a 7490 fw 7.29 ps on VR9:
5018 root 2464 S< log_server -d -t 0 -i wasp -w 20 4201 /var/log/panic2 5021 root 2464 S< log_server -d -t 0 -i wasp -w 20 4202 /var/log/debug2 5025 root 2464 S< log_server -d -t 0 -i wasp -w 20 4210 /var/log/wland_hal_remoted.log 5029 root 1572 S< log_server -d -t 0 -i wasp -w 20 4211 /var/log/hostapd.log 5031 root 2464 S< log_server -d -t 0 -i wasp -w 20 4212 /var/log/wpa_supplicant.log 5033 root 1572 S< log_server -d -t 0 -i wasp -w 20 4213 /var/log/acfg.trace 5035 root 2464 S< log_server -d -t 0 -i wasp -w 20 4214 /var/log/crash2
The counterpart daemon runninng on the Scoripion Linux is log_sink which forwards the data to log_server.
There's also one instance of log_server running on Scoripion Linux which awaits remote commands from the VR9.
Excerpt from a 7490 fw 7.29 ps on Scorpion: 
110 1 root S 1440 1.2 0 0.0 log_server -d -b 1 -t 0 -c -i eth0 -w 10 4220 /tmp/rcmd_vr9
See the log_sink article how this is used during supportdata creation on both sides.
rcmd_vr9 is a normal file which, if present, is interpreted by watch_supportdata_trigger and deleted after dispatching it.
It is recreated by log_server once a new command arrives.
fw 7.29 help:
fritz3:/var/media/ftp $ log_server -?
Usage: log_server [OPTION...] Port output_file
log_server listens to a UDP port and writes data to a given file (IPv6only).
The log data will be held in a ring buffer, if 'readback' is enabled the
internal ring buffer is filled with the content of the provided file.
When no data is received for [timeout] seconds, the content of the ring buffer
will be written into the provided file.
  -b, --buffer=KB            log write buffer (128)
  -c, --clean                clean buffer after write
  -d, --daemon               start daemonized
  -i, --interface=intf       interface name
  -l, --listen-ip=IPv6       listen ip address
  -r, --readback             fill log buffer with the content of output_file
  -t, --write-timeout=sec    log write timeout (5)
  -v, --verbose              verbose
  -w, --watchdog-timeout=sec watchdog timeout (0)
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version 
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options. 
Report bugs to j.balke@avm.de.
 Source
The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.29 source files:
$ strings /usr/bin/log_server | grep -e '\.c$' -e '\.cpp$' argp-parse.c argp-help.c
Dependencies
Daily updated index of all dependencies of this command. Last update: 2025-05-26 06:16 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
| Relation | Typ | Object | Mod | Firmware | Info | Origin | 
|---|---|---|---|---|---|---|
| Runs as | proc | log_server (process) | 8* | 7.01 - 7.59 | Process running log_server | AVM | 
| Registers | wdog | log_server (watchdog) | 8* | 7.01 - 7.59 | Watchdog for log_server | AVM | 
| Serving | port | Port-4201-udp | 4* | 7.01 - 7.59 | log_server Inter-CPU logging to panic2 on VR9 of x490 models. | AVM | 
| Serving | port | Port-4202-udp | 4* | 7.01 - 7.59 | log_server Inter-CPU logging to debug2 on VR9 of x490 models. | AVM | 
| Serving | port | Port-4210-udp | 4* | 7.01 - 7.59 | log_server Inter-CPU logging to wland_hal_remoted.log on VR9 of x490 models. | AVM | 
| Serving | port | Port-4211-udp | 4* | 7.01 - 7.59 | log_server Inter-CPU logging to hostapd.log on VR9 of x490 models. | AVM | 
| Serving | port | Port-4212-udp | 4* | 7.01 - 7.59 | log_server Inter-CPU logging to wpa_supplicant.log on VR9 of x490 models. | AVM | 
| Serving | port | Port-4213-udp | 4* | 7.01 - 7.59 | log_server Inter-CPU logging to acfg.trace on VR9 of x490 models. | AVM | 
| Serving | port | Port-4214-udp | 4* | 7.01 - 7.59 | log_server Inter-CPU logging to crash2 on VR9 of x490 models. | AVM | 
| Serving | port | Port-4220-udp | 4* | 7.01 - 7.59 | log_server Inter-CPU logging to rcmd_vr9 on Scorpion of x490 models. | AVM | 
| Serving | port | Port-4221-udp | 1* | 7.08 - 7.19 | log_server Inter-CPU logging to supportdata_wlan_offload on VR9 of x490 models. | AVM | 
| Serving | sock | avmnexus_WLANConfigMaster.ctl | 41* | 6.90 - 8.00 | avmnexusd worker endpoint for WLAN config sharing (master) | AVM | 
| Serving | sock | avmnexus_WLANStationExchangeMaster.ctl | 41* | 6.90 - 8.00 | avmnexusd worker endpoint for WLAN steering (master) | AVM | 
| Serving | sock | wlancsi_async.socket | 74* | 6.25 - 8.00 | TODO | AVM | 
| Depends on | lib | ld.so | 8 | 7.01 - 7.51 | Dynamic linker / loader | Linux | 
| Depends on | lib | libbacktrace.so | 8 | 6.98 - 7.51 | Crash handler and logger | AVM | 
| Depends on | lib | libc.so | 8 | 6.98 - 7.51 | Standard C library | Linux | 
| Depends on | lib | libwdt.so | 8 | 6.98 - 7.51 | AVM-Watchdogs management API | AVM | 
| 18 dependencies for this command | ||||||
Model-Matrix
Daily updated index of the presence, path and size of this command for each model. Last update: 2025-05-26 04:32 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 3490 (main) | 7.01 - 7.30 | /usr/bin | 38.2k - 40.5k | 
| FRITZ!Box 3490 (scrpn) | 6.98 - 7.29 | /usr/bin | 41.2k - 44.5k | 
| FRITZ!Box 5490 (main) | 7.01 - 7.29 | /usr/bin | 38.2k - 40.5k | 
| FRITZ!Box 5490 (scrpn) | 6.98 - 7.29 | /usr/bin | 41.2k - 44.5k | 
| FRITZ!Box 5491 (main) | 7.01 - 7.29 | /usr/bin | 38.2k - 40.5k | 
| FRITZ!Box 5491 (scrpn) | 6.98 - 7.29 | /usr/bin | 41.2k - 44.5k | 
| FRITZ!Box 7490 (main) | 6.98 - 7.51 | /usr/bin | 36.5k - 40.5k | 
| FRITZ!Box 7490 (scrpn) | 6.98 - 7.51 | /usr/bin | 36.5k - 44.5k | 
| 8 models use this command | |||
Symbols
Daily updated index of all symbols of this command. Last update: 2025-05-26 06:16 GMT.
| Firmware | Symbol | 
|---|---|
| 6.98 - 7.51 | argp_error | 
| 6.98 - 7.51 | argp_failure | 
| 6.98 - 7.51 | argp_fmtstream_free | 
| 6.98 - 7.51 | argp_fmtstream_printf | 
| 6.98 - 7.51 | argp_help | 
| 6.98 - 7.51 | argp_make_fmtstream | 
| 6.98 - 7.51 | argp_parse | 
| 6.98 - 7.51 | argp_state_help | 
| 6.98 - 7.51 | argp_usage | 
| 6.98 - 7.51 | close_log | 
| 6.98 - 7.51 | logd_get_running | 
| 6.98 - 7.51 | logd_install_crashhandler | 
| 6.98 - 7.51 | logd_install_sighandler | 
| 6.98 - 7.51 | logd_install_watchdog | 
| 6.98 - 7.51 | main | 
| 6.98 - 7.51 | open_log | 
| 16 symbols for this command | |



