2016-05-13 18:02:04 +02:00
|
|
|
Plugin: iwx
|
|
|
|
|
|
|
|
Description::
|
|
|
|
Plugin for wifi mac80211 informations and discovery
|
|
|
|
::
|
|
|
|
|
2016-12-09 12:36:58 +01:00
|
|
|
Version: 0.5
|
2016-05-13 18:02:04 +02:00
|
|
|
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/iwx
|
|
|
|
Web: https://github.com/limosek/zaf-plugins
|
|
|
|
|
|
|
|
# Dependencies
|
2016-12-05 12:22:44 +01:00
|
|
|
Depends-dpkg: dash
|
|
|
|
Depends-opkg: busybox jshn
|
|
|
|
Depends-bin: ps iw
|
2016-05-13 18:02:04 +02:00
|
|
|
|
|
|
|
Sudo: iw
|
|
|
|
|
|
|
|
# Install
|
2016-12-09 12:36:58 +01:00
|
|
|
Install-files: functions.sh
|
2016-05-13 18:02:04 +02:00
|
|
|
|
|
|
|
Item if_discovery:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: json
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Discovery of wireless interfaces
|
|
|
|
::
|
|
|
|
Cmd: wifi_if_discovery
|
|
|
|
/Item
|
|
|
|
|
|
|
|
Item phy_discovery:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: json
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Discovery of wireless physical interfaces
|
|
|
|
::
|
|
|
|
Cmd: wifi_phy_discovery
|
|
|
|
/Item
|
|
|
|
|
|
|
|
Item channels_discovery:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: json
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Discovery of wireless channels
|
|
|
|
::
|
2016-11-22 14:08:28 +01:00
|
|
|
Cache: 600
|
2016-05-13 18:02:04 +02:00
|
|
|
Parameters: dev
|
2016-11-22 14:08:28 +01:00
|
|
|
Testparameters: wlan0
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_channels_discovery $dev
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item clients_discovery:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: json
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Discovery of wireless clients
|
|
|
|
::
|
2016-11-22 14:08:28 +01:00
|
|
|
Cache: 300
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
::
|
2016-11-22 14:08:28 +01:00
|
|
|
Testparameters: wlan0
|
2016-12-09 12:36:58 +01:00
|
|
|
Cmd: wifi_clients_discovery $dev
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
2016-11-21 17:45:35 +01:00
|
|
|
Item neigh_discovery:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: json
|
2016-11-21 17:45:35 +01:00
|
|
|
Description::
|
|
|
|
Discovery of wireless neighbours
|
|
|
|
::
|
2016-11-22 14:08:28 +01:00
|
|
|
Cache: 600
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
::
|
2016-11-22 14:08:28 +01:00
|
|
|
Testparameters: wlan0
|
2016-12-09 12:36:58 +01:00
|
|
|
Cmd: wifi_neigh_discovery $dev
|
2016-11-21 17:45:35 +01:00
|
|
|
/Item
|
|
|
|
|
2016-05-13 18:02:04 +02:00
|
|
|
Item client_signal:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: -200
|
|
|
|
Return-error: -199
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Signal level of client
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
mac '' ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_client_signal $dev $mac
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item client_rxrate:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: 0
|
|
|
|
Return-error: 0
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
RX rate of client
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
mac '' ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_client_rxrate $dev $mac
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item client_txrate:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: 0
|
|
|
|
Return-error: 0
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
TX rate of client
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
mac '' ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_client_txrate $dev $mac
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item neigh_ssid:
|
|
|
|
Description::
|
|
|
|
SSID of neighbour
|
|
|
|
::
|
|
|
|
Parameters: dev mac
|
2016-12-09 12:36:58 +01:00
|
|
|
Cmd: wifi_neigh_ssid $dev $mac
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item neigh_signal:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: -200
|
|
|
|
Return-error: -199
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Signal level of neighbour
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
mac '' ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_neigh_signal $dev $mac
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item neigh_channel:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: -1
|
|
|
|
Return-error: -2
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Channel of neighbour
|
|
|
|
::
|
|
|
|
Parameters: dev mac
|
2016-12-09 12:36:58 +01:00
|
|
|
Cmd: wifi_neigh_channel $dev $mac
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item channel_noise:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: -200
|
|
|
|
Return-error: -199
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Noise level on channel
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
channel '' ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_channel_noise $dev $channel
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item channel_activetime:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: 0
|
|
|
|
Return-error: -1
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Time spend as active on channel
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
channel '' ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_channel_activetime $dev $channel
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item channel_busytime:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: 0
|
|
|
|
Return-error: -1
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Time spend as busy on channel
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
channel '' ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_channel_busytime $dev $channel
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|
|
|
|
Item channel_txtime:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: 0
|
|
|
|
Return-error: -1
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Time spend as TX on channel
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
channel '' ''
|
|
|
|
::
|
2016-05-13 18:02:04 +02:00
|
|
|
Cmd: wifi_channel_transmittime $1 $2
|
|
|
|
/Item
|
|
|
|
|
|
|
|
Item channel_rxtime:
|
2016-12-09 12:36:58 +01:00
|
|
|
Return: int
|
|
|
|
Return-null: 0
|
|
|
|
Return-error: -1
|
2016-05-13 18:02:04 +02:00
|
|
|
Description::
|
|
|
|
Time spend as RX on channel
|
|
|
|
::
|
2016-12-09 12:36:58 +01:00
|
|
|
Parameters::
|
|
|
|
dev wlan0 ''
|
|
|
|
channel '' ''
|
|
|
|
::
|
|
|
|
Cmd: wifi_channel_receivetime $dev $channel
|
2016-05-13 18:02:04 +02:00
|
|
|
/Item
|
|
|
|
|