Skip to main content

Terminal User Interface for spcli

Project description

https://img.shields.io/badge/License-Apache_2.0-blue.svg https://img.shields.io/github/issues/ipHeaders/spcli-ui https://img.shields.io/github/v/tag/ipHeaders/spcli-ui https://github.com/ipHeaders/spcli-ui/actions/workflows/publish-to-pypi.yml/badge.svg

Terminal User Interface for Silverpeak/Aruba SD-WAN CLI. This CLI tool is a wrapper of the other project spcli which provides a terminal user interface with guided manu to query the Silverpeak API.

Getting Started

Requierements

  • Python >=3.7

  • User with API KEY

To get started, install the CLI tool from Pypi

pip3 install pyspcli-ui

or download it directly from github:

pip3 install git+https://github.com/NetDevLazg/spcli-ui.git

Once the installation is successful, you will need to create a file with your api credentials.

  • Create a folder in the following directory mkdir ~/.spcli

  • Create a yml file with your credentials in .spcli directory

  • Using vim
    • vim ~/.spcli/creds.yml

  • Using nano
    • nano ~/.spcli/creds.yml

The yml file needs to have the following variables. Example:

url: silverpeak-orch-use1.silverpeak.cloud
token: a38b3360bb4d06fed7e53f77c8752d74bb4faeb4295385a25e02ebc2594d9074a16bb115fce4d4dc9826d824950504b6d23373

After the file is created and saved, please verify the cli tool version using the following command:

sp -v
version...installed: 0.0.6

Possible Errors

If you receive an error saying “Command not found” make sure to add the location where the package is installed to your $PATH

Possible error:

WARNING: The script sp is installed in '/Users/John/Library/Python/3.8/bin' which is not on PATH.

Fix:

export PATH='$PATH:/Users/John/Library/Python/3.8/bin'

Examples

To use the user interface please use the following command:

spui
docs/demo.gif

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyspcli-ui-0.1.0.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

pyspcli_ui-0.1.0-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page