My task is execute command on different routers and receive command output
I'm using golang.org/x/crypto/ssh package
Cisco works fine. But on HP output ends on prompt right before actual command.
Maybe someone have experience executing commands via ssh on HP routers and can give me some advice?
Code samples look like this:
cmd := "dis int brief"
config := &ssh.ClientConfig{
User: user,
Auth: []ssh.AuthMethod{
ssh.Password(password), }, ... }
...
conn, err := ssh.Dial("tcp", hostip+":22", config)
session, err := conn.NewSession()
output, err := session.CombinedOutput(cmd)