Documentation for PythonAPI
16.2.0py2

PacketLogic PythonAPI

The PacketLogic PythonAPI enables programmatic configuration and retrieval of data from the PacketLogic system. This allows everything from small scripts retrieving statistics data to large programs integrating the PacketLogic with other systems to be written.

Creating a new NetObject in the ruleset is as simple as:

>>> import packetlogic2
>>> pl = packetlogic2.connect("192.168.1.25", "admin", "pldemo00")
>>> rs = pl.Ruleset()
>>> o = rs.object_add("/NetObjects/Example")
>>> o.add("10.0.0.1")
>>> rs.commit()