Push Commands

This script helps engineers to execute commands on many devices.

Requirements

This script tested on Linux with python3.7 or higher. (works only on Linux)
The following packages are required:

  • napalm
  • termcolor
  • tabulate
  • simple_term_menu

It's recommended to crate a virtual environment, activate it and then install the packages:

For Linux:

$ git clone https://github.com/Pr1meSuspec7/pushComm.git
$ cd pushcomm
$ python -m venv VENV-NAME
$ source VENV-NAME/bin/activate
$ pip install -r requirements.txt

NOTE: chose a name for virtual environment and replace the VENV-NAME string

How to use

You have to run the command and follow the interactive menu:

$ python pushcomm.py

This is a sample execution:
NOTE: For this test I used a Cisco Devenet machine CSR1000V (https://developer.cisco.com/)
asciicast

Next features

  • Save output in a file
  • Select connection protocol (SSH/Telnet)
View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Programming Languages

    Python
  • License

    MIT License

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.