Skip to content

coreyhines/eoscmd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eoscmd

Command line tool for EOS

Run command against array of EOS

Goal: take in a list of eos devices in json format, execute cli command via eapi against them all and return the result in a series of text files Inputs: json file, command, output directory Outputs: multiple text files for each switch and command run + timestamp? Note: user may need to create a directory called "output" in their cloned repo, until further development is done

e.g.

cat devices.json | eoscmd "show tech" -o ./showtech

=======

Device format is based on JSON verison of Ansible inventory list. Here is an example file: (devices.json)[devices.json]. If not using a pipe, it will optionally look for a devices.json file in the local directory

  • TODO: Make this a cli parameter -f devices.json

Credentials

Can be specified in the devices JSON mentioned above. Or can be specified as environment variables EAPI_USERNAME, EAPI_PASSWORD. Device file and pipes override the environment variables.

Output

Output is directed to a path given by the -o parameter

About

Command line tool for EOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%