Port statistics can be programatically monitored using the script lf_portmod.pl. This script can also reset ports, alter WiFi station settings, and pass arbitrary LANforge CLI commands directly to the LANforge manager. |
Ports of all kinds can be viewed with the lf_portmod.pl perl script. You can also do some limited manipulation of ports as well.
C:\> perl .\lf_portmod.pl --quiet 1 --manager jedtest --card 1 --port_name eth1 --show_port
perl .\lf_portmod.pl --manager jedtest --card 1 --quiet 1 --port_name eth1 --show_port "RxDrop,Rxp,IP"Produces: Consider that is a lot of text to type. If we want, we can reformat that command.
perl .\lf_portmod.pl --manager jedtest ^ --card 1 --quiet 1 --port_name eth1 ^ --show_port "RxDrop,Rxp,IP"Produces the same output:
lf_portmod.pl --load day_238This matches the same database name seen in the Status tab database dropdown.
lf_portmod.pl --manager 192.168.1.101 --card 1 --port_name eth2 --set_ifstate down
lf_portmod.pl --manager 192.168.1.101 --card 1 --port_name eth2 --cmd reset
lf_portmod.pl --manager 192.168.1.101 --cli_cmd "scan 1 1 sta0"