← 返回命令列表

Linux command

napalm 命令

趣味

复制后可按需替换文件名、目录或参数。

常用示例

Get device facts

napalm --user [admin] --password [pass] --vendor [ios] [192.168.1.1] call get_facts

Get interfaces

napalm --user [admin] --password [pass] --vendor [junos] [device] call get_interfaces

Configure device

napalm --user [admin] --password [pass] --vendor [eos] [device] configure [config.txt]

Validate configuration

napalm --user [admin] --password [pass] --vendor [nxos] [device] validate [validation.yml]

说明

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.

参数

--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.

FAQ

What is the napalm command used for?

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.

How do I run a basic napalm example?

Run `napalm --user [admin] --password [pass] --vendor [ios] [192.168.1.1] call get_facts` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --user _username_ do in napalm?

Device username.