Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
ede41a6
drivers/bcmxcp.c: fix info_lkp_t arrays to consider fourth "nuf" field
jimklimov Nov 4, 2020
781c332
drivers/gamatronic.h: avoid anonymous struct
jimklimov Nov 5, 2020
390850a
drivers/gamatronic.h: initialize the "value" field in the struct array
jimklimov Nov 5, 2020
a6d20a1
drivers/mge-utalk.c: update arrays of info_lkp_t with fourth (nuf) field
jimklimov Nov 5, 2020
cb03576
drivers/usbhid-ups.c: update HIDDevice_t object with missing initiali…
jimklimov Nov 5, 2020
fa75a18
drivers/usbhid-ups.c: update arrays of info_lkp_t with fourth (nuf) f…
jimklimov Nov 5, 2020
74c5466
drivers/usbhid-ups.c: update arrays of info_lkp_t with fourth (nuf) f…
jimklimov Nov 5, 2020
61066ff
drivers/mge-hid.c: update arrays of info_lkp_t with fourth (nuf) fiel…
jimklimov Nov 5, 2020
f123f8f
drivers/optiups.c: initialize all fields of ezfill_t tables
jimklimov Nov 5, 2020
9b693e5
drivers/upscode2.c: initialize all fields of cmd_t and simple_t arrays
jimklimov Nov 6, 2020
e09aae1
tools/nut-scanner/nutscan-serial.c: initialize all fields of device_p…
jimklimov Nov 6, 2020
615e68b
drivers/apcsmart_tabs.c: initialize all fields of apc_vartab_t arrays
jimklimov Nov 6, 2020
1c12250
drivers/apcsmart_tabs.c: initialize all fields of upsdrv_info_t array
jimklimov Nov 6, 2020
98af6b4
drivers/apc-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
66d93fb
drivers/apc-mib.c: replace verbatim OID string we seek with a macro A…
jimklimov Nov 8, 2020
1c06cf7
drivers/apc-mib.c: initialize all fields of mib2nut_info_t array (and…
jimklimov Nov 8, 2020
75c91ea
drivers/baytech-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
048fca2
drivers/baytech-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
aa9c57e
drivers/compaq-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
7e011e5
drivers/compaq-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
c4cbf71
drivers/eaton-pdu-genesis2-mib.c: initialize all fields of mib2nut_in…
jimklimov Nov 8, 2020
f69f3fd
drivers/eaton-pdu-marlin-mib.c: initialize all fields of info_lkp_t a…
jimklimov Nov 8, 2020
97de5d5
drivers/eaton-pdu-marlin-mib.c: initialize all fields of mib2nut_info…
jimklimov Nov 8, 2020
a4c106c
drivers/eaton-pdu-pulizzi-mib.c: initialize all fields of info_lkp_t …
jimklimov Nov 8, 2020
3d9c06e
drivers/eaton-pdu-pulizzi-mib.c: initialize all fields of mib2nut_inf…
jimklimov Nov 8, 2020
94ceece
drivers/eaton-pdu-revelation-mib.c: initialize all fields of info_lkp…
jimklimov Nov 8, 2020
a8edf3c
drivers/eaton-pdu-revelation-mib.c: initialize all fields of mib2nut_…
jimklimov Nov 8, 2020
cab447b
drivers/emerson-avocent-pdu-mib.c: initialize all fields of mib2nut_i…
jimklimov Nov 8, 2020
1fba236
drivers/emerson-avocent-pdu-mib.c: initialize all fields of info_lkp_…
jimklimov Nov 8, 2020
c147d60
drivers/ietf-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
a54b9f4
drivers/ietf-mib.c: initialize all fields of mib2nut_info_t arrays
jimklimov Nov 8, 2020
3d7c12a
drivers/mge-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
a8a0222
drivers/mge-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
16837c3
drivers/netvision-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
3e882a5
drivers/netvision-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
62e9bb2
drivers/powerware-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
e137e70
drivers/raritan-pdu-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
5e168e7
drivers/raritan-px2-mib.c: initialize all fields of info_lkp_t arrays…
jimklimov Nov 8, 2020
c495b2f
drivers/raritan-px2-mib.c: fix indentations
jimklimov Nov 8, 2020
8659980
drivers/raritan-px2-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
3d26c8b
drivers/raritan-pdu-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
f057137
drivers/xppc-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
001086a
drivers/xppc-mib.c: initialize all fields of info_lkp_t arrays, and e…
jimklimov Nov 8, 2020
fc71f12
drivers/bestpower-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
22938b9
drivers/bestpower-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
a755a35
drivers/cyberpower-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
a89dff7
drivers/cyberpower-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
95b52cf
drivers/delta_ups-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
b1aa73e
drivers/delta_ups-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
ed0639c
drivers/eaton-ats30-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
9087d8c
drivers/eaton-ats30-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
01fd169
drivers/hpe-pdu-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
706cd68
drivers/hpe-pdu-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
516bd99
drivers/huawei-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
6ebb4b3
drivers/huawei-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
54e78a9
drivers/eaton-ats16-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
06962b8
drivers/eaton-ats16-mib.c: initialize all fields of mib2nut_info_t ar…
jimklimov Nov 8, 2020
99a9ad9
drivers/apc-ats-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
2e4e976
drivers/apc-ats-mib.c: initialize all fields of mib2nut_info_t array
jimklimov Nov 8, 2020
1430909
drivers/apc-pdu-mib.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
823e881
drivers/apc-pdu-mib.c: initialize all fields of mib2nut_info_t arrays
jimklimov Nov 8, 2020
2c86ffe
drivers/apc-pdu-mib.c: define APC_PDU_DEVICE_MODEL macro on top of file
jimklimov Nov 8, 2020
28a20b7
drivers/apc-hid.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
4704276
drivers/belkin-hid.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
a3a0762
drivers/cps-hid.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
1ec0b02
drivers/powercom-hid.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
65dd550
drivers/tripplite-hid.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
e6669a5
drivers/openups-hid.c: initialize all fields of info_lkp_t arrays
jimklimov Nov 8, 2020
70c2c1c
drivers/apc-hid.c: a few whitespace fixes
jimklimov Nov 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions drivers/apc-ats-mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,30 @@
#define APC_ATS_OID_MODEL_NAME ".1.3.6.1.4.1.318.1.1.8.1.5.0"

static info_lkp_t ats_sensitivity_info[] = {
{ 1, "high" },
{ 2, "low" },
{ 0, NULL }
{ 1, "high", NULL, NULL },
{ 2, "low", NULL, NULL },
{ 0, NULL, NULL, NULL }
};

static info_lkp_t ats_output_status_info[] = {
{ 1, "OFF" }, /* fail */
{ 2, "OL" }, /* ok */
{ 0, NULL }
{ 1, "OFF", NULL, NULL }, /* fail */
{ 2, "OL", NULL, NULL }, /* ok */
{ 0, NULL, NULL, NULL }
};

static info_lkp_t ats_outletgroups_name_info[] = {
{ 1, "total" },
{ 2, "bank1" },
{ 3, "bank2" },
{ 0, NULL }
{ 1, "total", NULL, NULL },
{ 2, "bank1", NULL, NULL },
{ 3, "bank2", NULL, NULL },
{ 0, NULL, NULL, NULL }
};

static info_lkp_t ats_outletgroups_status_info[] = {
{ 1, "OL" }, /* normal */
{ 2, "" }, /* lowload */
{ 3, "" }, /* nearoverload */
{ 4, "OVER" }, /* overload */
{ 0, NULL }
{ 1, "OL", NULL, NULL }, /* normal */
{ 2, "", NULL, NULL }, /* lowload */
{ 3, "", NULL, NULL }, /* nearoverload */
{ 4, "OVER", NULL, NULL }, /* overload */
{ 0, NULL, NULL, NULL }
};

/* APC ATS Snmp2NUT lookup table */
Expand Down Expand Up @@ -445,4 +445,4 @@ static snmp_info_t apc_ats_mib[] = {
{ NULL, 0, 0, NULL, NULL, 0, NULL }
};

mib2nut_info_t apc_ats = { "apc_ats", APC_ATS_MIB_VERSION, NULL, APC_ATS_OID_MODEL_NAME, apc_ats_mib, APC_ATS_SYSOID };
mib2nut_info_t apc_ats = { "apc_ats", APC_ATS_MIB_VERSION, NULL, APC_ATS_OID_MODEL_NAME, apc_ats_mib, APC_ATS_SYSOID, NULL };
60 changes: 30 additions & 30 deletions drivers/apc-hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ char * tweak_max_report[] = {
/* Back-UPS ES 700 does NOT overflow. */
/* Back-UPS ES 725 does NOT overflow. */
/* Back-UPS ES 525 overflows on ReportID 0x0c
(UPS.PowerSummary.RemainingCapacity).*/
(UPS.PowerSummary.RemainingCapacity). */
"Back-UPS ES 525",
/* Back-UPS CS 650 overflows on ReportID 0x46 */
"Back-UPS CS",
Expand Down Expand Up @@ -125,52 +125,52 @@ static const char *apc_date_conversion_fun(double value)
}

info_lkp_t apc_date_conversion[] = {
{ 0, NULL, apc_date_conversion_fun }
{ 0, NULL, apc_date_conversion_fun, NULL }
};

/* This was determined empirically from observing a BackUPS LS 500 */
static info_lkp_t apcstatusflag_info[] = {
{ 8, "!off", NULL }, /* Normal operation */
{ 16, "!off", NULL }, /* This occurs briefly during power-on, and corresponds to status 'DISCHRG'. */
{ 0, "off", NULL },
{ 0, NULL, NULL }
{ 8, "!off", NULL, NULL }, /* Normal operation */
{ 16, "!off", NULL, NULL }, /* This occurs briefly during power-on, and corresponds to status 'DISCHRG'. */
{ 0, "off", NULL, NULL },
{ 0, NULL, NULL, NULL }
};

/* Reason of the last battery transfer (from apcupsd) */
static info_lkp_t apc_linefailcause_vrange_info[] = {
{ 1, "vrange", NULL }, /* Low line voltage */
{ 2, "vrange", NULL }, /* High line voltage */
{ 4, "vrange", NULL }, /* notch, spike, or blackout */
{ 8, "vrange", NULL }, /* Notch or blackout */
{ 9, "vrange", NULL }, /* Spike or blackout */
{ 0, "!vrange", NULL }, /* No transfers have ocurred */
{ 0, NULL, NULL }
{ 1, "vrange", NULL, NULL }, /* Low line voltage */
{ 2, "vrange", NULL, NULL }, /* High line voltage */
{ 4, "vrange", NULL, NULL }, /* notch, spike, or blackout */
{ 8, "vrange", NULL, NULL }, /* Notch or blackout */
{ 9, "vrange", NULL, NULL }, /* Spike or blackout */
{ 0, "!vrange", NULL, NULL }, /* No transfers have ocurred */
{ 0, NULL, NULL, NULL }
};

static info_lkp_t apc_linefailcause_frange_info[] = {
{ 7, "frange", NULL }, /* Input frequency out of range */
{ 0, "!frange", NULL }, /* No transfers have ocurred */
{ 0, NULL, NULL }
{ 7, "frange", NULL, NULL }, /* Input frequency out of range */
{ 0, "!frange", NULL, NULL }, /* No transfers have ocurred */
{ 0, NULL, NULL, NULL }
};

#if 0
/* these input.transfer.reason can't be mapped at the moment... */
{ 3, "ripple", NULL }, /* Ripple */
{ 5, "self test", NULL }, /* Self Test or Discharge Calibration commanded
* Test usage, front button, or 2 week self test */
{ 6, "forced", NULL }, /* DelayBeforeShutdown or APCDelayBeforeShutdown */
{ 10, "forced", NULL }, /* Graceful shutdown by accessories */
{ 11, "self test", NULL }, /* Test usage invoked */
{ 12, "self test", NULL }, /* Front button initiated self test */
{ 13, "self test", NULL }, /* 2 week self test */
{ 0, NULL, NULL }
{ 3, "ripple", NULL, NULL }, /* Ripple */
{ 5, "self test", NULL, NULL }, /* Self Test or Discharge Calibration commanded
* Test usage, front button, or 2 week self test */
{ 6, "forced", NULL, NULL }, /* DelayBeforeShutdown or APCDelayBeforeShutdown */
{ 10, "forced", NULL, NULL }, /* Graceful shutdown by accessories */
{ 11, "self test", NULL, NULL }, /* Test usage invoked */
{ 12, "self test", NULL, NULL }, /* Front button initiated self test */
{ 13, "self test", NULL, NULL }, /* 2 week self test */
{ 0, NULL, NULL, NULL }
#endif

static info_lkp_t apc_sensitivity_info[] = {
{ 0, "low", NULL },
{ 1, "medium", NULL },
{ 2, "high", NULL },
{ 0, NULL, NULL }
{ 0, "low", NULL, NULL },
{ 1, "medium", NULL, NULL },
{ 2, "high", NULL, NULL },
{ 0, NULL, NULL, NULL }
};

/* --------------------------------------------------------------- */
Expand Down Expand Up @@ -395,7 +395,7 @@ static hid_info_t apc_hid2nut[] = {
/*
{ "ambient.temperature", 0, 0, "UPS.APCEnvironment.APCProbe2.Temperature", NULL, "%.1f", 0, kelvin_celsius_conversion },
{ "ambient.humidity", 0, 0, "UPS.APCEnvironment.APCProbe2.Humidity", NULL, "%.1f", 0, NULL },
*/
*/

/* instant commands. */
/* test.* split into subset while waiting for extradata support
Expand Down
94 changes: 49 additions & 45 deletions drivers/apc-mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

#define APCC_MIB_VERSION "1.3"

#define APC_UPS_DEVICE_MODEL ".1.3.6.1.4.1.318.1.1.1.1.1.1.0"
/* FIXME: Find a better oid_auto_check vs sysOID for this one? */
#define APC_UPS_SYSOID APC_UPS_DEVICE_MODEL
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One point for possible discussion...


/* Other APC sysOID:
*
* examples found on the Net and other sources:
Expand Down Expand Up @@ -60,75 +64,75 @@
#define APCC_OID_BATT_STATUS ".1.3.6.1.4.1.318.1.1.1.2.1.1.0"
/* Defines for APCC_OID_BATT_STATUS */
static info_lkp_t apcc_batt_info[] = {
{ 1, "" }, /* unknown */
{ 2, "" }, /* batteryNormal */
{ 3, "LB" }, /* batteryLow */
{ 0, NULL }
{ 1, "", NULL, NULL }, /* unknown */
{ 2, "", NULL, NULL }, /* batteryNormal */
{ 3, "LB", NULL, NULL }, /* batteryLow */
{ 0, NULL, NULL, NULL }
} ;

#define APCC_OID_POWER_STATUS ".1.3.6.1.4.1.318.1.1.1.4.1.1.0"
/* Defines for APCC_OID_POWER_STATUS */
static info_lkp_t apcc_pwr_info[] = {
{ 1, "" }, /* unknown */
{ 2, "OL" }, /* onLine */
{ 3, "OB" }, /* onBattery */
{ 4, "OL BOOST" }, /* onSmartBoost */
{ 5, "OFF" }, /* timedSleeping */
{ 6, "OFF" }, /* softwareBypass */
{ 7, "OFF" }, /* off */
{ 8, "" }, /* rebooting */
{ 9, "BYPASS" }, /* switchedBypass */
{ 10, "BYPASS" }, /* hardwareFailureBypass */
{ 11, "OFF" }, /* sleepingUntilPowerReturn */
{ 12, "OL TRIM" }, /* onSmartTrim */
{ 0, NULL }
{ 1, "", NULL, NULL }, /* unknown */
{ 2, "OL", NULL, NULL }, /* onLine */
{ 3, "OB", NULL, NULL }, /* onBattery */
{ 4, "OL BOOST", NULL, NULL }, /* onSmartBoost */
{ 5, "OFF", NULL, NULL }, /* timedSleeping */
{ 6, "OFF", NULL, NULL }, /* softwareBypass */
{ 7, "OFF", NULL, NULL }, /* off */
{ 8, "", NULL, NULL }, /* rebooting */
{ 9, "BYPASS", NULL, NULL }, /* switchedBypass */
{ 10, "BYPASS", NULL, NULL }, /* hardwareFailureBypass */
{ 11, "OFF", NULL, NULL }, /* sleepingUntilPowerReturn */
{ 12, "OL TRIM", NULL, NULL }, /* onSmartTrim */
{ 0, NULL, NULL, NULL }
} ;

#define APCC_OID_CAL_RESULTS ".1.3.6.1.4.1.318.1.1.1.7.2.6.0"
static info_lkp_t apcc_cal_info[] = {
{ 1, "" }, /* Calibration Successful */
{ 2, "" }, /* Calibration not done, battery capacity below 100% */
{ 3, "CAL" }, /* Calibration in progress */
{ 0, NULL }
{ 1, "", NULL, NULL }, /* Calibration Successful */
{ 2, "", NULL, NULL }, /* Calibration not done, battery capacity below 100% */
{ 3, "CAL", NULL, NULL }, /* Calibration in progress */
{ 0, NULL, NULL, NULL }
};

#define APCC_OID_NEEDREPLBATT ".1.3.6.1.4.1.318.1.1.1.2.2.4.0"
static info_lkp_t apcc_battrepl_info[] = {
{ 1, "" }, /* No battery needs replacing */
{ 2, "RB" }, /* Batteries need to be replaced */
{ 0, NULL }
{ 1, "", NULL, NULL }, /* No battery needs replacing */
{ 2, "RB", NULL, NULL }, /* Batteries need to be replaced */
{ 0, NULL, NULL, NULL }
};

#define APCC_OID_TESTDIAGRESULTS ".1.3.6.1.4.1.318.1.1.1.7.2.3.0"
static info_lkp_t apcc_testdiag_results[] = {
{ 1, "Ok" },
{ 2, "Failed" },
{ 3, "InvalidTest" },
{ 4, "TestInProgress"},
{ 0, NULL }
{ 1, "Ok", NULL, NULL },
{ 2, "Failed", NULL, NULL },
{ 3, "InvalidTest", NULL, NULL },
{ 4, "TestInProgress", NULL, NULL },
{ 0, NULL, NULL, NULL }
};

#define APCC_OID_SENSITIVITY ".1.3.6.1.4.1.318.1.1.1.5.2.7.0"
static info_lkp_t apcc_sensitivity_modes[] = {
{ 1, "auto" },
{ 2, "low" },
{ 3, "medium" },
{ 4, "high" },
{ 0, NULL }
{ 1, "auto", NULL, NULL },
{ 2, "low", NULL, NULL },
{ 3, "medium", NULL, NULL },
{ 4, "high", NULL, NULL },
{ 0, NULL, NULL, NULL }
};

#define APCC_OID_TRANSFERREASON "1.3.6.1.4.1.318.1.1.1.3.2.5.0"
static info_lkp_t apcc_transfer_reasons[] = {
{ 1, "noTransfer" },
{ 2, "highLineVoltage" },
{ 3, "brownout" },
{ 4, "blackout" },
{ 5, "smallMomentarySag" },
{ 6, "deepMomentarySag" },
{ 7, "smallMomentarySpike" },
{ 8, "largeMomentarySpike" },
{ 9, "selfTest" },
{ 10, "rateOfVoltageChange" }
{ 1, "noTransfer", NULL, NULL },
{ 2, "highLineVoltage", NULL, NULL },
{ 3, "brownout", NULL, NULL },
{ 4, "blackout", NULL, NULL },
{ 5, "smallMomentarySag", NULL, NULL },
{ 6, "deepMomentarySag", NULL, NULL },
{ 7, "smallMomentarySpike", NULL, NULL },
{ 8, "largeMomentarySpike", NULL, NULL },
{ 9, "selfTest", NULL, NULL },
{ 10, "rateOfVoltageChange", NULL, NULL }
};

/* --- */
Expand Down Expand Up @@ -296,7 +300,7 @@ static snmp_info_t apcc_mib[] = {
{ NULL, 0, 0, NULL, NULL, 0, NULL }
};

mib2nut_info_t apc = { "apcc", APCC_MIB_VERSION, APCC_OID_POWER_STATUS, ".1.3.6.1.4.1.318.1.1.1.1.1.1.0", apcc_mib };
mib2nut_info_t apc = { "apcc", APCC_MIB_VERSION, APCC_OID_POWER_STATUS, APC_UPS_DEVICE_MODEL, apcc_mib, APC_UPS_SYSOID, NULL };

/*
vim:ts=4:sw=4:et:
Expand Down
20 changes: 10 additions & 10 deletions drivers/apc-pdu-mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@
#define APC_PDU_MIB_SYSOID_RPDU ".1.3.6.1.4.1.318.1.3.4.4"
#define APC_PDU_MIB_SYSOID_RPDU2 ".1.3.6.1.4.1.318.1.3.4.5"
#define APC_PDU_MIB_SYSOID_MSP ".1.3.6.1.4.1.318.1.3.4.6"
#define APC_PDU_DEVICE_MODEL ".1.3.6.1.4.1.318.1.1.4.1.4.0"


static info_lkp_t apc_pdu_sw_outlet_status_info[] = {
{ 1, "on" },
{ 2, "off" },
{ 0, NULL }
{ 1, "on", NULL, NULL },
{ 2, "off", NULL, NULL },
{ 0, NULL, NULL, NULL }
};

static info_lkp_t apc_pdu_sw_outlet_switchability_info[] = {
{ 1, "yes" },
{ 2, "yes" },
{ 0, NULL }
{ 1, "yes", NULL, NULL },
{ 2, "yes", NULL, NULL },
{ 0, NULL, NULL, NULL }
};

/* POWERNET-MIB Snmp2NUT lookup table */
Expand Down Expand Up @@ -966,7 +967,6 @@ static snmp_info_t apc_pdu_mib[] = {
{ NULL, 0, 0, NULL, NULL, 0, NULL }
};

#define APC_PDU_DEVICE_MODEL ".1.3.6.1.4.1.318.1.1.4.1.4.0"
mib2nut_info_t apc_pdu_rpdu = { "apc_pdu", APC_PDU_MIB_VERSION, NULL, APC_PDU_DEVICE_MODEL, apc_pdu_mib, APC_PDU_MIB_SYSOID_RPDU };
mib2nut_info_t apc_pdu_rpdu2 = { "apc_pdu", APC_PDU_MIB_VERSION, NULL, APC_PDU_DEVICE_MODEL, apc_pdu_mib, APC_PDU_MIB_SYSOID_RPDU2 };
mib2nut_info_t apc_pdu_msp = { "apc_pdu", APC_PDU_MIB_VERSION, NULL, APC_PDU_DEVICE_MODEL, apc_pdu_mib, APC_PDU_MIB_SYSOID_MSP };
mib2nut_info_t apc_pdu_rpdu = { "apc_pdu", APC_PDU_MIB_VERSION, NULL, APC_PDU_DEVICE_MODEL, apc_pdu_mib, APC_PDU_MIB_SYSOID_RPDU, NULL };
mib2nut_info_t apc_pdu_rpdu2 = { "apc_pdu", APC_PDU_MIB_VERSION, NULL, APC_PDU_DEVICE_MODEL, apc_pdu_mib, APC_PDU_MIB_SYSOID_RPDU2, NULL };
mib2nut_info_t apc_pdu_msp = { "apc_pdu", APC_PDU_MIB_VERSION, NULL, APC_PDU_DEVICE_MODEL, apc_pdu_mib, APC_PDU_MIB_SYSOID_MSP, NULL };
Loading