Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownCommand = errors.New("unknown or invalid command") ErrAuthFailed = errors.New("authentication failed") ErrNoPrompt = errors.New("no return of prompt after command") ErrUnsupported = errors.New("unsupported connection type") // Timeout for waiting for a prompt Timeout = time.Second * 5 // Log all to stdout of conso ShowLog = false // Connection types Telnet = "telnet" SSH = "ssh" )
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Ip string Port string Username string Password string Enable string DeviceType string ConnType string // contains filtered or unexported fields }
func (Device) Configure ¶
Configure a silce of commands on the device. The commands executed automatically in the 'configure terminal' mode.
Click to show internal directories.
Click to hide internal directories.