Skip to content

vijaygkrishnan/go-rexec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-rexec

Script to execute CLI commands concurrently on multiple cisco nexus switches or linux hosts. Converted my python scripts to golang to tryout go-language. Since go encourages and makes it easy to open source, here is my first github commit !

build

Call Main() from go-rexec package and build to get a runnable binary

example/remote_exec.go:

package main
import rexec "github.com/vijaygkrishnan/go-rexec"
func main() { rexec.Main() }

go build remote_exec.go

usage

./remote_exec -cmd "show version | grep N9K"

./remote_exec -sort -passwd 12345 -cmd "copy running-cfg startup-cfg"

(this file verified using http://tmpvar.com/markdown.html)

About

Remote Execution of command on all nodes in a testbed using gexpect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages