Code Monkey home page Code Monkey logo

invoque's Introduction

invoque

Invoque is a simple bash script to execute multiple commands on multiple devices. It's basically a linux based script used solely when there is requirement wherein we need to take the output of certain commands from multiple devices.

On normal occasion, we take the access of device, execute the command, take the output and then repeat this process for other device.

Using this script, one can automate this process by taking access of one device and using this script you can take output from multiple devices using SSHPASS & SSH.

Just make sure all the devices can be access using ssh command from a single device.

Use can use this script to run any command on a well known devices like Firewalls (with linux shell like Checkpoint), Cisco ACI, Load Balancers (like F5 LB), Linux Servers or OS.

Instructions before you run this script:

This script will help to invoke multiple commands on multiple devices.

  1. Make sure the credentials you are providing are present on all the devices on which you want to execute the command.

  2. You can use TACACS+ or AD credentials as well for access the devices if local login is not permitted.

  3. Provide exact and correct command to execute.

  4. If not sure the command provided is correct then first try the command on a single device and then use this script.

  5. While using grep with command use "-E" flag to search multiple words at a time like: grep -E "word1|word2".

  6. If for any reason you make a typo and need to exit use CTRL+C.

Note:

1. You can provide either IP address or hostname as input to take ssh access of the device.
2. After running the script, it executes the input command and saves the output to a .txt file.
3. It will then create a folder with name "invoque" in the current directory.

Walkthrough

image

Easy Command:

image

Complex Command:

image

Sample command output format in file:

image

To execute this program, follow these steps:

    1. Open a terminal of linux based device.
    
    2. Save the program to a file with a ".sh" extension.
    
    3. Set the file's permissions to allow execution by running the command "chmod +x invoque.sh".
    
    4. Run the program by entering "./invoque.sh" in the terminal
    
    5. Follow the prompts and enter any required inputs.
    
    6. The program will execute the selected function and provide the result.

invoque's People

Contributors

iidrgeekii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.