RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1973252 - net-snmp engineTime values remains zero when sending traps.
Summary: net-snmp engineTime values remains zero when sending traps.
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: net-snmp
Version: 8.4
Hardware: x86_64
OS: Linux
Target Milestone: beta
: ---
Assignee: Josef Ridky
QA Contact: Evgeny Fedin
Depends On:
TreeView+ depends on / blocked
Reported: 2021-06-17 13:49 UTC by Sam Wachira
Modified: 2021-11-10 09:17 UTC (History)
1 user (show)

Fixed In Version: net-snmp-5.8-22.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-11-09 19:48:29 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:4439 0 None None None 2021-11-09 19:48:35 UTC

Description Sam Wachira 2021-06-17 13:49:15 UTC
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):

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.

Comment 8 errata-xmlrpc 2021-11-09 19:48:29 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.