Retrieve Router Facts Info using Python Napalm

Pubblicato il: 04 settembre 2021
sul canale di: Labs On Track
643
like

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 ...  
///
Our website: https://labsontrack.com/
We’re building IT and Datacom Network Digital Platform to explore new skills, deepen your hands-on experience, we deliver effective, efficient and quality training paired with real and rich experience to help you reach your learning goals.
See list of courses from here: https://labsontrack.com/all-courses/
///
Know more about us on this link: https://labsontrack.com/about/
///
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


In questa pagina del sito puoi guardare il video online Retrieve Router Facts Info using Python Napalm della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Labs On Track 04 settembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 643 volte e gli è piaciuto like spettatori. Buona visione!