[python]First use of Napalm

I have a few Cisco routers which are on IOS, I have never used NAPALM before, I use netmiko most often for cisco devices, Napalm itself is based on netmiko, I napalm has a get_facts method that gather the information of cisco ios router, this is very convenient as compared with netmiko, netmiko is more … Continue reading [python]First use of Napalm

[python]Cisco FMC REST API example – GET Server version and add device to Cisco FMC

Introduction The version used for this lab is Cisco FMC 6.4.0, and Cisco FTD used is 6.3.0. To access the Cisco FMC REST API, you need to ensure it is enabled. You can test it by going to https:///api/api-explorer if you can see the swagger like documentation then the REST API is enabled, you can … Continue reading [python]Cisco FMC REST API example – GET Server version and add device to Cisco FMC

HackTheBox – Get the invite code

You have to find the invite code yourself, the link is https://www.hackthebox.eu/invite in order to join the club to learn hacking yourself. The invite code extraction method may change, but this is the current one as of today 25th of Feb 2020. I am using firefox, so on this https://www.hackthebox.eu/invite, click on web developer on … Continue reading HackTheBox – Get the invite code

Hashicorp vault – Enable database secret engine for MariaDB/MySQL

Introduction There is a learning page for turning on database secret engine for postgresql but for my environment it is MariaDB, this post records on how to enable database engine to automatically rotate secrets for MariaDB user. This feature is very similar to CyberArk on password rotation for nix servers and database. For this lab, … Continue reading Hashicorp vault – Enable database secret engine for MariaDB/MySQL

[python]Download videos from youtube with pytube

Introduction I am finding a windows application which can use to download youtube videos like downie, I found out a python module known as pytube3 that can be used for this purpose. Basic usage So for my own purpose I download some videos which I need to listen while exercising, below is the code to … Continue reading [python]Download videos from youtube with pytube

[python]Checking whether the hosts in inventory are alive with Nornir

Nornir has a tcp_ping function that can be used to test connections within the inventory file. You can check one or multiple ports, you can also specify the hosts of your choice So let's see how can this be used. Check if a port is live for hosts in inventory This is my yaml inventory … Continue reading [python]Checking whether the hosts in inventory are alive with Nornir

[python]Understanding how to capture the result you need with Nornir

Introduction The documentation has illustrated how to display the output to the console screen, however it did not explicitly show how to capture the data you need. It does document about what is AggregatedResult object and Result object, but still using examples will be easier to understand and also to encourage more people to use … Continue reading [python]Understanding how to capture the result you need with Nornir