gabstopper / smc-python

Forcepoint Security Management Center python library:(Moved to official Forcepoint repo)
https://github.com/Forcepoint/fp-NGFW-SMC-python
Apache License 2.0
29 stars 13 forks source link

Engine version #49

Closed meandus closed 5 years ago

meandus commented 5 years ago

Hi!

Do you know how to get the version of the engine ?

Thanks,

gabstopper commented 5 years ago

Easiest way is to do this:

engine = Engine.get('sg_vm')
for node in engine.nodes:
    print(node.version)

Each node has a specific version versus getting the version from the top level engine itself (we technically can support different versions on each individual 'node').