Bug 1973252
| Summary: | net-snmp engineTime values remains zero when sending traps. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Sam Wachira <swachira> |
| Component: | net-snmp | Assignee: | Josef Ridky <jridky> |
| Status: | CLOSED ERRATA | QA Contact: | Evgeny Fedin <efedin> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.4 | CC: | efedin |
| Target Milestone: | beta | Keywords: | Patch, Triaged, Upstream |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | net-snmp-5.8-22.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 19:48:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (net-snmp bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2021:4439 |
Description of problem: When sending traps on SNMP v3 using net-snmp-5.8-20 in RHEL 8.4, the engineTime value remains zero. This is a problem as the receiving agent does not accept engineTime with a zero value, it expects engineTime and engineBoots values to progress. snmptrap by default runs the code below to set session.engineBoots and session.engineTime for SNMP v3 traps (not inform). ~~~ session.engineBoots = 1; if (session.engineTime == 0) /* not really correct, */ session.engineTime = get_uptime(); /* but it'll work. Sort of. */ ~~~ Version-Release number of selected component (if applicable): net-snmp-5.8-20.el8 How reproducible: Reproduced by customer Steps to Reproduce: 1. Sending traps on SNMP v3 using net-snmp-5.8-20 in RHEL 8.4 2. If receiving agent does not accept engineTime with a zero value, it will fail Actual results: Unable to send SNMP traps. Expected results: Should be able to send SNMP traps. Additional info: Upstream patch is already in place for snmptrap binary. It resolves the issue by setting the library engineBoots and engineTime values before sending. (https://github.com/net-snmp/net-snmp/commit/79f014464ba761e2430cc767b021993ab9379822#diff-7bb7d96d52073a4604dd6ae68d0b691c4b0b891e36f4350f9cf8d52c5b9aea65)