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 september. Please use hippie2000@webnmail.de instead.

0
U

Property:cloudmsgd (avmcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> cloudmsgd (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 Gallery

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 cloudmsgd!
cloudmsgd (avmcmd) Remote message peering daemon for AVM Smartphone-Apps.
cloudmsgd (process) Remote message peering daemon for AVM Smartphone-Apps.
cloudmsgd (watchdog) Remote message peering daemon for AVM Smartphone-Apps.

AVM-Command

Goto:   Endpoints  -  Events  -  Config  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

cloudmsgd is the remote message peering daemon for AVM Smartphone-Apps.

It uses the OAuth protected Relay-Service to peer a selection of AVM-Events and messaging nodes in the AVMIPC-Datastore.

So far these Apps support the Relay-Service:

cloudmsgd only keeps running as long as any of these Apps are registered with the box, otherwise it terminates silently.
It is started by cloudmsgd.service, libcmapi.so, ctlmgr or aha.

For debugging (and understanding) there's an optional cloudmsgd.log which could be enabled using aicmd.

fw 7.29 help:

root@fritz2:/var/mod/root# cloudmsgd -?

usage: cloudmsgd cloudmsgd [options]

options:
  -?                 - print this help
  -f                 - run in forground. (NOTSET)
  -s                 - stop daemon. (NOTSET)
  -p STRING          - Pidfile. ("/var/run/cloudmsgd.pid")
  -D STRING          - switch debug logs on. (FUNC)

fw 7.39 help:

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

usage: cloudmsgd [options]

options:
  -?                 - print this help
  -f                 - run in forground. (NOTSET)
  -s                 - stop daemon. (NOTSET)
  -v                 - verbose. (NOTSET)
  -p STRING          - Pidfile. ("/var/run/cloudmsgd.pid")
  -l STRING          - Logfile. ("")
  -D STRING          - switch debug logs on. (FUNC)

Endpoints

aicmd endpoint(s) provided by cloudmsgd, with these functions: (fw 7.29)

root@fritz2:/var/mod/root# aicmd ctlmgr

# provided by cloudmsgd: - fw 7.39+

HELP                                     - show help
SLABDUMP                                 - show slab allocation
SLABSHOW                                 - show slab information
QUIT                                     - disconnect

# provided by cloudmsgd: - fw 7.39+

msglog on                                - start logging messages to /var/tmp/cloudmsgd.log
msglog off                               - stop logging messages

sndmsg custom                            - send a custom msg (format: <event_id> '<json_data> or EMPTY')

# provided by libavmpcp.so: - fw 7.29+

libavmpcp show pcpinfo                   - show pcpinfo

# 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 cloudmsgd, with these functions: (endpoints + commands, collected manually)

cloudmsgd reload      # from cloudmsgd.service

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2023-01-27 06:37 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
Netlink family NETLINK_GENERIC 1** 7.50 Generic Netlink (genetlink) family for simplified netlink usage (#16) Linux
Multicast group AVMGGRP_L2TP 1** 7.50 Interface of the L2TP tunneling server l2tpv3d AVM
Multicast group AVMGGRP_NLCTRL_NOTIFY 1** 7.50 Notification about changes in subscribed genetlink groups AVM
Sink evsink cloudavmevents 15* 6.51 - 7.50 Event-Sink of cloudmsgd AVM
Receives event firmware_update_available 15* 6.51 - 7.50 DECT firmware available AVM
Receives event internet_new_ip 9* 6.51 - 7.12 Public IP change cloud event AVM
Receives event mass_storage_mount 15* 6.51 - 7.50 Partition mounted cloud event AVM
Receives event mass_storage_unmount 15* 6.51 - 7.50 Partition unmounted cloud event AVM
Receives event smarthome 14* 6.98 - 7.50 AHA generic cloud event AVM
Receives event smarthome_switch_status 4* 6.51 - 6.86 AHA switch cloud event AVM
Receives event telephony_call_finished 14* 6.98 - 7.50 Call finished event AVM
Receives event telephony_fax_received 15* 6.51 - 7.50 Incoming Fax trigger AVM
Receives event telephony_incoming_call 15* 6.51 - 7.50 Incoming call trigger AVM
Receives event telephony_missed_call 15* 6.51 - 7.50 Missed call AVM
Receives event telephony_tam_call 15* 6.51 - 7.50 TAM call trigger AVM
Endpoint sock me_LIBOAUTH_IPC_($pid).ctl 13* 7.24 - 7.51 avmipc endpoint of dect_manager, cloudmsgd, device_updatecheck AVM
Listens to avmipc NW_IPC_EVT_OAUTH_COM_CONTROLLER 6** 7.29 - 7.50 TODO AVM
Listens to avmipc NW_IPC_STA_OAUTH_SERVICE_STATES 6** 7.29 - 7.50 TODO AVM
Endpoint sock me_NW_IPC_HANDLER_CLOUDMSGD_RECV.ctl 14* 6.98 - 7.50 avmipc endpoint of cloudmsgd AVM
Listens to avmipc @ 2** 7.39 - 7.50 Special event for listeners of nameless private messages. AVM
Listens to avmipc MOBILED_IPC_EVT_SMS_RECV 2** 7.39 - 7.50 TODO AVM
Listens to avmipc NW_IPC_EVT_HOMENET_NEWDEVICES 2** 7.39 - 7.50 Network event informing about new devices in the LAN. AVM
Listens to avmipc NW_IPC_STATE_BOXCHANGE_APP 2** 7.39 - 7.50 TODO AVM
Endpoint sock me_cloudmsgd-pcp-($num).ctl 11* 7.19 - 7.50 avmipc endpoint of libavmpcp.so for cloudmsgd AVM
Listens to avmipc libpcp_dump 3** 7.39 - 7.50 Trigger event to dump PCP context info. AVM
Listens to avmipc libpcp_itemstatus 2** 7.39 - 7.50 Target event to send PCP port openings to. AVM
Listens to avmipc libpcp_send_itemstatus 2** 7.39 - 7.50 Trigger event to send all PCP port openings. AVM
Listens to avmipc pcpserver_changed 2** 7.39 - 7.50 Trigger event to inform about PCP server changes. AVM
Endpoint sock me_cloudmsgd.ctl 16* 6.51 - 7.50 avmipc_command endpoint of cloudmsgd AVM
Listens to avmipc @ 2** 7.39 - 7.50 Special event for listeners of nameless private messages. AVM
Listens to avmipc aicmd_listener 2** 7.39 - 7.50 Special event covering all aicmd compatible listeners. AVM
Listens to avmipc STATE_EXTADDRSTATUS_FBSTATE 2** 7.39 - 7.50 State of all public IP addresses in JSON format. AVM
32 event relations for this command

Config

Daily updated index of Configuration files accessed by this command. Last update: 2023-01-27 06:37 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.51 TODO AVM
1 config relation for this command

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/cloudmsgd | grep -e '\.c$' -e '\.cpp$'

ar7/cloudmsgd/main.cpp
ar7/cloudmsgd/ars_result_parser.cpp
ar7/cloudmsgd/cloudcomm.cpp
ar7/cloudmsgd/cloudmsg.cpp
ar7/cloudmsgd/cloudmsg_iphandler.cpp
ar7/cloudmsgd/cloudmsg_ars_request.cpp
ar7/cloudmsgd/cloudmsg_recv_boxnotify.cpp  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2023-01-27 07:15 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 cloudmsgd.service 25 7.39 - 7.51 supervisor service for cloudmsgd. AVM
Runs as proc cloudmsgd (process) 16* 6.51 - 7.50 Remote message peering daemon for AVM Smartphone-Apps. AVM
Registers wdog cloudmsgd (watchdog) 14* 6.98 - 7.50 Remote message peering daemon for AVM Smartphone-Apps. AVM
Serving sock me_LIBOAUTH_IPC_($pid).ctl 13* 7.24 - 7.51 avmipc endpoint of dect_manager, cloudmsgd, device_updatecheck AVM
Serving sock me_NW_IPC_HANDLER_CLOUDMSGD_RECV.ctl 14* 6.98 - 7.50 avmipc endpoint of cloudmsgd AVM
Serving sock me_cloudmsgd-pcp-($num).ctl 11* 7.19 - 7.50 avmipc endpoint of libavmpcp.so for cloudmsgd AVM
Serving sock me_cloudmsgd.ctl 16* 6.51 - 7.50 avmipc_command endpoint of cloudmsgd AVM
Depends on lib ld.so 25 7.08 - 7.51 Dynamic linker / loader Linux
Depends on lib libar7cfg.so 56 6.36 - 7.51 TFFS-Configuration API to ar7.cfg and many more. AVM
Depends on lib libavm_event.so 56 6.36 - 7.51 AVM-Events management API AVM
Depends on lib libavmauth.so 50 6.50 - 7.51 Fritzbox authentification helpers AVM
Depends on lib libavmcipher.so 56 6.36 - 7.51 AES / DES / Rijndael encryption / decryption. AVM
Depends on lib libavmcrypto.so 44 6.98 - 7.51 JWE encryption / decryption / key generator AVM
Depends on lib libavmcsock.so 56 6.36 - 7.51 Networking, I/O and helper functions AVM
Depends on lib libavmfbconf.so 25 7.39 - 7.51 API to hardcoded fbconf.cfg AVM
Depends on lib libavmfbstate.so 40 7.19 - 7.51 IPC fritzbox state notification AVM
Depends on lib libavmhmac.so 56 6.36 - 7.51 HMAC / SHA / MD5 hashing. AVM
Depends on lib libavmipchomenet.so 43 7.08 - 7.51 TODO Linux
Depends on lib libavmpcp.so 40 7.19 - 7.51 Port Control Protocol (PCP) API library AVM
Depends on lib libboxlib.so 56 6.36 - 7.51 Box status, logging and statistics functions AVM
Depends on lib libboxnotify.so 56 6.36 - 7.51 boxnotifyd client API (old) AVM
Depends on lib libboxnotifycsock.so 56 6.36 - 7.51 boxnotifyd client API (new) AVM
Depends on lib libc.so 56 6.36 - 7.51 Standard C library Linux
Depends on lib libcrypto.so 56 6.36 - 7.51 OpenSSL general crypto and X.509 library Linux
Depends on lib libdl.so 46 6.36 - 7.50 Dynamic linking library Linux
Depends on lib libdputil.so 56 6.36 - 7.51 DataPipe / packet utilities AVM
Depends on lib libewnwjson.so 44 6.98 - 7.51 JSON helper functions AVM
Depends on lib libewnwlinux.so 56 6.36 - 7.51 Linux networking functions AVM
Depends on lib libewnwnet.so 56 6.36 - 7.51 Internet helper functions AVM
Depends on lib libfwupdatetrace.so 44 6.98 - 7.51 TFFS-Configuration API to fwupdatetrace.cfg AVM
Depends on lib libgcc_s.so 14 6.36 - 6.110 GCC low-level runtime library Linux
Depends on lib libm.so 34 6.98 - 7.50 C math library Linux
Depends on lib liboauth2.so 25 7.39 - 7.51 OAuth v2.0 authentificator Linux
Depends on lib libpthread.so 46 6.36 - 7.50 POSIX threading library Linux
Depends on lib librt.so 46 6.36 - 7.50 POSIX realtime extensions library Linux
Depends on lib libsvctl.so 40 7.19 - 7.51 supervisor control library AVM
Depends on lib libtiinterpreter.so 25 7.39 - 7.51 Preprocessor for SSI-Files by TI. AVM
Depends on lib libwdt.so 56 6.36 - 7.51 AVM-Watchdogs management API AVM
Depends on lib libwebkpiclient.so 22 7.39 - 7.51 KPI sensor for system parts which use HTTP / HTTPS AVM
Depends on lib libwebsrv.so 56 6.36 - 7.51 HTTP / HTTPS webserver and tools. AVM
Depends on lib libyajl.so 44 6.98 - 7.51 Event-driven JSON parser Linux
Depends on lib libz.so 44 6.83 - 7.51 Zlib compressor / decompressor Linux
42 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2023-01-27 05:54 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 3272 6.50 - 6.88 /sbin 50.1k - 50.6k
FRITZ!Box WLAN 3370 6.36 - 6.55 /sbin 49.8k
FRITZ!Box 3390 6.36 - 6.55 /sbin 49.8k
FRITZ!Box 3490 (main) 6.36 - 7.30 /sbin 49.8k - 63.4k
FRITZ!Box 4020 6.50 - 7.02 /sbin 49.6k - 50.4k
FRITZ!Box 4040 6.50 - 7.39 /sbin 38.3k - 62.0k
FRITZ!Box 4060 7.26 - 7.39 /sbin 49.6k - 58.0k
FRITZ!Box 5490 (main) 6.51 - 7.29 /sbin 49.8k - 63.4k
FRITZ!Box 5491 (main) 7.01 - 7.29 /sbin 50.4k - 63.4k
FRITZ!Box 5530 Fiber (main) 7.21 - 7.30 /sbin 63.3k
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.30 /sbin 49.6k
FRITZ!Box 6360 Cable 6.51 /sbin 39.2k
FRITZ!Box 6430 Cable (arm) 6.84 - 7.29 /sbin 42.8k - 53.6k
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /sbin 42.8k - 53.6k
FRITZ!Box 6490 Cable (arm) 6.50 - 7.39 /sbin 39.2k - 74.0k
FRITZ!Box 6490 Cable (atom) 6.83 - 7.39 /sbin 42.8k - 74.0k
FRITZ!Box 6590 Cable (arm) 6.83 - 7.39 /sbin 42.8k - 74.0k
FRITZ!Box 6590 Cable (atom) 6.83 - 7.39 /sbin 42.8k - 74.0k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.39 /sbin 43.6k - 78.2k
FRITZ!Box 6591 Cable (atom) 7.04 - 7.39 /sbin 43.6k - 78.2k
FRITZ!Box 6660 Cable (arm) 7.14 - 7.39 /sbin 46.4k - 78.2k
FRITZ!Box 6660 Cable (atom) 7.14 - 7.39 /sbin 46.4k - 78.2k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.50 /sbin 53.7k - 78.2k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.50 /sbin 53.7k - 78.2k
FRITZ!Box 6820 LTE v1 6.40 - 7.29 /sbin 50.1k - 63.4k
FRITZ!Box 6820 LTE v2 6.40 - 7.29 /sbin 50.1k - 63.4k
FRITZ!Box 6820 LTE v3 7.19 - 7.29 /sbin 63.4k
FRITZ!Box 6840 LTE 6.36 - 6.87 /sbin 49.8k - 50.2k
FRITZ!Box 6850 LTE 7.21 - 7.39 /sbin 53.6k - 72.9k
FRITZ!Box 6850 5G 7.24 - 7.39 /sbin 53.6k - 62.0k
FRITZ!Box 6890 LTE 6.84 - 7.39 /sbin 49.1k - 72.9k
FRITZ!Box 6890 LTE v1 6.84 - 7.39 /sbin 49.1k - 72.9k
FRITZ!Box 6890 LTE v2 6.84 - 7.39 /sbin 49.1k - 72.9k
FRITZ!Box 7272 6.36 - 6.88 /sbin 50.1k - 50.6k
FRITZ!Box 7312 6.50 - 6.55 /sbin 50.1k
FRITZ!Box 7330 6.50 - 6.55 /sbin 50.1k
FRITZ!Box 7330 SL 6.50 - 6.55 /sbin 50.1k
FRITZ!Box Fon WLAN 7360 v2 6.36 - 6.87 /sbin 49.8k - 50.2k
FRITZ!Box 7362 SL 6.36 - 7.13 /sbin 49.8k - 58.7k
FRITZ!Box Fon WLAN 7390 6.51 - 6.87 /sbin 50.0k - 50.7k
FRITZ!Box 7412 6.50 - 6.87 /sbin 49.8k - 50.2k
FRITZ!Box 7430 6.36 - 7.29 /sbin 49.8k - 63.4k
FRITZ!Box 7490 (main) 6.36 - 7.51 /sbin 43.5k - 77.1k
FRITZ!Box 7510 7.30 - 7.39 /sbin 49.6k - 58.0k
FRITZ!Box 7520 6.98 - 7.50 /sbin 38.5k - 62.0k
FRITZ!Box 7520 v2 (arm) 7.30 - 7.50 /sbin 53.6k - 62.0k
FRITZ!Box 7530 6.93 - 7.50 /sbin 38.3k - 62.0k
FRITZ!Box 7530 AX 7.20 - 7.39 /sbin 53.8k - 62.1k
FRITZ!Box 7560 6.51 - 7.29 /sbin 49.1k - 63.3k
FRITZ!Box 7580 6.51 - 7.29 /sbin 49.1k - 63.3k
FRITZ!Box 7581 6.54 - 7.16 /sbin 38.3k - 49.8k
FRITZ!Box 7582 6.83 - 7.16 /sbin 38.3k - 49.8k
FRITZ!Box 7583 7.01 - 7.31 /sbin 50.4k - 63.3k
FRITZ!Box 7583 VDSL 7.19 - 7.31 /sbin 63.3k
FRITZ!Box 7590 6.83 - 7.51 /sbin 43.5k - 73.0k
FRITZ!Box 7590 AX 7.19 - 7.39 /sbin 63.3k - 73.0k
56 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2023-01-27 07:15 GMT.

Firmware Symbol
6.36 - 6.98 Cloudmsgd_exist
6.36 - 6.98 cloudcomm_err2txt
6.36 - 6.98 cloudcomm_exit
6.36 - 6.98 cloudcomm_init
6.36 - 6.98 cloudcomm_prepare_exit
6.36 - 6.98 cloudcomm_ready_for_exit
6.36 - 6.98 cloudcomm_registerbox
6.36 - 6.98 cloudcomm_sendmessage
6.36 - 6.98 cloudevents_dequeue
6.36 - 6.98 cloudevents_enqueue_old
6.36 - 6.98 cloudevents_enqueue_portchanged
6.36 - 6.98 cloudevents_exit
6.36 - 6.98 cloudevents_free_item
6.36 - 6.98 cloudevents_init
6.36 - 6.98 cloudevents_listener_reinit
6.36 - 6.98 cloudevents_queue_cnt
6.36 - 6.98 cloudevents_queue_filled
7.39 - 7.51 cloudmsg_logger_init
7.39 - 7.51 cloudmsg_logger_update_logfile
6.98 - 7.51 cm_errmsg
6.98 - 7.51 cm_infomsg
7.39 - 7.51 cm_msg_log
6.98 - 7.31 cm_ringbuf_exit
6.98 - 7.31 cm_ringbuf_init
6.98 - 7.03 create_ars_requests
6.98 - 7.03 free_ars_request
6.36 - 6.93 jwe_encrypt
6.36 - 7.51 main
28 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.