Problem:
/interface monitor-traffic wlan60-1
shows no traffic but actually it exists.
I want to see the current traffic in the dude network map.
Solution:
Count the traffic from the 60GHz station interfaces.
1. step - create 2 functions in the dude (dude menu Functions):
First function counts incoming traffic.
Name: ros_wlan60_ap_in
Code:
ros_command(":local rxbits do={:local currentSpeed 0;
:foreach wInterface in=[/interface w60g station find] do={
:local tmpSpeedRes [ /interface monitor-traffic $wInterface as-value once];
:set currentSpeed ( $currentSpeed + ($tmpSpeedRes->\"rx-bits-per-second\"));
}
:return $currentSpeed;};
:put [$rxbits];")
Second function counts outgoing traffic - very similar to the first one.
Name: ros_wlan60_ap_out
Code:
ros_command(":local txbits do={:local currentSpeed 0;
:foreach wInterface in=[/interface w60g station find] do={
:local tmpSpeedRes [ /interface monitor-traffic $wInterface as-value once];
:set currentSpeed ( $currentSpeed + ($tmpSpeedRes->\"tx-bits-per-second\"));
}
:return $currentSpeed;};
:put [$txbits];")
2. step - change appearance of the 60GHz access point object in the network map
Open your network map > Right click on the appropriate device box > choose Appearance from the context sensitive menu.
In the field Label add
[bitrate(ros_wlan60_ap_in())]/[bitrate(ros_wlan60_ap_out())]