Hi, I have the following code to check the vpn status, this code execute op "show vpn flow' I'm ussing pandevice library in my imports def check_vpn_status(fw): #check vpn status vpn_ike = fw.op(cmd= "show vpn flow", xml=True) with open('vpn_status.xml', 'wb') as file: file.write(vpn_ike) print(type(vpn_ike)) . and generate an xml file like this. Exist one method how to read the file to search into file the ie state and show in the print the following tunnels are up ?. I'm stuck how to manipulate that file generated by fw.op <response status="success"><result> <total>1</total> <num_ipsec>1</num_ipsec> <IPSec> <entry> <peerip>12.12.12.12</peerip> <name>Bluecoat_IPSEC:ID-1</name> <outer-if>ethernet1/1</outer-if> <gwid>1</gwid> <localip>172.16.10.1</localip> <state>init</state> <inner-if>tunnel.10</inner-if> <mon>off</mon> <owner>1</owner> <id>1</id> </entry> </IPSec> <dp>dp0</dp> <num_sslvpn>0</num_sslvpn> </result></response> Any advise I really appreciate. best Regards Andres
... View more