Ability to specify SNMPv3 Context for a device

We have some devices that require a specific context when using snmpv3. It would be very helpful to be able to provide a context to use for a device. Even better, if we could add a context for a device type or os (devices in power context get “aaaa” while devices with os procurve get “bbbb”)

I am running into the same issue. SNMPv3 for HP Color LaserJet MFP M477fdn, Color LaserJet Pro M478f-9f, and Color LaserJet M452dn have a hard-coded “Jetdirect” context.

1 Like

This would be a real improvment for us is this was implemented.

We have many Sharp MFD that have an embedded context that cannot be changed or removed.

Please consider adding this feature.

Here my use case would be with a proxy. Following net-snmp docs, the way to do the proxy is to have a context per device behind the proxy, thus the need to specify the context in LibreNMS

I also want to add HP printers using SNMPv3 and this requires setting a context.

FYI - Another user had proposed a fix for this a few years ago…

But this was rejected by the maintainers and apparently determined to not be important to fix.

Hi @polskikrol
This is not completely correct … It was rejected, yes, but because the proposed fix was not safe, as LibreNMS already makes use of context in current code. This makes this feature a little bit harder to implement as it was thought.

And of course, everybody is welcome to suggest a better fix.