Category Archives: Scripting

PyForms dependencies

While I was looking for a GUI programming in python I came across PyForms, the scripting with PyForms seemed easy so I install it using pip. When I was testing a simple code from PyForms, my Python interpreter told me … Continue reading

Posted in Python, Scripting | Tagged , | Leave a comment

[Powershell] Finding discrepancy between two files

thanks to Stackoverlfow: https://stackoverflow.com/questions/8799847/compare-two-csv-files-and-find-discrepancies The code snippet is about comparing two CSV files containing firewall object groups and list down the discrepancy. the code snippet can be used to out-file to a text.

Posted in Powershell, Scripting | Tagged , | Leave a comment

Powershell script to invoke Tufin Path analysis API

There is an undocumented Tufin API, see the code below:

Posted in Powershell, Scripting | Tagged , , , | Leave a comment

Update Cisco ASA object group with netmiko

This is a demo of configuring ASA with netmiko, there is a use case when a server is provisioned, the server’s hostname and ip addresses are assigned automatically by Vrealize, and run a python script to update the object-group of … Continue reading

Posted in Python, Scripting | Tagged , , , | Leave a comment

Extending the python script to configure OSPF with ncclient

Previously I have successfully download the configuration from the netconf enabled router, now i have extended support to configure ospf. This is a simple lab to further extend and get myself familiarize and comfortable with netconf. During the lab I … Continue reading

Posted in OSPF, Python, Scripting | Tagged , , , , , , , | Leave a comment

Testing configuration with ncclient (netconf)

I wanted to extend the previous post regarding using netmiko to get the configuration, well since my router supports netconf, I turned on netconf and did a test on getting configuration using get-config. Now i am testing edit-config to try … Continue reading

Posted in Python, Scripting | Tagged , , | Leave a comment

Testing menu and netmiko in python

Background This is a testing code to try out on a simple interactive text menu with two options, download cisco config and quit. I want to extend this config to have an interactive menu and prompt to configure cisco routers. … Continue reading

Posted in Python, Scripting | Tagged , , , | Leave a comment