Skip to content

mike-pfeiffer/nucli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nucli workflow

nucli

Network Utilities CLI (nucli) is a collection of commonly used tools for network engineers.

System

Built and tested on Ubuntu 18.04.3

Setup (Makefile)

  1. Clone the repository and change directory to nucli
$ git clone https://github.com/pfeiffermj/nucli.git
$ cd nucli
  1. Run the Makefile and activate virtual environment
$ make install
$ . env/bin/activate
  1. Test your installation and begin using
$ nucli
  1. When finished deactivate and clean
$ deactivate
$ make clean

Setup (manual)

  1. Clone the repository and change directory to nucli
$ git clone git clone https://github.com/pfeiffermj/nucli.git 
$ cd nucli
  1. Create a virtual environment and activate it
$ python3 -m venv env
$ . env/bin/activate
  1. Install setup and requirements
$ pip3 install -e .
$ pip3 install -r requirements.txt
  1. Test your installation and begin using
$ nucli
  1. Deactivate your virtual environment when finished
$ deactivate

Linting & Testing

  1. Navigate to nucli folder if not already in the directory

  2. Run make options for lint and test

(env) ~/nucli$ make lint
(env) ~/nucli$ make test

CLI Usage

Main

Demonstrates calling nucli directly from shell without requiring the file to be executable or prefaced with python3:

$ nucli 
Usage: nucli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  ping-range

ping-range

Demonstrates the ping-range tool being executed from nucli CLI.

IPv4 example:

$ nucli ping-range --start 192.0.2.198 --end 192.0.2.200
192.0.2.198 failed to respond
192.0.2.199 failed to respond
192.0.2.200 responded

IPv6 example:

$ nucli ping-range --start fe80::20c:29ff:fe7a:bcf3 --end fe80::20c:29ff:fe7a:bcf5 --iface ens33
fe80::20c:29ff:fe7a:bcf3 responded
fe80::20c:29ff:fe7a:bcf4 failed to respond
fe80::20c:29ff:fe7a:bcf5 failed to respond

About

Network Utilities - CLI Tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published