Some notes on *argv and **kwargv in use: *argv and **kwargv is used in functions while the exact number of variables are not defined. *argv and **kwargv are conventions and a very effective way to counter undefined number of variables. *argv is non-keyword arguments, where as **kwargs is keyward arguments.
System A: Currently working on a big project and giving hand with some customized task automation. The systems are bootstraped using Ansible and it is calling the information from an clinet onboarding excel spreadsheet, as shown in ‘client_onboarding_sys1.xlsx. System B: During the boostrapping, the team also wants to use some of the data from the… Read More Python & Excel – move data from one spreadsheet to another using openpyxl
“netstat” command for my reference: The netstat command symbolically displays the contents of various network-related data structures for active connections. The Interval parameter, which is specified in seconds, continuously displays information regarding packet traffic on the configured network interfaces. If you want to check the TCP/UDP, think of tuna, run “netstat -tuna” command.
I was trying to test django framework for my work app development trial and wanted to work on Windows 10 (as I do not have a MAC), I wanted to find out more about virtualenv on Window system. This is a lot easier on the Linux and MAC but a little bit trickier in Mr.… Read More Python – Working in virtual environment on Windows 10/11
This is a simple Python class example to understand the use of Python class. 1. Here is a simple class called switch. 2. Use the class to assign arguments to each switch. sw1 = switch(‘SYD-SW01’, 48, “Cisco”)sw2 = switch(‘MEL-SW01’, 48, “HP”)sw3 = switch(‘BRI-SW01’, 24, “Juniper”) 3. Get the hostnames sw1.hostname‘SYD-SW01’sw2.hostname‘MEL-SW01’sw3.hostname‘BRI-SW01’ 4. Get the interface numbers… Read More Python class, simple switch example
This is a simple reference playbook only. [jdoe@centos8 testing01]$ cat save_run_0.1.yml [jdoe@centos8 testing01]$ ansible-playbook save_run_0.1.yml For multiple commands and to be displayed:
While you are using Ansible, you also want to be able to handle the strings and text as you like using few method. In this example, we will use some simple regex expressions and fileinline to make modification to the content of our files. After matering these simple tricks, you can apply them straight to… Read More Ansible : Replace, insert, update and delete lines using Regex and fileinline.
If you want to display the ACL information for a particular packet, you can use log or log-input to display the matched packet information.
Extended Access List (ACL) Can use source/destination IP Addresses Can use source/destination port number Can use protocol types Uses numbering between 100-199, 2000-2999 Remove the previous ACLs. R2(config)#do show ip access-listStandard IP access list in-acl20 deny 188.8.131.52 (5 matches)30 deny any (1406 matches)Standard IP access list inbound-acl10 deny 184.108.40.206 (5 matches)20 permit any (82 matches)R2(config)#no… Read More UnetLab – Day 1e, Extended Access Lists, (Cisco router ACL lab)