Ales999 / cisaccs

Group Cisco Access with group configs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cisaccs

Group Cisco access with group configs

Example use:

Use exampe files from 'example' dir.

package main

import (
 "github.com/ales999/cisaccs"
)


func main() {

 portSsh : = 22
 cisFileName := "/etc/cisco/cis.yaml"
 pwdFileName := "/etc/cisco/passw.json"

 acc := cisaccs.NewCisAccount(cisFileName, pwdFileName)
 err := acc.OneCisExecuteSsh("gns3-r2", portSsh, []string{"sh arp"})
 if err != nil {
  panic(err)
 }

}

PS Using modifed version netrasp library with Apache 2.0 license.

About

Group Cisco Access with group configs

License:GNU Affero General Public License v3.0


Languages

Language:Go 100.0%