LinuxCommandLibrary

napalm

TLDR

Get device facts

$ napalm --user [admin] --password [pass] --vendor [ios] [192.168.1.1] call get_facts
copy
Get interfaces
$ napalm --user [admin] --password [pass] --vendor [junos] [device] call get_interfaces
copy
Configure device
$ napalm --user [admin] --password [pass] --vendor [eos] [device] configure [config.txt]
copy
Validate configuration
$ napalm --user [admin] --password [pass] --vendor [nxos] [device] validate [validation.yml]
copy

SYNOPSIS

napalm [options] hostname command [args]

DESCRIPTION

NAPALM (Network Automation and Programmability Abstraction Layer with Multivendor support) is a Python library for network automation. It provides a unified API to interact with different network vendors.
The CLI tool provides quick access to NAPALM functionality.

PARAMETERS

--user username

Device username.
--password password
Device password.
--vendor vendor
Device vendor (ios, junos, eos, nxos).
--optional_args args
Optional connection arguments.
call method
Call NAPALM method.
configure file
Apply configuration.
validate file
Validate configuration.

SUPPORTED VENDORS

$ ios, iosxr, nxos, eos
junos, fortios, panos
copy

CAVEATS

Requires vendor-specific libraries. SSH/API access must be configured. Python library more powerful than CLI.

HISTORY

NAPALM was created by David Barroso and others at Spotify in 2015 to simplify multi-vendor network automation.

SEE ALSO

netmiko(1), ansible(1), nornir(1)

Copied to clipboard