Hi.
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)
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/6297432b-3f88-42ea-8148-1ddd36019516n%40googlegroups.com.