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 !
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
./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)