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:avmcounterd (avmcmd)
BoxMatrix >> Shell-Commands >> avmcounterd (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 avmcounterd!
|
AVM-Command
Command: | avmcounterd (avmcmd) - type Exec | Wiki | Freetz | IPPF | whmf | AVM | Web |
Location: | Shell-Commands >> AVM-Commands - Origin: AVM | ||||||
Path: | Release: /sbin Lab+Rel: /sbin | ||||||
Properties: | Size: 25.7k - 45.8k - Firmware: 7.39 - 8.00 | ||||||
Function: | RRDtool based data logging daemon. |
Goto: Endpoints - Events - Plugins - RRD-Files - Config - Logs - Source - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
avmcounterd is a rrdtool based data logging daemon.
fw 7.39 help:
root@fritz:/var/mod/root# avmcounterd -? usage: avmcounterd [options] options: -? - print this help -f - run in forground. (NOTSET) -s - stop daemon. (NOTSET) -v - verbose. (NOTSET) -p STRING - Pidfile. ("/var/run/avmcounterd.pid") -D STRING - switch debug logs on. (FUNC) start server: avmcounterd stop server : avmcounterd -s
Endpoints
aicmd endpoint(s) provided by avmcounterd, with these functions: (fw 7.39)
root@fritz:/var/mod/root# aicmd avmcounterd # provided by avmcounterd: - fw 7.39+ HELP - show help SLABDUMP - show slab allocation SLABSHOW - show slab information QUIT - disconnect backup - save rrd files to backup directory show status - show status show bundles - show bundles show libso - show loaded module libraries # provided by libavmrrdtoolapi.so: - fw 7.39+ rrdtoolapi cmd <cmd> - send command to rrdtool rrdtoolapi fetch <rrdname> <idx> - fetch data rrdtoolapi show status - show rrdtool status rrdtoolapi rrd show - show counter of bundles rrdtoolapi rrd list - list rrd rrdtoolapi rrd names - show dsnames rrdtoolapi rrd rrdinfo - show info for rrd # provided by libavmrrdtoolapi.so: - fw 7.90+ rrdtoolapi fetchapi <rrdname> <idx> - fetch data (used by API) # provided by libewnwlinux.so: - fw 7.01+ ewnwlinux show csockshell - show shells running ewnwlinux show genetlink - show gerneric netlink families # provided by libewnwlinux.so: - fw 7.90+ ewnwlinux netlink show - show internal information ewnwlinux netlink getroute [address] - get route for inet address ewnwlinux netlink interfaces - show interfaces ewnwlinux netlink routes [ 4 | 6 ] - show routes # provided by libavmcsock.so: - fw 7.01+ avmcsock show csock - show all csock avmcsock show dnsconfig - show all dns context avmcsock show timercb - show all timer avmcsock show debughandles - show all debughandles avmcsock show cprocess - show all processes avmcsock set debug - set debug flags # provided by libavmcsock.so: - fw 7.29+ avmcsock show cbcontext - show all cbdata avmcsock show daemon - show daemon status avmcsock show cbuf - show cbuf status # provided by libavmcsock.so: - fw 7.39+ avmcsock getsymbol <address> - get symbol for address avmcsock show dnsglobal - show all dns global values avmcsock show dnscache - show cache avmcsock show dnsqueries - show all pending queries avmcsock show avmipc [endpoint shmatch] - show avmipc events and states avmcsock ctimer show - show all timer avmcsock ctimer overview - show ctimer overview avmcsock iotrace format unctrl|hexdump - set format for csock iotrace avmcsock iotrace file - enable iotrace to file avmcsock iotrace enable - enable iotrace via debugmsg avmcsock iotrace disable - disable iotrace avmcsock iotrace match help|<match> - show allowed matches or set match avmcsock iotrace reset - remove all matches avmcsock iotrace show - show configuration # provided by libavmcsock.so: - fw 7.90+ avmcsock show signals - show signal handler avmcsock show connector [cache|stats] - show connector information avmcsock show clogger - show clogger information avmcsock set clogmod [ <module> [ '.' <submodule ] ... ] [ '=' <level> ] - set clogmod log level avmcsock slab check - red zone/free check avmcsock slab reap [heavy] - call slab_reap/slab_reap_heavy avmcsock slab dump [long] - show slab allocation avmcsock slab show - show slab information avmcsock slab ewma [show|activate|deactivate|reset] - show average allocates/freed per second avmcsock avmipc notifier [endpoint shmatch] - show registered notifier avmcsock avmipc set [endpoint shmatch] - show states/events sent avmcsock avmipc csv [endpoint shmatch] - show states/events sent and listing as csv
msgsend endpoint(s) provided by avmcounterd, with these functions: (endpoints + commands, collected manually)
avmcounterd reload # from avmcounterd.service
Events
Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2023-12-10 05:13 GMT.
The owners of Event-Sinks and Event-Sources are manual research, which may be incomplete or even wrong.
A *
in the Mod
column marks info from Supportdata-Probes, which will always stay incomplete.
A **
in the Mod
column marks info from Supportdata2 probes, which by their nature will stay way more incomplete.
A -
in the Mod
column marks manual research, the Firmware
then shows where the item occurs, not the Relation
.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
Endpoint | sock | me_avmcounterd.ctl | 8* | 7.39 - 7.51 | avmipc_command endpoint of avmcounterd | AVM |
Listens to | avmipc | @ | 9** | 7.39 - 7.51 | Special event for listeners of nameless private messages. | AVM |
Listens to | avmipc | aicmd_listener | 9** | 7.39 - 7.51 | Special event covering all aicmd compatible listeners. | AVM |
Listens to | avmipc | STATE_ETHSTATUS_FBSTATE | 9** | 7.39 - 7.51 | State of all LAN ports in JSON format. | AVM |
Command | cmd | avmcounterd (avmcmd) | RRDtool based data logging daemon. | AVM | ||
Sends | avmipc | STATE_RRDINFO_STATE | - | 7.39 - 7.51 | State of all RRD-Files in JSON format. | AVM |
6 event relations for this command |
Plugins
avmcounterd is highly modular and is extended by plugin libraries in /usr/share/avmcounterd
.
These are no Dependencies but they are optionally loaded if they are present there.
This is a subset of the Shared-Libraries section, filtered for files in /usr/share/avmcounterd
:
Daily updated index of all shared libraries found scanning Firmware-Probes . Last update: 2025-01-28 05:41 GMT.
The label (lib)
in the Library
column shows there are other objects in this wiki using this name.
The Mod
column shows the amount of models using the respective library. 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.
Library | Mod | Firmware | Description | Path | Size/Bytes | Type | Origin |
---|---|---|---|---|---|---|---|
libdocsissegstats.so | 4 | 7.90 - 8.00 | avmcounterd plugin library for cable_segment_stats | /usr/share/avmcounterd | 21.8k - 21.9k | Lib | AVM |
libethgstats.so | 32 | 7.39 - 8.00 | avmcounterd plugin library for ethernet stats | /usr/share/avmcounterd | 9.2k - 13.5k | Lib | AVM |
liblmsensors.so | 7 | 7.90 - 8.00 | avmcounterd plugin library for libsensors.so | /usr/share/avmcounterd | 9.4k - 13.6k | Lib | AVM |
libmemory_module.so | 3 | 7.39 | avmcounterd plugin library for memory usage stats (obsolete) | /usr/share/avmcounterd | 5.3k - 5.6k | Lib | AVM |
libprocmodules.so | 32 | 7.39 - 8.00 | avmcounterd plugin library for procfs stats | /usr/share/avmcounterd | 9.3k - 13.6k | Lib | AVM |
5 shared libraries |
libmemory_module.so was an early plugin which is now obsolete. Its functionality moved into libprocmodules.so.
Which plugins are loaded and which statistic modules they provide each could be checked with:
root@fritz:/var/mod/root# aicmd avmcounterd show libso libethgstats.so: 1 modules ethgstats libprocmodules.so: 3 modules memory cpuusage temps
The name of each module is the name for the respective RRD file:
RRD-Files
avmcounterd stores its RRD files in /var/tmp/rrd
.
This is a subset of the Temp-Files section, filtered for files in /var/tmp/rrd
:
Daily updated index of all rrd files found scanning Supportdata-Probes. Last update: 2025-01-28 06:58 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.
File | Mod | Firmware | Description | Path | Size/Bytes | Type | Origin |
---|---|---|---|---|---|---|---|
cpuusage.rrd | 8 | 7.39 - 8.00 | TODO | /var/tmp/rrd | 15.8k - 19.6k | AVM | |
dev_dsl.rrd | 1 | 7.39 | TODO | /var/tmp/rrd | 5.7k | AVM | |
dev_guest.rrd | 6 | 7.39 - 7.80 | TODO | /var/tmp/rrd | 10.8k | AVM | |
dev_lan.rrd | 6 | 7.39 - 7.80 | TODO | /var/tmp/rrd | 10.8k | AVM | |
dsliface_avm-ipsec.rrd | 4 | 7.39 - 7.90 | TODO | /var/tmp/rrd | 15.9k - 19.6k | AVM | |
dsliface_avm-wg.rrd | 1 | 7.39 | TODO | /var/tmp/rrd | 15.9k | AVM | |
dsliface_avmvpn.rrd | 1 | 7.39 | TODO | /var/tmp/rrd | 15.9k | AVM | |
dsliface_internet.rrd | 7 | 7.39 - 8.00 | TODO | /var/tmp/rrd | 15.8k - 19.6k | AVM | |
dsliface_lan0.rrd | 2 | 7.50 - 7.61 | TODO | /var/tmp/rrd | 15.8k | AVM | |
dsliface_mstv.rrd | 2 | 7.39 - 7.90 | TODO | /var/tmp/rrd | 15.9k - 19.6k | AVM | |
dsliface_voip+tr069.rrd | 2 | 7.50 - 7.59 | TODO | /var/tmp/rrd | 15.8k - 15.9k | AVM | |
ethgstats.rrd | 6 | 7.39 - 8.00 | TODO | /var/tmp/rrd | 25.9k - 32.3k | AVM | |
local.rrd | 6 | 7.39 - 7.80 | TODO | /var/tmp/rrd | 10.8k | AVM | |
macaddrs.rrd | 4 | 7.90 - 8.00 | TODO | /var/tmp/rrd | 10.8k - 361k | AVM | |
memory.rrd | 8 | 7.39 - 8.00 | TODO | /var/tmp/rrd | 5.7k - 7.0k | AVM | |
neigh($num).rrd | 6 | 7.39 - 7.80 | TODO | /var/tmp/rrd | 10.8k | AVM | |
nets.rrd | 4 | 7.90 - 8.00 | TODO | /var/tmp/rrd | 31.1k - 38.6k | AVM | |
onlinemonitor($num).rrd | 6 | 7.39 - 7.61 | TODO | /var/tmp/rrd | 18.4k | AVM | |
onlinemonitor_dsl_0.rrd | 2 | 7.90 - 8.00 | TODO | /var/tmp/rrd | 22.8k | AVM | |
onlinemonitor_xfrm_0.rrd | 1 | 7.90 | TODO | /var/tmp/rrd | 22.8k | AVM | |
prio.rrd | 5 | 7.39 - 7.80 | TODO | /var/tmp/rrd | 36.2k | AVM | |
temps.rrd | 7 | 7.39 - 7.90 | TODO | /var/tmp/rrd | 3.1k - 10.1k | AVM | |
22 rrd files |
For details about each RRD file see the showrrdstate article.
Config
Daily updated index of Configuration files accessed by this command. Last update: 2025-01-28 06:58 GMT.
A -
in the Mod
column marks manual research, the Firmware
then shows where the item occurs, not the Relation
.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
Config from | tffs | ar7.cfg (tffs) | - | 4.07 - 8.00 | TODO | AVM |
1 config relation for this command |
Logs
This is a subset of the Temp-Files section, filtered for logfiles of avmcounterd:
Daily updated index of all avmcounterd logfiles found scanning Supportdata-Probes. Last update: 2025-01-28 06:58 GMT.
The label (temp)
in the Logfile
column shows there are other objects in this wiki using this name.
The Mod
column shows the amount of models using the respective logfile. Click the column header to sort by this number.
Logfile | Mod | Firmware | Description | Path | Size/Bytes | Type | Origin |
---|---|---|---|---|---|---|---|
.srb_avmcounterd | 16 | 7.39 - 8.00 | shringbuf log for avmcounterd | /var | 4.0k - 8.1k | AVM | |
1 logfiles |
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 /sbin/avmcounterd | grep -e '\.c$' -e '\.cpp$' ar7/avmcounterd/avmcounterd.c ar7/avmcounterd/websrvrrdtool.c
Dependencies
Daily updated index of all dependencies of this command. Last update: 2025-01-28 07:41 GMT.
A *
in the Mod
column marks info from Supportdata-Probes, which will always stay incomplete.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
Started by | serv | avmcounterd.service | 32 | 7.39 - 8.00 | supervisor service for avmcounterd. | AVM |
Runs as | proc | avmcounterd (process) | 16* | 7.39 - 8.00 | Process running avmcounterd | AVM |
Registers | wdog | avmcounterd (watchdog) | 16* | 7.39 - 8.00 | Watchdog for avmcounterd | AVM |
Serving | port | Port-8188-tcp | 16* | 7.39 - 8.00 | TODO | AVM |
Serving | sock | me_avmcounterd.ctl | 16* | 7.39 - 8.00 | avmipc_command endpoint of avmcounterd | AVM |
Depends on | lib | ld.so | 12 | 7.39 - 8.00 | Dynamic linker / loader | Linux |
Depends on | lib | libar7cfg.so | 32 | 7.39 - 8.00 | TFFS-Configuration API to ar7.cfg and many more. | AVM |
Depends on | lib | libavmauth.so | 32 | 7.39 - 8.00 | Fritzbox authentification helpers | AVM |
Depends on | lib | libavmcipher.so | 32 | 7.39 - 8.00 | AES / DES / Rijndael encryption / decryption. | AVM |
Depends on | lib | libavmcounterd_module.so | 32 | 7.39 - 8.00 | API library for avmcounterd plugins. | AVM |
Depends on | lib | libavmcsock.so | 32 | 7.39 - 8.00 | Networking, I/O and helper functions | AVM |
Depends on | lib | libavmfbconf.so | 29 | 7.39 - 7.81 | API to hardcoded fbconf.cfg | AVM |
Depends on | lib | libavmfbstate.so | 32 | 7.39 - 7.81 | IPC fritzbox state notification | AVM |
Depends on | lib | libavmhmac.so | 32 | 7.39 - 8.00 | HMAC / SHA / MD5 hashing. | AVM |
Depends on | lib | libavmrrdstate.so | 32 | 7.39 - 8.00 | API wrapping rrdinfo | AVM |
Depends on | lib | libavmrrdtoolapi.so | 32 | 7.39 - 8.00 | API wrapping rrdtool | AVM |
Depends on | lib | libavmwdt.so | 20 | 7.61 - 8.00 | AVM-Watchdogs management API | AVM |
Depends on | lib | libboxenv.so | 18 | 7.90 - 8.00 | API to the rc.conf enhanced Config-Environment | AVM |
Depends on | lib | libboxlib.so | 32 | 7.39 - 7.81 | Box status, logging and statistics functions | AVM |
Depends on | lib | libc.so | 32 | 7.39 - 8.00 | Standard C library | Linux |
Depends on | lib | libcore.so | 20 | 7.61 - 8.00 | Gathers the MAC addresses of the device and maintains its device mode. | AVM |
Depends on | lib | libcrypto.so | 32 | 7.39 - 7.81 | OpenSSL general crypto and X.509 library | Linux |
Depends on | lib | libdl.so | 5 | 7.39 - 8.00 | Dynamic linking library | Linux |
Depends on | lib | libdputil.so | 32 | 7.39 - 8.00 | DataPipe / packet utilities | AVM |
Depends on | lib | libewnwlinux.so | 32 | 7.39 - 8.00 | Linux networking functions | AVM |
Depends on | lib | libewnwnet.so | 32 | 7.39 - 8.00 | Internet helper functions | AVM |
Depends on | lib | libfbconf.so | 20 | 7.61 - 8.00 | API to hardcoded fbconf.cfg | AVM |
Depends on | lib | libkavmcounterd.so | 32 | 7.39 - 8.00 | Kernel extensions for avmcounterd | AVM |
Depends on | lib | liblocalize.so | 18 | 7.90 - 8.00 | Charset conversion helper functions | AVM |
Depends on | lib | libm.so | 5 | 7.39 - 8.00 | C math library | Linux |
Depends on | lib | libpthread.so | 5 | 7.39 - 8.00 | POSIX threading library | Linux |
Depends on | lib | librrd.so | 18 | 7.90 - 8.00 | RRDtool core API | RRDtool |
Depends on | lib | librt.so | 5 | 7.39 - 8.00 | POSIX realtime extensions library | Linux |
Depends on | lib | libslab_c++.so | 18 | 7.90 - 8.00 | C++ slab allocator | AVM |
Depends on | lib | libsvctl.so | 32 | 7.39 - 8.00 | supervisor notification library | AVM |
Depends on | lib | libtiinterprete | 1 | 7.39 | ||
Depends on | lib | libtiinterpreter.so | 32 | 7.39 - 8.00 | Preprocessor for SSI-Files by TI. | AVM |
Depends on | lib | libwdt.so | 29 | 7.39 - 7.81 | AVM-Watchdogs management API | AVM |
Depends on | lib | libwebkpiclient.so | 32 | 7.39 - 8.00 | KPI sensor for system parts which use HTTP / HTTPS | AVM |
Depends on | lib | libwebsrv.so | 32 | 7.39 - 8.00 | HTTP / HTTPS webserver and tools. | AVM |
Depends on | lib | libz.so | 32 | 7.39 - 8.00 | Zlib compressor / decompressor | Linux |
41 dependencies for this command |
Model-Matrix
Daily updated index of the presence, path and size of this command for each model. Last update: 2025-01-28 05:40 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 4040 | 7.39 - 8.00 | /sbin | 33.7k - 33.8k |
FRITZ!Box 4050 | 7.58 - 7.90 | /sbin | 33.7k |
FRITZ!Box 4060 | 7.39 - 7.90 | /sbin | 33.7k |
FRITZ!Box 5530 Fiber (main) | 7.39 - 8.00 | /sbin | 35.9k - 40.2k |
FRITZ!Box 5590 Fiber (main) | 7.39 - 8.00 | /sbin | 33.7k |
FRITZ!Box 5690 Pro (main) | 7.62 | /sbin | 33.7k |
FRITZ!Box 6490 Cable (atom) | 7.39 - 7.51 | /sbin | 33.6k - 37.6k |
FRITZ!Box 6590 Cable (atom) | 7.39 - 7.51 | /sbin | 33.6k - 37.6k |
FRITZ!Box 6591 Cable (atom) | 7.39 - 8.00 | /sbin | 33.8k - 45.8k |
FRITZ!Box 6660 Cable (atom) | 7.39 - 8.00 | /sbin | 37.8k - 45.8k |
FRITZ!Box 6670 Cable (atom) | 7.61 - 7.90 | /sbin | 37.9k - 42.0k |
FRITZ!Box 6690 Cable (atom) | 7.39 - 7.90 | /sbin | 37.8k - 45.8k |
FRITZ!Box 6820 LTE v1 (main) | 7.51 - 7.59 | /sbin | 36.1k - 36.2k |
FRITZ!Box 6820 LTE v2 (main) | 7.51 - 7.59 | /sbin | 36.1k - 36.2k |
FRITZ!Box 6820 LTE v3 (main) | 7.51 - 7.57 | /sbin | 36.1k - 36.2k |
FRITZ!Box 6820 LTE v4 | 7.59 | /sbin | 36.2k |
FRITZ!Box 6850 LTE | 7.39 - 7.90 | /sbin | 33.7k - 35.9k |
FRITZ!Box 6850 5G | 7.39 - 7.90 | /sbin | 33.7k - 33.8k |
FRITZ!Box 6890 LTE (main) | 7.39 - 7.57 | /sbin | 35.9k - 36.0k |
FRITZ!Box 6890 LTE v1 (main) | 7.39 - 7.57 | /sbin | 35.9k - 36.0k |
FRITZ!Box 6890 LTE v2 (main) | 7.39 - 7.57 | /sbin | 35.9k - 36.0k |
FRITZ!Box 7490 (main) | 7.51 | /sbin | 36.1k |
FRITZ!Box 7510 | 7.39 - 8.00 | /sbin | 33.7k |
FRITZ!Box 7520 | 7.39 - 8.00 | /sbin | 33.7k - 33.8k |
FRITZ!Box 7520 v2 (main) | 7.39 - 8.00 | /sbin | 33.7k - 33.8k |
FRITZ!Box 7530 | 7.39 - 8.00 | /sbin | 25.7k - 33.8k |
FRITZ!Box 7530 AX | 7.39 - 8.00 | /sbin | 33.8k - 38.0k |
FRITZ!Box 7583 (main) | 7.50 - 7.59 | /sbin | 35.9k - 36.0k |
FRITZ!Box 7583 VDSL (main) | 7.59 - 8.00 | /sbin | 36.0k - 40.2k |
FRITZ!Box 7590 (main) | 7.39 - 8.00 | /sbin | 27.2k - 40.2k |
FRITZ!Box 7590 AX (main) | 7.39 - 8.00 | /sbin | 27.2k - 40.2k |
FRITZ!Box 7690 | 7.61 - 7.90 | /sbin | 33.7k |
32 models use this command |
Symbols
Daily updated index of all symbols of this command. Last update: 2025-01-28 07:41 GMT.
Firmware | Symbol |
---|---|
7.39 - 8.00 | main |
1 symbol for this command |