mibs

package
v0.0.0-...-fd38cd8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

README

UPS-MIB is rfc 1628 See: https://tools.ietf.org/html/rfc1628

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpsAlarmsHeadersTable

type UpsAlarmsHeadersTable struct {
	*core.SnmpTable // base class
}

UpsAlarmsHeadersTable represents SNMP OID .1.3.6.1.2.1.33.1.6 This is just the alarms present column. OID: .1.3.6.1.2.1.33.1.6.1.0

func NewUpsAlarmsHeadersTable

func NewUpsAlarmsHeadersTable(snmpServerBase *core.SnmpServerBase) (table *UpsAlarmsHeadersTable, err error)

NewUpsAlarmsHeadersTable constructs the UpsAlarmsHeadersTable.

type UpsAlarmsHeadersTableDeviceEnumerator

type UpsAlarmsHeadersTableDeviceEnumerator struct {
	Table *UpsAlarmsHeadersTable // Pointer back to the table.
}

UpsAlarmsHeadersTableDeviceEnumerator overrides the default SnmpTable device enumerator for the alarms headers table.

func (UpsAlarmsHeadersTableDeviceEnumerator) DeviceEnumerator

func (enumerator UpsAlarmsHeadersTableDeviceEnumerator) DeviceEnumerator(
	data map[string]interface{}) (devices []*config.DeviceProto, err error)

DeviceEnumerator overrides the default SnmpTable device enumerator.

type UpsAlarmsTable

type UpsAlarmsTable struct {
	*core.SnmpTable // base class
}

UpsAlarmsTable represents SNMP OID .1.3.6.1.2.1.33.1.6.2 There are no rows in this table when no alarms are present. We have no real data for this row at this time (5/16/2018)

func NewUpsAlarmsTable

func NewUpsAlarmsTable(snmpServerBase *core.SnmpServerBase) (table *UpsAlarmsTable, err error)

NewUpsAlarmsTable constructs the UpsAlarmsTable.

type UpsAlarmsTableDeviceEnumerator

type UpsAlarmsTableDeviceEnumerator struct {
	Table *UpsAlarmsTable // Pointer back to the table.
}

UpsAlarmsTableDeviceEnumerator overrides the default SnmpTable device enumerator for the alarms headers table.

func (UpsAlarmsTableDeviceEnumerator) DeviceEnumerator

func (enumerator UpsAlarmsTableDeviceEnumerator) DeviceEnumerator(
	data map[string]interface{}) (devices []*config.DeviceProto, err error)

DeviceEnumerator overrides the default SnmpTable device enumerator.

type UpsBasicGroupsTable

type UpsBasicGroupsTable struct {
	*core.SnmpTable // base class
}

UpsBasicGroupsTable represents SNMP OID .1.3.6.1.2.1.33.1.6.1.0 We currently have no data for this table (5/16/2018)

func NewUpsBasicGroupsTable

func NewUpsBasicGroupsTable(snmpServerBase *core.SnmpServerBase) (table *UpsBasicGroupsTable, err error)

NewUpsBasicGroupsTable constructs the UpsBasicGroupsTable.

type UpsBatteryTable

type UpsBatteryTable struct {
	*core.SnmpTable // base class
}

UpsBatteryTable represents SNMP OID .1.3.6.1.2.1.33.1.2

func NewUpsBatteryTable

func NewUpsBatteryTable(snmpServerBase *core.SnmpServerBase) (table *UpsBatteryTable, err error)

NewUpsBatteryTable constructs the UpsBatteryTable.

type UpsBatteryTableDeviceEnumerator

type UpsBatteryTableDeviceEnumerator struct {
	Table *UpsBatteryTable // Pointer back to the table.
}

UpsBatteryTableDeviceEnumerator overrides the default SnmpTable device enumerator for the battery table.

func (UpsBatteryTableDeviceEnumerator) DeviceEnumerator

func (enumerator UpsBatteryTableDeviceEnumerator) DeviceEnumerator(
	data map[string]interface{}) (devices []*config.DeviceProto, err error)

DeviceEnumerator overrides the default SnmpTable device enumerator.

type UpsBypassHeadersTable

type UpsBypassHeadersTable struct {
	*core.SnmpTable // base class
}

UpsBypassHeadersTable represents SNMP OID .1.3.6.1.2.1.33.1.5

func NewUpsBypassHeadersTable

func NewUpsBypassHeadersTable(snmpServerBase *core.SnmpServerBase) (table *UpsBypassHeadersTable, err error)

NewUpsBypassHeadersTable constructs the UpsBypassHeadersTable.

type UpsBypassTable

type UpsBypassTable struct {
	*core.SnmpTable // base class
}

UpsBypassTable represents SNMP OID .1.3.6.1.2.1.33.1.5.3

func NewUpsBypassTable

func NewUpsBypassTable(snmpServerBase *core.SnmpServerBase) (table *UpsBypassTable, err error)

NewUpsBypassTable constructs the UpsBypassTable.

type UpsBypassTableDeviceEnumerator

type UpsBypassTableDeviceEnumerator struct {
	Table *UpsBypassTable // Pointer back to the table.
}

UpsBypassTableDeviceEnumerator overrides the default SnmpTable device enumerator for the bypass table.

func (UpsBypassTableDeviceEnumerator) DeviceEnumerator

func (enumerator UpsBypassTableDeviceEnumerator) DeviceEnumerator(
	data map[string]interface{}) (devices []*config.DeviceProto, err error)

DeviceEnumerator overrides the default SnmpTable device enumerator.

type UpsCompliancesTable

type UpsCompliancesTable struct {
	*core.SnmpTable // base class
}

UpsCompliancesTable represents SNMP OID .1.3.6.1.2.1.33.3.1

func NewUpsCompliancesTable

func NewUpsCompliancesTable(snmpServerBase *core.SnmpServerBase) (table *UpsCompliancesTable, err error)

NewUpsCompliancesTable constructs the UpsCompliancesTable.

type UpsConfigTable

type UpsConfigTable struct {
	*core.SnmpTable // base class
}

UpsConfigTable represents SNMP OID 1.3.6.1.2.1.33.1.9

func NewUpsConfigTable

func NewUpsConfigTable(snmpServerBase *core.SnmpServerBase) (table *UpsConfigTable, err error)

NewUpsConfigTable constructs the UpsConfigTable.

type UpsControlTable

type UpsControlTable struct {
	*core.SnmpTable // base class
}

UpsControlTable represents SNMP OID 1.3.6.1.2.1.33.1.8

func NewUpsControlTable

func NewUpsControlTable(snmpServerBase *core.SnmpServerBase) (table *UpsControlTable, err error)

NewUpsControlTable constructs the UpsControlTable.

type UpsFullGroupsTable

type UpsFullGroupsTable struct {
	*core.SnmpTable // base class
}

UpsFullGroupsTable represents SNMP OID .1.3.6.1.2.1.33.3.2.3

func NewUpsFullGroupsTable

func NewUpsFullGroupsTable(snmpServerBase *core.SnmpServerBase) (table *UpsFullGroupsTable, err error)

NewUpsFullGroupsTable constructs the UpsFullGroupsTable.

type UpsIdentity

type UpsIdentity struct {
	Manufacturer         string
	Model                string
	UpsSoftwareVersion   string
	AgentSoftwareVersion string
	Name                 string
	AttachedDevices      string
}

UpsIdentity contains identification information for a UPS. These come in as binary data from a single SnmpRow. This struct is a helper/ translator to provide string data.

type UpsIdentityTable

type UpsIdentityTable struct {
	*core.SnmpTable              // base class
	UpsIdentity     *UpsIdentity // Identity information.
}

UpsIdentityTable represents SNMP OID .1.3.6.1.2.1.33.1.1

func NewUpsIdentityTable

func NewUpsIdentityTable(snmpServerBase *core.SnmpServerBase) (table *UpsIdentityTable, err error)

NewUpsIdentityTable constructs the UpsIdentityTable.

type UpsIdentityTableDeviceEnumerator

type UpsIdentityTableDeviceEnumerator struct {
	Table *UpsIdentityTable // Pointer back to the table.
}

UpsIdentityTableDeviceEnumerator overrides the default SnmpTable device enumerator for the input headers table.

func (UpsIdentityTableDeviceEnumerator) DeviceEnumerator

func (enumerator UpsIdentityTableDeviceEnumerator) DeviceEnumerator(
	data map[string]interface{}) (devices []*config.DeviceProto, err error)

DeviceEnumerator overrides the default SnmpTable device enumerator.

type UpsInputHeadersTable

type UpsInputHeadersTable struct {
	*core.SnmpTable // base class
}

UpsInputHeadersTable represents SNMP OID .1.3.6.1.2.1.33.1.3

func NewUpsInputHeadersTable

func NewUpsInputHeadersTable(snmpServerBase *core.SnmpServerBase) (table *UpsInputHeadersTable, err error)

NewUpsInputHeadersTable constructs the UpsInputHeadersTable.

type UpsInputTable

type UpsInputTable struct {
	*core.SnmpTable // base class
}

UpsInputTable represents SNMP OID .1.3.6.1.2.1.33.1.3.3

func NewUpsInputTable

func NewUpsInputTable(snmpServerBase *core.SnmpServerBase) (table *UpsInputTable, err error)

NewUpsInputTable constructs the UpsInputTable.

type UpsInputTableDeviceEnumerator

type UpsInputTableDeviceEnumerator struct {
	Table *UpsInputTable // Pointer back to the table.
}

UpsInputTableDeviceEnumerator overrides the default SnmpTable device enumerator for the input table.

func (UpsInputTableDeviceEnumerator) DeviceEnumerator

func (enumerator UpsInputTableDeviceEnumerator) DeviceEnumerator(
	data map[string]interface{}) (devices []*config.DeviceProto, err error)

DeviceEnumerator overrides the default SnmpTable device enumerator.

type UpsMib

type UpsMib struct {
	*core.SnmpMib // base class

	// Tables defined in this MIB
	UpsIdentityTable        *UpsIdentityTable
	UpsBatteryTable         *UpsBatteryTable
	UpsInputHeadersTable    *UpsInputHeadersTable
	UpsInputTable           *UpsInputTable
	UpsOutputHeadersTable   *UpsOutputHeadersTable
	UpsOutputTable          *UpsOutputTable
	UpsBypassHeadersTable   *UpsBypassHeadersTable
	UpsBypassTable          *UpsBypassTable
	UpsAlarmsHeadersTable   *UpsAlarmsHeadersTable
	UpsAlarmsTable          *UpsAlarmsTable
	UpsWellKnownAlarmsTable *UpsWellKnownAlarmsTable
	UpsTestHeadersTable     *UpsTestHeadersTable
	UpsWellKnownTestsTable  *UpsWellKnownTestsTable
	UpsControlTable         *UpsControlTable
	UpsConfigTable          *UpsConfigTable
	UpsCompliancesTable     *UpsCompliancesTable
	UpsSubsetGroupsTable    *UpsSubsetGroupsTable
	UpsBasicGroupsTable     *UpsBasicGroupsTable
	UpsFullGroupsTable      *UpsFullGroupsTable
}

UpsMib is the class for all SNMP operations on UPS-MIB, rfc 1628.

func NewUpsMib

func NewUpsMib(server *core.SnmpServerBase) (upsMib *UpsMib, err error)

NewUpsMib constructs the UpsMib.

type UpsOutputHeadersTable

type UpsOutputHeadersTable struct {
	*core.SnmpTable // base class
}

UpsOutputHeadersTable represents SNMP OID .1.3.6.1.2.1.33.1.4

func NewUpsOutputHeadersTable

func NewUpsOutputHeadersTable(snmpServerBase *core.SnmpServerBase) (table *UpsOutputHeadersTable, err error)

NewUpsOutputHeadersTable constructs the UpsOutputHeadersTable.

type UpsOutputHeadersTableDeviceEnumerator

type UpsOutputHeadersTableDeviceEnumerator struct {
	Table *UpsOutputHeadersTable // Pointer back to the table.
}

UpsOutputHeadersTableDeviceEnumerator overrides the default SnmpTable device enumerator for the output headers table.

func (UpsOutputHeadersTableDeviceEnumerator) DeviceEnumerator

func (enumerator UpsOutputHeadersTableDeviceEnumerator) DeviceEnumerator(
	data map[string]interface{}) (devices []*config.DeviceProto, err error)

DeviceEnumerator overrides the default SnmpTable device enumerator.

type UpsOutputTable

type UpsOutputTable struct {
	*core.SnmpTable // base class
}

UpsOutputTable represents SNMP OID .1.3.6.1.2.1.33.1.4.4

func NewUpsOutputTable

func NewUpsOutputTable(snmpServerBase *core.SnmpServerBase) (table *UpsOutputTable, err error)

NewUpsOutputTable constructs the UpsOutputTable.

type UpsOutputTableDeviceEnumerator

type UpsOutputTableDeviceEnumerator struct {
	Table *UpsOutputTable // Pointer back to the table.
}

UpsOutputTableDeviceEnumerator overrides the default SnmpTable device enumerator for the output table.

func (UpsOutputTableDeviceEnumerator) DeviceEnumerator

func (enumerator UpsOutputTableDeviceEnumerator) DeviceEnumerator(
	data map[string]interface{}) (devices []*config.DeviceProto, err error)

DeviceEnumerator overrides the default SnmpTable device enumerator.

type UpsSubsetGroupsTable

type UpsSubsetGroupsTable struct {
	*core.SnmpTable // base class
}

UpsSubsetGroupsTable represents SNMP OID .1.3.6.1.2.1.33.3.2.1

func NewUpsSubsetGroupsTable

func NewUpsSubsetGroupsTable(snmpServerBase *core.SnmpServerBase) (table *UpsSubsetGroupsTable, err error)

NewUpsSubsetGroupsTable constructs the UpsSubsetGroupsTable.

type UpsTestHeadersTable

type UpsTestHeadersTable struct {
	*core.SnmpTable // base class
}

UpsTestHeadersTable represents SNMP OID .1.3.6.1.2.1.33.1.7

func NewUpsTestHeadersTable

func NewUpsTestHeadersTable(snmpServerBase *core.SnmpServerBase) (table *UpsTestHeadersTable, err error)

NewUpsTestHeadersTable constructs the UpsTestHeadersTable.

type UpsWellKnownAlarmsTable

type UpsWellKnownAlarmsTable struct {
	*core.SnmpTable // base class
}

UpsWellKnownAlarmsTable represents SNMP OID .1.3.6.1.2.1.33.1.6.3

func NewUpsWellKnownAlarmsTable

func NewUpsWellKnownAlarmsTable(snmpServerBase *core.SnmpServerBase) (table *UpsWellKnownAlarmsTable, err error)

NewUpsWellKnownAlarmsTable constructs the UpsWellKnownAlarmsTable.

type UpsWellKnownTestsTable

type UpsWellKnownTestsTable struct {
	*core.SnmpTable // base class
}

UpsWellKnownTestsTable represents SNMP OID .1.3.6.1.2.1.33.1.7.7

func NewUpsWellKnownTestsTable

func NewUpsWellKnownTestsTable(snmpServerBase *core.SnmpServerBase) (table *UpsWellKnownTestsTable, err error)

NewUpsWellKnownTestsTable constructs the UpsWellKnownTestsTable.

Jump to

Keyboard shortcuts

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