Jim, Thank you for both replies. So far, they have been the most enlightening explanations we have had on this subject. They help us better understand the bigger picture and how the different parts of NUT fit together. This is certainly the perspective of the lead maintainer, who sees not just the individual parts — as we sometimes do, particularly myself when looking from the perspective of my driver — but the system as a whole.
Your second message also helped me recognize a possible ambiguity in my wording. I am not proposing that every client query to upsd trigger a new, complete reading of the equipment, nor that caching be removed from the architecture. I understand the problems that would cause, especially with many clients querying the same device. Data acquisition can remain asynchronous, respecting the protocol, the equipment, and its update intervals. My point is to distinguish data actually obtained in a reading from data that remained cached because the expected update did not happen. When I speak of atomicity, I mean a coherent presentation of what that reading actually provided, not a requirement that all sensors be measured at exactly the same instant. For multiple devices, I believe parallelism helps prevent one slow device from holding up data acquisition from the others. From what I checked, NUT already allows this through independent driver instances. Therefore, I am not presenting this as a missing feature, nor as a solution that would overload a single device with multiple simultaneous queries. I also saw that snmp-ups already provides snmp_timeout and snmp_retries. The distinction I consider important is between the timeout for a request and the acceptable deadline for obtaining the required update. A sequence of queries and retries may take longer than the user considers acceptable for their application. If that deadline expires without the expected reading, I believe there is a problematic condition that needs to be identified. Personally, I do not enjoy working with SNMP equipment because of the enormous variation between implementations. There are robust devices with fast, consistent responses, and others with hardware or firmware limitations, incorrect responses, or communication problems. In my opinion, equipment of demonstrably poor quality should be avoided when purchasing. But it exists, we write drivers to support it, and we end up having to deal with those limitations. That is why I believe the acceptable age of data and the policy for handling a failed update should be configurable. Users should be able to choose when that condition is flagged and whether they accept continuing to use the last known value, without that choice turning an old value into a newly confirmed reading. I recognize that this requires implementation, testing, and additional maintenance work, but I see value in allowing users to adapt the behavior to their installation's needs. Regarding AI, I would like to clarify how I use it. I use OpenClaw, and my agent mainly helps turn my dictation into text and handle sending emails. I type very slowly because the years have taken their toll on these fingers. I am 45 and have been working in technology since I was 16, developing in Clipper and other languages. These days, age and all those years spent typing on keyboards — some good, others not so good — have started to exact their price. So I use AI to summarize my ideas, make my writing clearer, and help these old, tired fingers. The ideas and the position remain my own; it helps me express them. It would be hypocritical of me to refer, in my previous message, to that image about how I use AI — myself in control, with AI helping me — and now fail to acknowledge that I also use it for these tasks. I cannot apply a double standard: this is precisely how I use it here. Thank you again for the explanations. Best regards, Lucas Willian Bocchi _______________________________________________ Nut-upsdev mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev
