Ok, now I saw that it is far from complete.  nut does only support snmp types 's' and 'i' when writing.  nut does not support type 't'.  So no timeticks such as delays can be set on an AP9617.  Maybe other cards do no type checking...
This means snmp-ups.c and apc-mib.c need to be changed.  And maybe other mib files, too.
So, is it by design that timeticks/delays cannot be set?
-lutzn
 
I changed one line only:
 
line 1463 in snmp-ups.c:
from:  if (su_info_p->info_flags & ST_FLAG_STRING) {
to:      if (su_info_p->flags & SU_TYPE_STRING) {
 
Can anyone please verify!
 
Because if it is true what I did then I believe that setting values might not have worked for any snmp ups.
And believe that this cannot be.  But with this change setting values now work with AP9617.  snmp-lib does not generate "" anymore.  Strange...
 
The other problem with the ups not shutting down is still open.
 
-lutzn
 
 
 
> I will post the changed apc-mib.c here. Ok? Or shall I send it to someone else?

This list is fine. Would you please post a unified diff (diff -u) instead of the whole file?

Thanks,

--
Charles Lepple
clepple@gmail


 
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to