"Want more expert insights and updates? Follow us on LinkedIn and explore our company page to connect with us directly. Don’t miss out - click the link and join the conversation!"
Follow us on LinkedIn / plexinor
Company Website Https://www.plexinor.com
USING "SIMPLE" PYTHON SCRIPT to RUN "PING" command on A "SINGLE" ROUTER | SWITCH (PART-1)
Full script is provided below
lab@admin:~$ cat PING-FROM-SINGLE_ROUTER
from napalm import get_network_driver
from getpass import getpass
import json
username = input('Enter your SSH username: ')
password=getpass()
junos_driver = get_network_driver("junos")
mx_router = junos_driver('192.168.0.122', username,
password)
mx_router.open()
output = mx_router.ping("194.145.149.88")
print (json.dumps(output,indent=4))
Watch video USING "SIMPLE" PYTHON SCRIPT to RUN "PING" command on A "SINGLE" ROUTER | SWITCH (PART-1) online without registration, duration hours minute second in high quality. This video was added by user Network Tips and Topics - Plexinor 07 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 34 once and liked it 0 people.