search for: snmp2nut

Displaying 2 results from an estimated 2 matches for "snmp2nut".

2014 Aug 30
1
snmp-ups and constants in snmp_info_t snmp2nut tables
Hi all, Trying to add support for my unit, which is a 3-phase UPS. I can't find any oids that holds that data so I can determine that, so I think I need to add it statically. I've tried the following, (nut-2.7.2) ... { "input.phases", 0, 1.0, NULL, "3", SU_FLAG_SETINT, NULL, &input_phases }, ... That ends up as (snmp-ups -a foo -DDDD) ... 0.177686 getting
2015 Mar 26
2
New snmp-ups subdriver for Huawei
...fo_lkp_t ietf_test_result_info[] = { + { 1, "done and passed" }, + { 2, "done and warning" }, + { 3, "done and error" }, + { 4, "aborted" }, + { 5, "in progress" }, + { 6, "no test initiated" }, + { 0, "NULL" } +}; + + +/* HUAWEI Snmp2NUT lookup table */ +static snmp_info_t huawei_mib[] = { + + /* Data format: + * { info_type, info_flags, info_len, OID, dfl, flags, oid2info, setvar }, + * + * info_type: NUT INFO_ or CMD_ element name + * info_flags: flags to set in addinfo + * info_len: length of strings if STR + * cmd valu...