Cisco

Everything related to Cisco !!!!!

CiscoConfParse Methods

This is the methods available for CiscoConfParse : find_all_children(linespec, exactmatch=False, ignore_ws=False) Returns the parents matching the linespec, and all their children. This method is different than find_children(), because find_all_children() finds children of children. find_children() only finds immediate children. Parameters linespecstr Text regular expression for the line to…
Read more

CiscoConfParse

CiscoConfParse is a library for Cisco device.   :  pip install ciscoconfparse Example : from ciscoconfparse import ciscoconfparse Cisco_obj = CiscoConfParse(“show_run.txt”) print(Cisco_obj)  <—- this will return all the information about that object If using Netmiko to pull information from any device into a…
Read more

Regular Expressions

Summary : http://www.patrickdenis.biz/blog/regular-expressions-special-characters-and-patterns/ . Matches any single character, including white space. * Matches 0 or more sequences of the pattern. + Matches 1 or more sequences of the pattern. ? Matches 0 or 1 occurrences of the pattern. ^ Matches the beginning of…
Read more

Netshot

Netshot is a powerfull and simple free software for network engineer, it is use to backup/push/compare/etc… configuration of multiple vendors. Github : https://github.com/netfishers-onl/Netshot/wiki/Installing-Netshot-on-Ubuntu-16-or-later-(or-any-Debian-based-distribution) Netshot : http://www.netfishers.onl/netshot Installation : I use Ubuntu Server 18.04, and Java 8 . To install Java 8 since…
Read more