• 7 December 2024

Some PRTG API samples

Get a passhash code PRTG supports API, but we need to have a passhash code. It’s a link below that we can get a passhash for our user. Just you should adapt your PRTG. It returns a code like 111222333. 111222333 is our passhash. We will use it every API requests instead of using password.…

Read More

OSPF Single Area Lab with Netmiko

Here is OSPF Single Area Lab prepared by Rene Molenaar. Let’s create a topology on EVE-NG and solve it with Python script using Netmiko. Goal 1-2 In my EVE-NG topology, HongKong, Amsterdam and Barcelona have telnet connection info 192.168.29.131:32769 , 192.168.29.131:32770 , 192.168.29.131:32771 respectively. Also, there is no credential to make telnet connection. This is…

Read More

Some Python useful samples

args usage multiple return & one line if lambda function & one line if eval and exec usage pip reference

Read More

Python Lists, Dictionaries, Tuples & Sets

Extending a list or concatenation of lists in other words. Extend function adds the given list at the end of the first list. Also, we can use insert function to add an item to a specific index of a list. List pop, append, remove, clear & sorted usage.. When we use pop method of a…

Read More

Python Built-in Functions

Phython has a number of built-in functions, we use in every .py although we are not aware of it. That is the full list of built-in functions. We already know some of them. Now I will try some I may be need to use later. Let’s have a start with help function. As you see,…

Read More