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

From BoxMatrix


BoxMatrix >> Shell-Commands >> kpi (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 kpi!
kpi (avmcmd) Generates the System KPI and sends it.
kpi (process) Generates the System KPI and sends it.

AVM-Command

Goto:   Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

kpi sends an IPC message with an attached System KPI in JSON format to ctlmgr.

KPI (Key Performance Indicators) are a collection of sensor values like they are required for professional system monitoring.
Many services collect sensor data and generate KPI and starting with fw 7.39 FRITZ!OS implements metering in avmcounterd.
KPI are sent as IPC messages with attached JSON data to ctlmgr which serves the me_KPI.ctl IPC endpoint for this purpose.
Explained KPI providers: aha, kpid, psetd (kpi), voipkpid (libvoipkpi.so), latencyd.

This script generates the System KPI and sends it. Fortunately it has a test mode activated like this:

root@fritz:/var/mod/root# touch /var/tmp/kpi.test
root@fritz:/var/mod/root# kpi

This disables sending the KPI but creates /var/tmp/kpi.test.result containig the JSON instead.
The following has been formatted for readability, the JSON is just a single line:

root@fritz:/var/mod/root# cat /var/tmp/kpi.test.result 

{ "sv":"gen/v1", "kpi": { 
  "socType": null, 
  "mtdNames": [ "mtd0",  "mtd1",  "mtd2",  "mtd3",  "mtd4",  "mtd5",  "mtd6",  "mtd7",  "mtd8" ], 
  "mtdBadblocks": [ 0,  0,  0,  0,  0,  0,  0,  0,  0 ], 
  "tempNames": [ "Wifi-2.4GHz",  "Wifi-5GHz" ],
  "tempValues": [ 58.0,  62.0 ], 
  "memoryUsage": 30, 
  "memoryFragmentation": 2, 
  "starts": 15, 
  "lifetime": "15 hours 11 days 0 months 0 years", 
  "uptime": 87149,
  "swdt": 1                     # new in fsgw fw 7.58 
} }

This is from a 7530 which only has temp sensors if WLAN is enabled, and then per activated band.
Without having the test mode enabled the JSON would have been sent like this:

avmipc_send_kpi System 7 "$json"

Note that $json is the single line string above, and not a filename.
kpi is called by psetd, which is subscribed to the KPI_PRE_INFORM_NOTIFY event in the AVMIPC-Datastore,
like many other related daemons and libraries, and sends the KPI to ctlmgr on request.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-04-18 19:26 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
0 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-04-18 15:53 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 3490 (main) 7.01 - 7.30 /sbin 15.3k - 15.7k
FRITZ!Box 4020 7.39 /sbin 8.3k
FRITZ!Box 4040 6.98 - 7.57 /sbin 8.1k - 15.7k
FRITZ!Box 4050 7.57 /sbin 8.3k
FRITZ!Box 4060 7.26 - 7.57 /sbin 8.1k - 15.3k
FRITZ!Box 5490 (main) 7.01 - 7.29 /sbin 15.3k - 15.7k
FRITZ!Box 5491 (main) 7.01 - 7.29 /sbin 15.3k - 15.7k
FRITZ!Box 5530 Fiber (main) 7.21 - 7.39 /sbin 8.3k - 15.3k
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.90 /sbin 8.3k - 15.3k
FRITZ!Box 5590 Fiber (prx) 7.27 - 7.30 /sbin 15.3k
FRITZ!Box 5690 Pro (arm) 7.59 /sbin 8.6k
FRITZ!Box 6430 Cable (arm) 7.01 - 7.57 /sbin 8.3k - 15.7k
FRITZ!Box 6430 Cable (atom) 7.01 - 7.29 /sbin 15.3k - 15.7k
FRITZ!Box 6490 Cable (arm) 7.00 - 7.57 /sbin 8.1k - 15.7k
FRITZ!Box 6490 Cable (atom) 7.00 - 7.51 /sbin 8.1k - 15.7k
FRITZ!Box 6590 Cable (arm) 6.110 - 7.57 /sbin 8.1k - 15.7k
FRITZ!Box 6590 Cable (atom) 6.110 - 7.51 /sbin 8.1k - 15.7k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.57 /sbin 8.1k - 15.7k
FRITZ!Box 6591 Cable (atom) 7.04 - 7.57 /sbin 8.1k - 15.7k
FRITZ!Box 6660 Cable (arm) 7.14 - 7.57 /sbin 8.1k - 15.5k
FRITZ!Box 6660 Cable (atom) 7.14 - 7.57 /sbin 8.1k - 15.5k
FRITZ!Box 6670 Cable (arm) 7.57 - 7.62 /sbin 8.3k - 8.6k
FRITZ!Box 6670 Cable (atom) 7.61 - 7.62 /sbin 8.6k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.57 /sbin 8.1k - 15.3k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.57 /sbin 8.1k - 15.3k
FRITZ!Box 6820 LTE v1 7.39 /sbin 8.3k
FRITZ!Box 6820 LTE v2 7.39 /sbin 8.3k
FRITZ!Box 6840 LTE 7.39 /sbin 8.3k
FRITZ!Box 6850 LTE 7.21 - 7.58 /sbin 8.1k - 15.3k
FRITZ!Box 6850 5G 7.24 - 7.51 /sbin 8.1k - 15.3k
FRITZ!Box 6890 LTE 6.84 - 7.51 /sbin 8.1k - 15.7k
FRITZ!Box 6890 LTE v1 6.84 - 7.51 /sbin 8.1k - 15.7k
FRITZ!Box 6890 LTE v2 6.84 - 7.51 /sbin 8.1k - 15.7k
FRITZ!Box 7272 7.39 /sbin 8.3k
FRITZ!Box 7362 SL 6.98 - 7.14 /sbin 15.5k - 15.7k
FRITZ!Box 7430 6.98 - 7.39 /sbin 8.3k - 15.7k
FRITZ!Box 7490 (main) 6.83 - 7.57 /sbin 8.1k - 15.7k
FRITZ!Box 7510 7.30 - 7.57 /sbin 8.3k - 15.3k
FRITZ!Box 7520 6.98 - 7.51 /sbin 8.1k - 15.7k
FRITZ!Box 7520 v2 (arm) 7.30 - 7.57 /sbin 8.1k - 15.3k
FRITZ!Box 7530 6.98 - 7.56 /sbin 8.1k - 15.7k
FRITZ!Box 7530 AX 7.39 /sbin 8.3k
FRITZ!Box 7560 6.88 - 7.39 /sbin 8.3k - 15.7k
FRITZ!Box 7580 6.90 - 7.30 /sbin 12.7k - 15.7k
FRITZ!Box 7583 7.01 - 7.57 /sbin 8.3k - 15.7k
FRITZ!Box 7583 VDSL 7.19 - 7.31 /sbin 15.3k
FRITZ!Box 7590 6.83 - 7.90 /sbin 8.1k - 15.7k
FRITZ!Box 7590 AX 7.19 - 7.90 /sbin 8.1k - 15.3k
FRITZ!Box 7690 7.59 /sbin 8.6k
FRITZ!Smart Gateway 7.39 - 7.59 /sbin 8.1k - 8.3k
FRITZ!Repeater 600 7.39 /sbin 8.3k
FRITZ!Repeater 1200 7.11 - 7.58 /sbin 8.1k - 15.5k
FRITZ!Repeater 1200 AX 7.27 - 7.57 /sbin 8.1k - 15.3k
FRITZ!WLAN Repeater 1750E 7.39 /sbin 8.3k
FRITZ!Repeater 2400 7.39 /sbin 8.3k
FRITZ!Repeater 3000 6.98 - 7.58 /sbin 8.1k - 15.7k
FRITZ!Repeater 3000 AX 7.39 - 7.57 /sbin 8.1k - 8.3k
FRITZ!Repeater 6000 7.19 - 7.57 /sbin 8.1k - 15.3k
FRITZ!Powerline 1240 AX 7.51 - 7.57 /sbin 8.3k
FRITZ!Powerline 1260E 6.90 - 7.57 /sbin 8.3k - 15.7k
FRITZ!Powerline 1260 7.27 - 7.57 /sbin 8.3k - 15.3k
61 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-04-18 19:26 GMT.

Firmware Symbol
0 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.