Do not update netmiko to version 5 if you are using it with nornir

I have been using nornir to call netmiko, the netmiko version used by nornir is version 2.4.2, netmiko has just updated to version 3.0, before I upgraded the netmiko, I could push config set. After I upgraded netmiko to 3.0, my script started raised netmiko timeout, but the commands were sent to the firewall. From … Continue reading Do not update netmiko to version 5 if you are using it with nornir

[python]Matching sh run object service with textfsm

I have been experimenting a few combination with textfsm, the problematic one is show run object service may show description and some may not show description this is because description is an optional configuration item in Cisco ASA. This makes matching description kind of hard. The current working textfsm only matches compulsory items such as … Continue reading [python]Matching sh run object service with textfsm

[python]Napalm-asa only supports Cisco ASA with REST API

I am using the napalm-asa asa driver, however this driver can only be used if the Cisco ASA installs the REST API package, hence for cisco ASA that does not have REST API, Napalm cannot be used. Instead use netmiko, netmiko is using ssh and has methods to let you send commands. It is not … Continue reading [python]Napalm-asa only supports Cisco ASA with REST API

[Arch Linux]Cannot fit to guest in Vmware workstation

Although Fit Guest Now was enabled after open-vm-tools was installed in Arch Linux, however clicking on Fit Guest Now did not have effect. I tried these steps and worked for me. Enable Accelerate 3D graphics in VM's display settings Install xf86-video-vmware driver sudo pacman -S xf86-video-vmware Ensure vmtoolsd starts, if not do this sudo systemctl … Continue reading [Arch Linux]Cannot fit to guest in Vmware workstation

[snap-store]Snap store fonts cannot be displayed in Arch Linux

The snap-store installation instruction can be found here. After installation the snap store fonts cannot be properly displayed, at first thought you may think it is due to fonts not installed, but actually a simple workaround can solve this issue. sudo rm -f /var/cache/fontconfig/* No restart is required on Arch Linux, relaunch the snap store … Continue reading [snap-store]Snap store fonts cannot be displayed in Arch Linux

[python]Create table with SQLAlchemy

I am using the raw module of SQLAlchemy, and not the Flask's version of SQLAlchemy, Flask's version is easier to use than the original as more abstraction has been implemented by Flask. This post is to record how tables can be created. Requirements.txt These python libraries are necessary, for this example I am using Mariadb … Continue reading [python]Create table with SQLAlchemy