PacketLogic has predefined user interfaces that are powerful and easy to use, such as the client and the Webstatistics. However, when the need arises to do something that is not defined in those interfaces, they are not possible for the end user to modify or customize. This is when using an API is very effective. Using the PacketLogic Python API provides access to virtually all the functionality available in the existing user interfaces, but with full possibilities to customize, integrate, and otherwise adapt the interface according to local and site-specific requirements. The PacketLogic Python API is implemented as a Python module, which means writing scripts to interface with a PacketLogic unit is a matter of:
1. Installing Python Python is available for free for all major operating systems.
2. Installing the API The API is available for free as a download from Procera Networks, on Windows and Linux operating systems.
3. Writing scripts
PythonShell and IDLE
The Windows installer includes IDLE, a rudimentary development environment for Python. In IDLE, the scripts can be written and executed. IDLE is started with the PythonShell open, which is where the scripts are run and the output displayed. The Python shell also allows executing the scripts line by line, which is sometimes useful. For scripts of any non-negligible complexity, however, it is recommended to open a new window (Ctrl+N), write the script in the editor, save it, and execute it (by pressing F5 or selecting Run Module from the Run menu). Of course, IDLE can be substituted for an editor of choice and the scripts can then be run from the Python shell.
Download pdf The PacketLogic Python API
Related Searches: python api, python module, linux operating systems, procera networks, development environment
RSS feed for comments on this post · TrackBack URI
Leave a reply