Code: Select all
/interface monitor-traffic wlan60-1
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:
Code: Select all
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];")
Name: ros_wlan60_ap_out
Code:
Code: Select all
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];")
Open your network map > Right click on the appropriate device box > choose Appearance from the context sensitive menu.
In the field Label add
Code: Select all
[bitrate(ros_wlan60_ap_in())]/[bitrate(ros_wlan60_ap_out())]