mirror of
https://github.com/limosek/zaf-plugins.git
synced 2025-01-21 23:45:56 +01:00
New version of iwx plugin
This commit is contained in:
parent
6db99e2d13
commit
30cadc3bcd
123
iwx/control.zaf
123
iwx/control.zaf
@ -4,7 +4,7 @@ Description::
|
|||||||
Plugin for wifi mac80211 informations and discovery
|
Plugin for wifi mac80211 informations and discovery
|
||||||
::
|
::
|
||||||
|
|
||||||
Version: 0.4
|
Version: 0.5
|
||||||
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/iwx
|
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/iwx
|
||||||
Web: https://github.com/limosek/zaf-plugins
|
Web: https://github.com/limosek/zaf-plugins
|
||||||
|
|
||||||
@ -16,9 +16,10 @@ Depends-bin: ps iw
|
|||||||
Sudo: iw
|
Sudo: iw
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
Install-bin: functions.sh
|
Install-files: functions.sh
|
||||||
|
|
||||||
Item if_discovery:
|
Item if_discovery:
|
||||||
|
Return: json
|
||||||
Description::
|
Description::
|
||||||
Discovery of wireless interfaces
|
Discovery of wireless interfaces
|
||||||
::
|
::
|
||||||
@ -26,6 +27,7 @@ Cmd: wifi_if_discovery
|
|||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item phy_discovery:
|
Item phy_discovery:
|
||||||
|
Return: json
|
||||||
Description::
|
Description::
|
||||||
Discovery of wireless physical interfaces
|
Discovery of wireless physical interfaces
|
||||||
::
|
::
|
||||||
@ -33,57 +35,85 @@ Cmd: wifi_phy_discovery
|
|||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item channels_discovery:
|
Item channels_discovery:
|
||||||
|
Return: json
|
||||||
Description::
|
Description::
|
||||||
Discovery of wireless channels
|
Discovery of wireless channels
|
||||||
::
|
::
|
||||||
Cache: 600
|
Cache: 600
|
||||||
Parameters: dev
|
Parameters: dev
|
||||||
Testparameters: wlan0
|
Testparameters: wlan0
|
||||||
Cmd: wifi_channels_discovery $1
|
Parameters::
|
||||||
|
dev wlan0 ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_channels_discovery $dev
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item clients_discovery:
|
Item clients_discovery:
|
||||||
|
Return: json
|
||||||
Description::
|
Description::
|
||||||
Discovery of wireless clients
|
Discovery of wireless clients
|
||||||
::
|
::
|
||||||
Cache: 300
|
Cache: 300
|
||||||
Parameters: dev
|
Parameters::
|
||||||
|
dev wlan0 ''
|
||||||
|
::
|
||||||
Testparameters: wlan0
|
Testparameters: wlan0
|
||||||
Cmd: wifi_clients_discovery $1
|
Cmd: wifi_clients_discovery $dev
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item neigh_discovery:
|
Item neigh_discovery:
|
||||||
|
Return: json
|
||||||
Description::
|
Description::
|
||||||
Discovery of wireless neighbours
|
Discovery of wireless neighbours
|
||||||
::
|
::
|
||||||
Cache: 600
|
Cache: 600
|
||||||
Parameters: dev
|
Parameters::
|
||||||
|
dev wlan0 ''
|
||||||
|
::
|
||||||
Testparameters: wlan0
|
Testparameters: wlan0
|
||||||
Cmd: wifi_neigh_discovery $1
|
Cmd: wifi_neigh_discovery $dev
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item client_signal:
|
Item client_signal:
|
||||||
|
Return: int
|
||||||
|
Return-null: -200
|
||||||
|
Return-error: -199
|
||||||
Description::
|
Description::
|
||||||
Signal level of client
|
Signal level of client
|
||||||
::
|
::
|
||||||
Parameters: dev mac
|
Parameters::
|
||||||
Cmd: wifi_clients_discovery $1 $2
|
dev wlan0 ''
|
||||||
|
mac '' ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_client_signal $dev $mac
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item client_rxrate:
|
Item client_rxrate:
|
||||||
|
Return: int
|
||||||
|
Return-null: 0
|
||||||
|
Return-error: 0
|
||||||
Description::
|
Description::
|
||||||
RX rate of client
|
RX rate of client
|
||||||
::
|
::
|
||||||
Parameters: dev mac
|
Parameters::
|
||||||
Cmd: wifi_clients_rxrate $1 $2
|
dev wlan0 ''
|
||||||
|
mac '' ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_client_rxrate $dev $mac
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item client_txrate:
|
Item client_txrate:
|
||||||
|
Return: int
|
||||||
|
Return-null: 0
|
||||||
|
Return-error: 0
|
||||||
Description::
|
Description::
|
||||||
TX rate of client
|
TX rate of client
|
||||||
::
|
::
|
||||||
Parameters: dev mac
|
Parameters::
|
||||||
Cmd: wifi_clients_txrate $1 $2
|
dev wlan0 ''
|
||||||
|
mac '' ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_client_txrate $dev $mac
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item neigh_ssid:
|
Item neigh_ssid:
|
||||||
@ -91,64 +121,101 @@ Description::
|
|||||||
SSID of neighbour
|
SSID of neighbour
|
||||||
::
|
::
|
||||||
Parameters: dev mac
|
Parameters: dev mac
|
||||||
Cmd: wifi_neigh_ssid $1 $2
|
Cmd: wifi_neigh_ssid $dev $mac
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item neigh_signal:
|
Item neigh_signal:
|
||||||
|
Return: int
|
||||||
|
Return-null: -200
|
||||||
|
Return-error: -199
|
||||||
Description::
|
Description::
|
||||||
Signal level of neighbour
|
Signal level of neighbour
|
||||||
::
|
::
|
||||||
Parameters: dev mac
|
Parameters::
|
||||||
Cmd: wifi_neigh_signal $1 $2
|
dev wlan0 ''
|
||||||
|
mac '' ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_neigh_signal $dev $mac
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item neigh_channel:
|
Item neigh_channel:
|
||||||
|
Return: int
|
||||||
|
Return-null: -1
|
||||||
|
Return-error: -2
|
||||||
Description::
|
Description::
|
||||||
Channel of neighbour
|
Channel of neighbour
|
||||||
::
|
::
|
||||||
Parameters: dev mac
|
Parameters: dev mac
|
||||||
Cmd: wifi_neigh_channel $1 $2
|
Cmd: wifi_neigh_channel $dev $mac
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item channel_noise:
|
Item channel_noise:
|
||||||
|
Return: int
|
||||||
|
Return-null: -200
|
||||||
|
Return-error: -199
|
||||||
Description::
|
Description::
|
||||||
Noise level on channel
|
Noise level on channel
|
||||||
::
|
::
|
||||||
Parameters: dev channel
|
Parameters::
|
||||||
Cmd: wifi_channel_noise $1 $2
|
dev wlan0 ''
|
||||||
|
channel '' ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_channel_noise $dev $channel
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item channel_activetime:
|
Item channel_activetime:
|
||||||
|
Return: int
|
||||||
|
Return-null: 0
|
||||||
|
Return-error: -1
|
||||||
Description::
|
Description::
|
||||||
Time spend as active on channel
|
Time spend as active on channel
|
||||||
::
|
::
|
||||||
Parameters: dev channel
|
Parameters::
|
||||||
Cmd: wifi_channel_activetime $1 $2
|
dev wlan0 ''
|
||||||
|
channel '' ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_channel_activetime $dev $channel
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item channel_busytime:
|
Item channel_busytime:
|
||||||
|
Return: int
|
||||||
|
Return-null: 0
|
||||||
|
Return-error: -1
|
||||||
Description::
|
Description::
|
||||||
Time spend as busy on channel
|
Time spend as busy on channel
|
||||||
::
|
::
|
||||||
Parameters: dev channel
|
Parameters::
|
||||||
Cmd: wifi_channel_busytime $1 $2
|
dev wlan0 ''
|
||||||
|
channel '' ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_channel_busytime $dev $channel
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item channel_txtime:
|
Item channel_txtime:
|
||||||
|
Return: int
|
||||||
|
Return-null: 0
|
||||||
|
Return-error: -1
|
||||||
Description::
|
Description::
|
||||||
Time spend as TX on channel
|
Time spend as TX on channel
|
||||||
::
|
::
|
||||||
Parameters: dev channel
|
Parameters::
|
||||||
|
dev wlan0 ''
|
||||||
|
channel '' ''
|
||||||
|
::
|
||||||
Cmd: wifi_channel_transmittime $1 $2
|
Cmd: wifi_channel_transmittime $1 $2
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item channel_rxtime:
|
Item channel_rxtime:
|
||||||
|
Return: int
|
||||||
|
Return-null: 0
|
||||||
|
Return-error: -1
|
||||||
Description::
|
Description::
|
||||||
Time spend as RX on channel
|
Time spend as RX on channel
|
||||||
::
|
::
|
||||||
Parameters: dev channel
|
Parameters::
|
||||||
Cmd: wifi_channel_receivetime $1 $2
|
dev wlan0 ''
|
||||||
|
channel '' ''
|
||||||
|
::
|
||||||
|
Cmd: wifi_channel_receivetime $dev $channel
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user