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:avmntpd (avmcmd)
BoxMatrix >> Shell-Commands >> avmntpd (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 avmntpd!
|
AVM-Command
Command: | avmntpd (avmcmd) - type Exec | Wiki | Freetz | IPPF | whmf | AVM | Web |
Location: | Shell-Commands >> AVM-Commands - Origin: AVM | ||||||
Path: | Release: /sbin Lab+Rel: /sbin | ||||||
Properties: | Size: 17.4k - 29.8k - Firmware: 7.39 - 8.00 | ||||||
Function: | SNTP client daemon. |
Goto: Examples - Endpoints - Events - Config - Logs - Source - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
avmntpd is a new SNTP client daemon.
It is subscribed to the state_iface_inet
state in the AVMIPC-Datastore and gets active when it turns CONNECTED
.
Since fw 7.39 ~100k it is triggered by the STATE_IFACE_INET_FAMILY state instead.
It then performs a SNTP request to the time server and starts / restarts / controls chronyd on success and sets the avmipc
state STATE_SYSTEMTIMESTATUS_FBSTATE.
The job of avmntpd is apparently to quickly get a system time, while letting chronyd maintain its precision and distribution.
fw 7.39 help:
root@fritz:/var/mod/root# avmntpd -? usage: avmntpd [options] options: -? - print this help -s - stop daemon. (NOTSET) -p STRING - Pidfile. ("/var/run/avmntpd.pid") -D STRING - switch debug logs on. (FUNC) start daemon: avmntpd stop daemon : avmntpd -s
Examples
Internet connection status triggering avmntpd:
root@fritz:/var/mod/root# aicmd avmipcd datastore query state_iface_inet full state_iface_inet: local:avmntpd local:_anony-ctlmgr-1860-2765839584 local:vpnd DATA: <<!EOF! CONNECTED^@!EOF!
Excerpt from supportdata 7.39 which calls 'showshringbuf avmntpd':
##### BEGIN SECTION avmntpd 1970-01-01 01:00:35.481 - reconfig 1970-01-01 01:00:35.550 - chronyd_notify v4 = 0, v6 = 0 1970-01-01 01:00:47.550 - chronyd_notify v4 = 0, v6 = 0 1970-01-01 01:02:08.562 - chronyd_notify v4 = 0, v6 = 0 1970-01-01 01:02:09.124 - chronyd_notify v4 = 1, v6 = 0 1970-01-01 01:02:09.124 - now online, starting sntp 1970-01-01 01:02:09.125 - dns_query: resolving server ntp1.t-online.de 1970-01-01 01:02:09.141 - dns_complete() append for ntp1.t-online.de: 194.25.134.196 1970-01-01 01:02:09.142 - sntp_query(): send ntp request to 194.25.134.196:123 1970-01-01 01:02:09.164 - system time is 1649694689.499489 seconds behind 1970-01-01 01:02:09.164 - setting time, deviation is 1649694689 seconds 2022-04-11 18:33:38.674 - chronyd_notify v4 = 1, v6 = 0 2022-04-11 18:33:38.679 - chronyd: started ##### END SECTION avmntpd
Another sample:
##### BEGIN SECTION avmntpd 1970-01-01 01:00:35.050 - reconfig 1970-01-01 01:02:59.172 - chronyd_notify v4 = 0, v6 = 0 1970-01-01 01:03:02.172 - chronyd_notify v4 = 0, v6 = 0 1970-01-01 01:03:02.423 - chronyd_notify v4 = 1, v6 = 0 1970-01-01 01:03:02.423 - now online, starting sntp 1970-01-01 01:03:02.423 - dns_query: resolving server ntp1.t-online.de 1970-01-01 01:03:02.432 - dns_complete() append for ntp1.t-online.de: 194.25.134.196 1970-01-01 01:03:02.433 - sntp_query(): send ntp request to 194.25.134.196:123 1970-01-01 01:03:02.463 - system time is 1648231340.317181 seconds behind 1970-01-01 01:03:02.463 - setting time, deviation is 1648231340 seconds 2022-03-25 19:05:22.785 - chronyd_notify v4 = 1, v6 = 1 2022-03-25 19:05:22.788 - chronyd: started 2022-03-26 03:05:22.789 - chronyc: >>> refresh 2022-03-26 03:05:22.847 - chronyc: <<< 200 OK 2022-03-26 11:05:22.791 - chronyc: >>> refresh 2022-03-26 11:05:22.798 - chronyc: <<< 200 OK ##### END SECTION avmntpd
Endpoints
aicmd endpoint(s) provided by avmntpd, with these functions: (fw 7.39)
root@fritz:/var/mod/root# aicmd avmntpd # provided by avmntpd: - fw 7.39+ HELP - show help SLABDUMP - show slab allocation SLABSHOW - show slab information QUIT - disconnect # 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 avmntpd, with these functions: (endpoints + commands, collected manually)
avmntpd reload # from avmntpd.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_avmntpd.ctl | 11* | 7.39 - 7.57 | avmipc_command endpoint of avmntpd | AVM |
Listens to | avmipc | @ | 12** | 7.39 - 7.57 | Special event for listeners of nameless private messages. | AVM |
Listens to | avmipc | aicmd_listener | 12** | 7.39 - 7.57 | Special event covering all aicmd compatible listeners. | AVM |
Listens to | avmipc | state_iface_inet | 1** | 7.39 | State of the internet connection in JSON format. | AVM |
Listens to | avmipc | STATE_IFACE_INET_FAMILY | 12** | 7.39 - 7.57 | State of the internet connection in JSON format. | AVM |
Command | cmd | avmntpd (avmcmd) | SNTP client daemon. | AVM | ||
Sends | avmipc | STATE_SYSTEMTIMESTATUS_FBSTATE | - | 7.39 - 7.57 | State of the validity of the system time in JSON format. | AVM |
7 event relations for this command |
Config
Daily updated index of Configuration files accessed by this command. Last update: 2024-12-21 07:02 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 |
Config from | tffs | chrony.drift (tffs) | - | 4.79 | TODO | AVM |
2 config relations for this command |
Logs
This is a subset of the Temp-Files section, filtered for logfiles of avmntpd:
Daily updated index of all avmntpd logfiles found scanning Supportdata-Probes. Last update: 2024-12-21 07:02 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_avmntpd | 20 | 7.39 - 8.00 | shringbuf log for avmntpd | /var | 4.0k | 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/avmntpd | grep -e '\.c$' -e '\.cpp$' ar7/avmntpd/avmntpd.c ar7/avmntpd/sntp.c ar7/avmntpd/chronyd_ctl.c
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 |
---|---|---|---|---|---|---|
Started by | serv | avmntpd.service | 44 | 7.39 - 8.00 | supervisor service for avmntpd. | AVM |
Runs as | proc | avmntpd (process) | 20* | 7.39 - 8.00 | Process running avmntpd | AVM |
Registers | wdog | avmntpd (watchdog) | 20* | 7.39 - 8.00 | Watchdog for avmntpd | AVM |
Serving | sock | me_avmntpd.ctl | 20* | 7.39 - 8.00 | avmipc_command endpoint of avmntpd | AVM |
Depends on | lib | ld.so | 19 | 7.39 - 8.00 | Dynamic linker / loader | Linux |
Depends on | lib | libar7cfg.so | 44 | 7.39 - 8.00 | TFFS-Configuration API to ar7.cfg and many more. | AVM |
Depends on | lib | libavmauth.so | 44 | 7.39 - 8.00 | Fritzbox authentification helpers | AVM |
Depends on | lib | libavmcipher.so | 44 | 7.39 - 8.00 | AES / DES / Rijndael encryption / decryption. | AVM |
Depends on | lib | libavmcsock.so | 44 | 7.39 - 8.00 | Networking, I/O and helper functions | AVM |
Depends on | lib | libavmfbconf.so | 41 | 7.39 - 7.81 | API to hardcoded fbconf.cfg | AVM |
Depends on | lib | libavmfbstate.so | 44 | 7.39 - 8.00 | IPC fritzbox state notification | AVM |
Depends on | lib | libavmhmac.so | 44 | 7.39 - 8.00 | HMAC / SHA / MD5 hashing. | AVM |
Depends on | lib | libavmwdt.so | 22 | 7.61 - 8.00 | AVM-Watchdogs management API | AVM |
Depends on | lib | libboxenv.so | 21 | 7.90 - 8.00 | API to the rc.conf enhanced Config-Environment | AVM |
Depends on | lib | libboxlib.so | 44 | 7.39 - 8.00 | Box status, logging and statistics functions | AVM |
Depends on | lib | libc.so | 44 | 7.39 - 8.00 | Standard C library | Linux |
Depends on | lib | libcore.so | 22 | 7.61 - 8.00 | Gathers the MAC addresses of the device and maintains its device mode. | AVM |
Depends on | lib | libcrypto.so | 44 | 7.39 - 8.00 | 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 | 44 | 7.39 - 8.00 | DataPipe / packet utilities | AVM |
Depends on | lib | libeventlog.so | 21 | 7.90 - 8.00 | System Event-Log management API | AVM |
Depends on | lib | libewnwjson.so | 21 | 7.90 - 8.00 | JSON helper functions | AVM |
Depends on | lib | libewnwlinux.so | 44 | 7.39 - 8.00 | Linux networking functions | AVM |
Depends on | lib | libewnwnet.so | 44 | 7.39 - 8.00 | Internet helper functions | AVM |
Depends on | lib | libfbconf.so | 22 | 7.61 - 8.00 | API to hardcoded fbconf.cfg | AVM |
Depends on | lib | libjuisclient.so | 21 | 7.90 - 8.00 | Update-Search - second generation - JUIS | AVM |
Depends on | lib | liblocalize.so | 21 | 7.90 - 8.00 | Charset conversion helper functions | AVM |
Depends on | lib | libm.so | 5 | 7.90 - 8.00 | C math library | Linux |
Depends on | lib | liboauth2.so | 21 | 7.90 - 8.00 | OAuth v2.0 authentificator | Linux |
Depends on | lib | libpthread.so | 5 | 7.39 - 8.00 | POSIX threading library | Linux |
Depends on | lib | librt.so | 5 | 7.39 - 8.00 | POSIX realtime extensions library | Linux |
Depends on | lib | libslab_c++.so | 21 | 7.90 - 8.00 | C++ slab allocator | AVM |
Depends on | lib | libsvctl.so | 44 | 7.39 - 8.00 | supervisor notification library | AVM |
Depends on | lib | libtiinterpreter.so | 44 | 7.39 - 8.00 | Preprocessor for SSI-Files by TI. | AVM |
Depends on | lib | libwdt.so | 41 | 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 | 44 | 7.39 - 8.00 | HTTP / HTTPS webserver and tools. | AVM |
Depends on | lib | libyajl.so | 21 | 7.90 - 8.00 | Event-driven JSON parser | Linux |
Depends on | lib | libz.so | 44 | 7.39 - 8.00 | 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-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 4040 | 7.39 - 8.00 | /sbin | 21.5k - 21.6k |
FRITZ!Box 4050 | 7.58 - 7.90 | /sbin | 21.5k - 25.5k |
FRITZ!Box 4060 | 7.39 - 7.90 | /sbin | 21.5k |
FRITZ!Box 5530 Fiber (main) | 7.39 - 8.00 | /sbin | 27.9k - 28.0k |
FRITZ!Box 5590 Fiber (main) | 7.39 - 8.00 | /sbin | 21.5k |
FRITZ!Box 5690 Pro (main) | 7.62 | /sbin | 21.5k |
FRITZ!Box 6490 Cable (atom) | 7.39 - 7.51 | /sbin | 25.4k |
FRITZ!Box 6590 Cable (atom) | 7.39 - 7.51 | /sbin | 25.4k |
FRITZ!Box 6591 Cable (atom) | 7.39 - 8.00 | /sbin | 29.6k - 29.7k |
FRITZ!Box 6660 Cable (atom) | 7.39 - 8.00 | /sbin | 29.6k - 29.7k |
FRITZ!Box 6670 Cable (atom) | 7.61 - 7.90 | /sbin | 29.7k - 29.8k |
FRITZ!Box 6690 Cable (atom) | 7.39 - 7.90 | /sbin | 29.6k - 29.7k |
FRITZ!Box 6820 LTE v1 (main) | 7.51 - 7.59 | /sbin | 28.0k - 28.1k |
FRITZ!Box 6820 LTE v2 (main) | 7.51 - 7.59 | /sbin | 28.0k - 28.1k |
FRITZ!Box 6820 LTE v3 (main) | 7.51 - 7.57 | /sbin | 28.0k - 28.1k |
FRITZ!Box 6820 LTE v4 | 7.59 | /sbin | 28.1k |
FRITZ!Box 6850 LTE | 7.39 - 7.90 | /sbin | 21.5k - 27.9k |
FRITZ!Box 6850 5G | 7.39 - 7.90 | /sbin | 21.5k - 21.6k |
FRITZ!Box 6890 LTE (main) | 7.39 - 7.57 | /sbin | 27.8k - 28.0k |
FRITZ!Box 6890 LTE v1 (main) | 7.39 - 7.57 | /sbin | 27.8k - 28.0k |
FRITZ!Box 6890 LTE v2 (main) | 7.39 - 7.57 | /sbin | 27.8k - 28.0k |
FRITZ!Box 7490 (main) | 7.51 | /sbin | 28.0k |
FRITZ!Box 7510 | 7.39 - 8.00 | /sbin | 21.5k |
FRITZ!Box 7520 | 7.39 - 8.00 | /sbin | 21.5k - 21.6k |
FRITZ!Box 7520 v2 (main) | 7.39 - 8.00 | /sbin | 21.5k - 21.6k |
FRITZ!Box 7530 | 7.39 - 8.00 | /sbin | 21.5k - 21.6k |
FRITZ!Box 7530 AX | 7.39 - 8.00 | /sbin | 21.6k - 21.7k |
FRITZ!Box 7583 (main) | 7.50 - 7.59 | /sbin | 27.9k - 28.0k |
FRITZ!Box 7583 VDSL (main) | 7.59 - 8.00 | /sbin | 27.9k - 28.0k |
FRITZ!Box 7590 (main) | 7.39 - 8.00 | /sbin | 27.7k - 28.0k |
FRITZ!Box 7590 AX (main) | 7.39 - 8.00 | /sbin | 27.7k - 28.0k |
FRITZ!Box 7690 | 7.61 - 7.90 | /sbin | 21.5k - 25.5k |
FRITZ!Smart Gateway | 7.52 - 7.63 | /sbin | 17.4k |
FRITZ!Repeater 600 | 7.57 - 7.58 | /sbin | 19.3k |
FRITZ!Repeater 600 v2 | 7.57 - 7.58 | /sbin | 19.3k |
FRITZ!Repeater 1200 | 7.39 - 7.58 | /sbin | 17.5k |
FRITZ!Repeater 1200 AX | 7.39 - 7.58 | /sbin | 17.4k - 17.5k |
FRITZ!Repeater 2400 | 7.39 - 7.58 | /sbin | 19.1k - 23.8k |
FRITZ!Repeater 3000 | 7.39 - 7.58 | /sbin | 17.5k |
FRITZ!Repeater 3000 AX | 7.41 - 7.58 | /sbin | 17.4k - 17.5k |
FRITZ!Repeater 6000 | 7.39 - 7.58 | /sbin | 17.4k - 17.5k |
FRITZ!Powerline 1240 AX | 7.57 - 7.58 | /sbin | 17.4k - 17.5k |
FRITZ!Powerline 1260E | 7.50 - 7.58 | /sbin | 17.5k |
FRITZ!Powerline 1260 | 7.50 - 7.58 | /sbin | 17.5k |
44 models use this command |
Symbols
Daily updated index of all symbols of this command. Last update: 2024-12-21 07:44 GMT.
Firmware | Symbol |
---|---|
7.39 - 8.00 | avmntpd_shringbufmsg |
7.39 - 8.00 | main |
7.39 | sntprequest_abort |
7.39 | sntprequest_run |
4 symbols for this command |