|You do not need to connect to your LANforge manager using ssh or VNC to manage connections or operate tests. In this cookbook, you will see an example of using the lf_firemod.pl script which can give you port information. This example will require a Windows desktop with Java, ActiveState Perl, the LANforge Server and the LANforge GUI installed. You will not need to start the LANforge server on your Windows computer, so no licenses will be required for operating on the Windows computer. This cookbook assumes connectivity between the Windows computer and a running LANforge manager computer.
Prepare your Windows computer:
Install LANforge Server
Install LANforge GUI
You can download it from the same location.
Make sure you can connect to your LANforge manager. In this example, the LANforge manager will be at 192.168.100.26
Open the LANforge GUI
... and click Discover
If you are able to connect you should be able to browse your ports and connections.
For more information see LANforge GUI Installation
Install ActiveState Perl
Using scripts from Windows
The scripts installed on your Windows computer will communicate with the LANforge manager over the management port (TCP 4001).
Open a cmd window. Click Start->Run, type cmd and press Enter
Change directory to C:\Program Files\LANforge-Server\scripts
List the script files: dir *.pl
Your installation of Perl should have put it into your path variable (%PATH%). Please verify that it did with this command: perl -v
If perl is not found (Command not found) then you might need to close your DOS window and open a new one, or your Windows computer might need a reboot for the PATH variable to take effect.
Start the lf_firemod.pl script with the --help switch to see the options.
perl lf_firemod.pl --help
Open a second cmd window so that you can see the help text in the first window. Change directory to C:\Program Files\LANforge-Server\Scripts
Use this command to list ports available on 192.168.100.26:
perl lf_firemod.pl --mgr 192.168.100.26 --resource 1 --action list_ports
Most command output shows considerably more text than the output of the previous command. You may want to pipe it to a file. In this example, the output is redirected to C:\tmp\port-vap0.txt and shown with Notepad.
Query the port stats using: perl lf_firemod.pl --mgr 192.168.100.26 --resource 1 --action show_port --port vap0 > c:\tmp\port-vap0.txt
Show the output with: notepad c:\tmp\port-vap0.txt