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:avmcounterd (avmcmd)

From BoxMatrix


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

Info
  
Name-Collision - multiple objects in this wiki use the name avmcounterd!
avmcounterd (avmcmd) RRDtool based data logging daemon.
avmcounterd (process) RRDtool based data logging daemon.
avmcounterd (watchdog) RRDtool based data logging daemon.

AVM-Command

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 libewnwlinux.so: - fw 7.01+

ewnwlinux show csockshell                - show shells running
ewnwlinux show genetlink                 - show gerneric netlink families

# 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

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: 2024-03-28 15:46 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.

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 temp files found scanning Supportdata-Probes. Last update: 2024-03-28 06:53 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.

For details about each RRD file see the showrrdstate article.

Config

Daily updated index of Configuration files accessed by this command. Last update: 2024-03-28 06:53 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 - 7.80 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: 2024-03-28 06:53 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.

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: 2024-03-28 07:36 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 45 7.39 - 7.90 supervisor service for avmcounterd. AVM
Runs as proc avmcounterd (process) 9* 7.39 - 7.80 RRDtool based data logging daemon. AVM
Registers wdog avmcounterd (watchdog) 9* 7.39 - 7.80 RRDtool based data logging daemon. AVM
Serving port Port-8188-tcp 9* 7.39 - 7.80 TODO AVM
Serving sock me_avmcounterd.ctl 9* 7.39 - 7.80 avmipc_command endpoint of avmcounterd AVM
Depends on lib ld.so 11 7.39 - 7.90 Dynamic linker / loader Linux
Depends on lib libar7cfg.so 45 7.39 - 7.90 TFFS-Configuration API to ar7.cfg and many more. AVM
Depends on lib libavmauth.so 45 7.39 - 7.90 Fritzbox authentification helpers AVM
Depends on lib libavmcipher.so 45 7.39 - 7.90 AES / DES / Rijndael encryption / decryption. AVM
Depends on lib libavmcounterd_module.so 45 7.39 - 7.90 API library for avmcounterd plugins. AVM
Depends on lib libavmcsock.so 45 7.39 - 7.90 Networking, I/O and helper functions AVM
Depends on lib libavmfbconf.so 45 7.39 - 7.80 API to hardcoded fbconf.cfg AVM
Depends on lib libavmfbstate.so 45 7.39 - 7.80 IPC fritzbox state notification AVM
Depends on lib libavmhmac.so 45 7.39 - 7.90 HMAC / SHA / MD5 hashing. AVM
Depends on lib libavmrrdstate.so 45 7.39 - 7.90 API wrapping rrdinfo AVM
Depends on lib libavmrrdtoolapi.so 45 7.39 - 7.90 API wrapping rrdtool AVM
Depends on lib libavmwdt.so 3 7.90 AVM-Watchdogs management API. Renamed libwdt.so AVM
Depends on lib libboxenv.so 3 7.90 API to the rc.conf enhanced Config-Environment AVM
Depends on lib libboxlib.so 45 7.39 - 7.80 Box status, logging and statistics functions AVM
Depends on lib libc.so 45 7.39 - 7.90 Standard C library Linux
Depends on lib libcore.so 3 7.90 Collects the MAC addresses of the device it's running on AVM
Depends on lib libcrypto.so 45 7.39 - 7.80 OpenSSL general crypto and X.509 library Linux
Depends on lib libdl.so 39 7.39 - 7.90 Dynamic linking library Linux
Depends on lib libdputil.so 45 7.39 - 7.90 DataPipe / packet utilities AVM
Depends on lib libewnwlinux.so 45 7.39 - 7.90 Linux networking functions AVM
Depends on lib libewnwnet.so 45 7.39 - 7.90 Internet helper functions AVM
Depends on lib libfbconf.so 3 7.90 TODO AVM
Depends on lib libkavmcounterd.so 45 7.39 - 7.90 Kernel extensions for avmcounterd AVM
Depends on lib liblocalize.so 3 7.90 TODO AVM
Depends on lib libm.so 39 7.39 - 7.90 C math library Linux
Depends on lib libpthread.so 39 7.39 - 7.90 POSIX threading library Linux
Depends on lib librt.so 39 7.39 - 7.90 POSIX realtime extensions library Linux
Depends on lib libslab_c++.so 3 7.90 TODO AVM
Depends on lib libsvctl.so 45 7.39 - 7.90 supervisor notification library AVM
Depends on lib libtiinterpreter.so 45 7.39 - 7.90 Preprocessor for SSI-Files by TI. AVM
Depends on lib libwdt.so 45 7.39 - 7.80 AVM-Watchdogs management API AVM
Depends on lib libwebkpiclient.so 45 7.39 - 7.90 KPI sensor for system parts which use HTTP / HTTPS AVM
Depends on lib libwebsrv.so 45 7.39 - 7.90 HTTP / HTTPS webserver and tools. AVM
Depends on lib libz.so 45 7.39 - 7.90 Zlib compressor / decompressor Linux
39 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-03-28 15:46 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) label in the Model column shows which CPU is meant for models with multiple Linux instances.
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 4020 7.39 /sbin 37.8k
FRITZ!Box 4040 7.39 - 7.57 /sbin 33.7k - 37.8k
FRITZ!Box 4060 7.39 - 7.57 /sbin 33.7k - 37.8k
FRITZ!Box 5530 Fiber (main) 7.39 - 7.80 /sbin 35.9k - 37.8k
FRITZ!Box 5590 Fiber (arm) 7.39 - 7.80 /sbin 33.7k - 37.8k
FRITZ!Box 6430 Cable (arm) 7.57 /sbin 37.9k
FRITZ!Box 6490 Cable (arm) 7.39 - 7.57 /sbin 33.6k - 37.9k
FRITZ!Box 6490 Cable (atom) 7.39 - 7.51 /sbin 33.6k - 37.6k
FRITZ!Box 6590 Cable (arm) 7.39 - 7.57 /sbin 33.6k - 37.9k
FRITZ!Box 6590 Cable (atom) 7.39 - 7.51 /sbin 33.6k - 37.6k
FRITZ!Box 6591 Cable (arm) 7.39 - 7.57 /sbin 33.8k - 45.8k
FRITZ!Box 6591 Cable (atom) 7.39 - 7.57 /sbin 33.8k - 45.8k
FRITZ!Box 6660 Cable (arm) 7.39 - 7.57 /sbin 37.8k - 45.8k
FRITZ!Box 6660 Cable (atom) 7.39 - 7.57 /sbin 37.8k - 45.8k
FRITZ!Box 6670 Cable (arm) 7.57 - 7.61 /sbin 37.9k
FRITZ!Box 6670 Cable (atom) 7.61 /sbin 37.9k
FRITZ!Box 6690 Cable (arm) 7.39 - 7.57 /sbin 37.8k - 45.8k
FRITZ!Box 6690 Cable (atom) 7.39 - 7.57 /sbin 37.8k - 45.8k
FRITZ!Box 6820 LTE v1 7.39 - 7.51 /sbin 36.1k - 37.8k
FRITZ!Box 6820 LTE v2 7.39 - 7.51 /sbin 36.1k - 37.8k
FRITZ!Box 6820 LTE v3 7.39 - 7.57 /sbin 36.1k - 36.2k
FRITZ!Box 6840 LTE 7.39 /sbin 37.8k
FRITZ!Box 6850 LTE 7.39 - 7.58 /sbin 33.7k - 37.8k
FRITZ!Box 6850 5G 7.39 - 7.51 /sbin 33.7k - 37.8k
FRITZ!Box 6890 LTE 7.39 - 7.51 /sbin 35.9k - 37.8k
FRITZ!Box 6890 LTE v1 7.39 - 7.51 /sbin 35.9k - 37.8k
FRITZ!Box 6890 LTE v2 7.39 - 7.51 /sbin 35.9k - 37.8k
FRITZ!Box 7272 7.39 /sbin 37.8k
FRITZ!Box 7430 7.39 /sbin 37.8k
FRITZ!Box 7490 (main) 7.39 - 7.57 /sbin 36.1k - 37.9k
FRITZ!Box 7510 7.39 - 7.57 /sbin 33.7k
FRITZ!Box 7520 7.39 - 7.51 /sbin 33.7k - 37.8k
FRITZ!Box 7520 v2 (arm) 7.39 - 7.57 /sbin 33.7k - 37.8k
FRITZ!Box 7530 7.39 - 7.56 /sbin 25.7k - 37.8k
FRITZ!Box 7530 AX 7.39 - 7.90 /sbin 33.8k - 37.8k
FRITZ!Box 7560 7.39 /sbin 37.8k
FRITZ!Box 7583 7.50 - 7.57 /sbin 35.9k - 36.0k
FRITZ!Box 7590 7.39 - 7.90 /sbin 27.2k - 40.1k
FRITZ!Box 7590 AX 7.39 - 7.90 /sbin 27.2k - 40.1k
FRITZ!Repeater 600 7.39 /sbin 37.8k
FRITZ!Repeater 1200 7.39 /sbin 37.8k
FRITZ!WLAN Repeater 1750E 7.39 /sbin 37.8k
FRITZ!Repeater 2400 7.39 /sbin 37.8k
FRITZ!Repeater 3000 7.39 /sbin 37.8k
FRITZ!Repeater 3000 AX 7.39 /sbin 37.8k
FRITZ!Powerline 1260E 7.39 /sbin 37.8k
46 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-03-28 07:36 GMT.

Firmware Symbol
7.39 - 7.90 main
1 symbol for this command

SMW-Browser

Information is currently being retrieved from the backend.