Star topology is an implementation of the hub-and-spoke device model. Every node is connected to the central device. Node is referred to as a spoke, and the hub is the central device. Hub is the central device that acts as a manager for all devices. All traffic passes through the hub. Any two devices wanting…More
Ring Topology
In a ring topology, each node is connected to two other nodes and creates a circular form of connection. Traffic flow can be either unidirectional or bidirectional. There is an option for setting the flow of traffic either clockwise or anti-clockwise for unidirectional flow. Let’s say node 1 and node 4 want to share some…More
Bus Topology
Bus topology is also known as line topology. In this topology, all nodes are directly connected to a single cable known as the backbone or main cable. Each node is known as a station. The type of cable to be used as a backbone depends on the type of network card. The most frequently used…More
Flet Introduction
It is a framework for building interactive multi-user web, desktop, and mobile applications in Python. It is not necessary to have prior experience with web technologies . We can build a UI(User Interface) for a program using Flet controls, which are based on Google Flutter. Installation Hello World example using flet Output Example : Displaying…More
String replacement
This blog replaces the string using the replace() method. This method is used to replace the specified string with another string. Syntax string.replace(old, new, count) old :- The string to search fornew : – String to replace the old stringcount :- Determine number to replace the string Example : Replacing the city name in the…More
Creating list from a String and display the elements in reverse order
In this program, we will ask the user to enter any string. Storing the input string in the variable and adding each string character to a list. The first step is to ask the user to input the string, and for that, we will be using the input() function. Create an empty list. We can…More
History command on Cisco Switch
Switch records or stores command that have been entered. It is very useful features to recall long and complex commands. By default, switch records 10 commands in its history buffer. We can change this number for a current terminal session or for all session. To change this number for current terminal session, go into priviledeged…More
Cisco IOS command modes
Cisco IOS user interface is divided into different modes. Use ? to check list of commands available in that mode. When we first login into the switch or router, we are in user mode also known as EXEC mode. This mode is identified with “>” symbol. It has limited commands. Only show or clear commands…More
Napalm script to display device hsotname, serial number and os version
This program displays the hostname, serial number, and OS version of a device. The “get_facts” command includes all of these details. We need to modify the parameters so that it displays the result as per our requirements. Complete program for displaying hostname, serial number and os version OutputMore
Napalm to get memory usage of a device
Here, we will be creating a Napalm script to find the current usage of the memory on the device. Start by importing Napalm along with the JSON library. We will be using JSON to format the data. Below is the compete code to display memory usage from the device Output After connecting to a device,…More