rpc

package
v0.0.0-...-74972ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IOSXE string = "IOSXE"
	NXOS  string = "NXOS"
	IOS   string = "IOS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Debug  bool
	OSType string
	// contains filtered or unexported fields
}

Client sends commands to a Cisco device

func NewClient

func NewClient(ssh *connector.SSHConnection, debug bool) *Client

NewClient creates a new client connection

func (*Client) Identify

func (c *Client) Identify() error

Identify tries to identify the OS running on a Cisco device

func (*Client) RunCommand

func (c *Client) RunCommand(cmd string) (string, error)

RunCommand runs a command on a Cisco device

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL