Documentation
¶
Index ¶
- type UpsAlarmsHeadersTable
- type UpsAlarmsHeadersTableDeviceEnumerator
- type UpsAlarmsTable
- type UpsAlarmsTableDeviceEnumerator
- type UpsBasicGroupsTable
- type UpsBatteryTable
- type UpsBatteryTableDeviceEnumerator
- type UpsBypassHeadersTable
- type UpsBypassTable
- type UpsBypassTableDeviceEnumerator
- type UpsCompliancesTable
- type UpsConfigTable
- type UpsControlTable
- type UpsFullGroupsTable
- type UpsIdentity
- type UpsIdentityTable
- type UpsIdentityTableDeviceEnumerator
- type UpsInputHeadersTable
- type UpsInputTable
- type UpsInputTableDeviceEnumerator
- type UpsMib
- type UpsOutputHeadersTable
- type UpsOutputHeadersTableDeviceEnumerator
- type UpsOutputTable
- type UpsOutputTableDeviceEnumerator
- type UpsSubsetGroupsTable
- type UpsTestHeadersTable
- type UpsWellKnownAlarmsTable
- type UpsWellKnownTestsTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpsAlarmsHeadersTable ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
type UpsOutputHeadersTable ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
Source Files
¶
- ups_alarms_headers_table.go
- ups_alarms_table.go
- ups_basic_groups_table.go
- ups_battery_table.go
- ups_bypass_headers_table.go
- ups_bypass_table.go
- ups_compliances_table.go
- ups_config_table.go
- ups_control_table.go
- ups_full_groups_table.go
- ups_identity_table.go
- ups_input_headers_table.go
- ups_input_table.go
- ups_mib.go
- ups_output_headers_table.go
- ups_output_table.go
- ups_subset_groups_table.go
- ups_test_headers_table.go
- ups_well_known_alarms_table.go
- ups_well_known_tests_table.go