Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

napalm cli

import napalm
driver = napalm.get_network_driver('ios')
device = driver(hostname='127.0.0.1', username='vagrant',password='vagrant')

print('Opening ...')
device.open()

commands = ['show run']
res = device.cli(commands)
print(res)
 
PREVIOUS NEXT
Tagged: #napalm #cli
ADD COMMENT
Topic
Name
7+7 =