snmp

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: ISC Imports: 3 Imported by: 2

Documentation

Overview

Package snmp is the client.Object.SnmpServerProfile namespace.

For Panorama, there are two possibilities: managing this object on Panorama itself or inside of a Template.

To manage objects save on Panorama, leave "tmpl" and "ts" params empty and set "dg" to "shared" (which is also the default).

To manage objects in a template, specify the template name and the vsys (if unspecified, defaults to "shared").

Normalized object: Entry

Index

Constants

View Source
const (
	SnmpVersionV2c = "v2c"
	SnmpVersionV3  = "v3"
)

Valid values for SnmpVersion.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name        string
	SnmpVersion string
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of a snmptrap profile.

PAN-OS 7.1+.

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

Copy copies the information from source Entry `s` to this object. As the Name field relates to the XPATH of this object, this field is not copied.

type FwSnmp

type FwSnmp struct {
	// contains filtered or unexported fields
}

FwSnmp is the client.Network.LogForwardingProfile namespace.

func (*FwSnmp) Delete

func (c *FwSnmp) Delete(vsys string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwSnmp) Edit

func (c *FwSnmp) Edit(vsys string, e Entry) error

Edit performs EDIT to create / update one object.

func (*FwSnmp) Get

func (c *FwSnmp) Get(vsys, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwSnmp) GetList

func (c *FwSnmp) GetList(vsys string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwSnmp) Initialize

func (c *FwSnmp) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*FwSnmp) Set

func (c *FwSnmp) Set(vsys string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*FwSnmp) SetWithoutSubconfig added in v0.3.9

func (c *FwSnmp) SetWithoutSubconfig(vsys string, e Entry) error

SetWithoutSubconfig performs a DELETE to remove any subconfig before performing a SET to create an object.

func (*FwSnmp) Show

func (c *FwSnmp) Show(vsys, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*FwSnmp) ShowList

func (c *FwSnmp) ShowList(vsys string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoSnmp

type PanoSnmp struct {
	// contains filtered or unexported fields
}

PanoSnmp is the client.Network.SnmpServerProfile namespace.

func (*PanoSnmp) Delete

func (c *PanoSnmp) Delete(tmpl, ts, vsys, dg string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoSnmp) Edit

func (c *PanoSnmp) Edit(tmpl, ts, vsys, dg string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoSnmp) Get

func (c *PanoSnmp) Get(tmpl, ts, vsys, dg, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoSnmp) GetList

func (c *PanoSnmp) GetList(tmpl, ts, vsys, dg string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoSnmp) Initialize

func (c *PanoSnmp) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*PanoSnmp) Set

func (c *PanoSnmp) Set(tmpl, ts, vsys, dg string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*PanoSnmp) SetWithoutSubconfig added in v0.3.9

func (c *PanoSnmp) SetWithoutSubconfig(tmpl, ts, vsys, dg string, e Entry) error

SetWithoutSubconfig performs a DELETE to remove any subconfig before performing a SET to create an object.

func (*PanoSnmp) Show

func (c *PanoSnmp) Show(tmpl, ts, vsys, dg, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*PanoSnmp) ShowList

func (c *PanoSnmp) ShowList(tmpl, ts, vsys, dg string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

Directories

Path Synopsis
Package v2c is the client.Object.SnmpV2cServer namespace.
Package v2c is the client.Object.SnmpV2cServer namespace.
Package v3 is the client.Object.SnmpV3Server namespace.
Package v3 is the client.Object.SnmpV3Server namespace.

Jump to

Keyboard shortcuts

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