Retrieve Router Facts Info using Python Napalm
Автор: Labs On Track
Загружено: 2021-09-04
Просмотров: 638
A python code with Napalm library is built on Linux ubuntu desktop to connect to Huawei NE40 router, and get the output of get_facts API of Napalm which returns general information about the router.
///
Huawei Network Automation Playlist: • Huawei Network Automation (Python 3 and An...
///
Links used in the video:
Napalm: https://napalm.readthedocs.io/en/latest/
Napalm community for Huawei on Github: https://github.com/napalm-automation-...
///
Additional Lab videos:
Enable SSH on NE40E router: • Network Login to Huawei router (Telnet and...
Networking Ubuntu Linux with Huawei Routers: • Networking Ubuntu Linux with Huawei Router...
Install Python 3.6, Netmiko, and Paramiko: • Install Python 3.6 and Netmiko for Ubuntu ...
///
My website: https://www.mohammadhamdy.com
mohammadhamdy.com is an on-demand IT and Datacom Networks learning platform where you can choose your course matching your requirements, start, and end it any time at your own pace with lifetime access.
See list of courses from here: https://www.mohammadhamdy.com/courses...
///
Connect with me on Social Media:
Linkedin: / mohammadhamdy
YouTube channel: / mohammadhamdyelsayed
Facebook: / labsontrack
///
Know more about my profile and my courses on Udemy on this link:
https://www.udemy.com/user/mohammad-h...
///
Know more about me on this link: https://www.mohammadhamdy.com/about.html
///
Python script code:
#!/usr/bin/env python
from napalm import get_network_driver
import pprint
driver = get_network_driver('huawei_vrp')
device = driver(hostname='10.1.1.2', username='huawei', password = 'Hamdy@123')
device.open()
get_facts = device.get_facts()
pprint.pprint(get_facts)
print(get_facts['hostname'])
///
Video key moments:
00:04 Definition of Napalm
01:02 Lab Intro
01:49 Writing the python script
06:13 Running the script
07:01 Pprint
08:03: Separately Printing an item of a dictionary (hostname item)
///
Huawei NE40E
Router
Python 3
Napalm
Napalm get_facts()
Python dictionaries
Ubuntu Linux
Huawei IP Networks
Huawei Datacom
///
#networkautomation #python #ubuntulinux #hcie #hcip #huawei #router #routers #ip #network #networks #datacom
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: