CLI for netbox using pynetbox module
Project description
nbcli NetBox Command-line Client
Extensible command-line interface for Netbox using the pynetbox module.
nbcli is still in development! Syntax of commands are subject to change!
Quickstart
The full nbcli documentation can be found here.
$ pip install nbcli
$ nbcli init
Edit pynetbox 'url' and 'token' entries in user_config.yml:
~/.nbcli/user_config.yml
At the very minimum, you need to specify a url and token in the user_config.yml file
pynetbox:
url: http://localhost:8080
token: 0123456789abcdef0123456789abcdef01234567
If you need to disable SSL verification, add (or uncomment) the following to your user_config.yml file.
requests:
verify: false
Run a search of Netbox objects and show a table view of results.
$ nbcli search server
dcim.devices
============
ID Name Status Tenant Site Rack Role Type IP Address
1 server01 Active - AMS 1 rack-01 server Other -
2 server02 Active - AMS 2 rack-02 server Other -
3 server03 Active - SING 1 rack-03 server Other -
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nbcli-0.7.3.dev3.tar.gz
(20.0 kB
view hashes)
Built Distribution
nbcli-0.7.3.dev3-py3-none-any.whl
(39.7 kB
view hashes)
Close
Hashes for nbcli-0.7.3.dev3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c7a1a646bd0ecb7ebebf6f2ee1f76b3aac79efbe540ca81c23c6e92f8a62c4a |
|
MD5 | cedc4bca58d005ed26158ed84aa5c23c |
|
BLAKE2b-256 | 0d84d5a84fc1ee2f9b3575c810b6b1b5430a03c0e6ded9ff60a00a1e5ab7fd2e |