Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Created attachment 873848[details]
updated snmpd.service file
The test fails probably because snmpd is caching various counters for 5-10 seconds and the test asks for updated counters too early, when the cache has still the old value.
On RHEL6 we used /etc/rc.local script to disable these caches. This does not work on RHEL7, systemd ignores /etc/rc.local completely.
Please save attached file as /etc/systemd/system/snmpd.service. It should disable the caches just after snmpd is started (see man systemd.service for ExecStartPost and man systemd.unit for .include).
Restart the machine and check, that 'snmpget -v2c -c public localhost nsCacheTimeout.1.3.6.1.2.1.4.35 nsCacheTimeout.1.3.6.1.2.1.5.29 nsCacheTimeout.1.3.6.1.2.1.4.31.1' shows:
NET-SNMP-AGENT-MIB::nsCacheTimeout.1.3.6.1.2.1.4.35 = INTEGER: 0
NET-SNMP-AGENT-MIB::nsCacheTimeout.1.3.6.1.2.1.5.29 = INTEGER: 0
NET-SNMP-AGENT-MIB::nsCacheTimeout.1.3.6.1.2.1.4.31.1 = INTEGER: 0
This indicates that caching is disabled for IP-MIB::ipNetToPhysicalTable, IP-MIB::icmpStatsTable and IP-MIB::ipSystemStatsTable. TAHI test should work afterwards.
(In reply to Jan Safranek from comment #2)
> Please retest with updated snmpd.service and let me know if it's better,
> thanks!
Awesome, now all SNMP tests have passed, great thanks for your help. Feel free to close this bug.
Thanks
Hangbin Liu
Description of problem: [TAHI] [SNMP] RFC4293 ICMP Statistics icmpStatsInMsgs Counter Check test failed Version-Release number of selected component (if applicable): # rpm -qa | grep snmp net-snmp-libs-5.7.2-18.el7.x86_64 net-snmp-utils-5.7.2-18.el7.x86_64 net-snmp-agent-libs-5.7.2-18.el7.x86_64 net-snmp-devel-5.7.2-18.el7.x86_64 net-snmp-5.7.2-18.el7.x86_64 How reproducible: Steps to Reproduce: TEST PROCEDURE SNMP Manager1 (TN) SNMP Agent1 (NUT) | | |------------------------------------->| | Send SNMPv2C Get icmpStatsInMsgs.2 | | | |<-------------------------------------| OP1| Receive SNMPv2C GetResponse | | | | | |------------------------------------->| | ICMP echo request | | | |------------------------------------->| | ICMP echo reply | | | | | |------------------------------------->| | Send SNMPv2C Get icmpStatsInMsgs.2 | | | |<-------------------------------------| OP2| Receive SNMPv2C GetResponse | | | v v 1. TN sends SNMPv2C GetRequest scalar object to NUT by issuing SNMPv2C Get to get icmpStatsInMsgs.ipv6(1.3.6.1.2.1.5.29.1.2.2). 2. NUT replies SNMPv2C GetResponse with correct variable binding pairs to TN. 3. TN sends ICMP echo request to NUT and NUT responds with echo reply. 4. TN sends SNMPv2C GetRequest icmpStatsInMsgs.ipv6(2) again to check its value. =head1 JUDGMENT OP1: TN received SNMPv2C response from NUT responding to SNMPv2C Get object request with icmpStatsInMsgs.ipv6(2)(vlaue as icmpStatsInMags_cnt1) before ICMP echo request sending. OP2: TN received SNMPv2C response from NUT responding to SNMPv2C Get object request with incremented icmpStatsInMsgs.ipv6(value as icmpStatsInMsgs_cnt2) after the echo request sending, i.e., icmpStatsInMsgs_cnt2 = icmpStatsInImsgs_cnt1+1 Actual results: icmpStatsInMsgs_cnt2 = icmpStatsInImsgs_cnt1 Expected results: icmpStatsInMsgs_cnt2 = icmpStatsInImsgs_cnt1+1 Additional info: Test purpose http://10.66.13.78/RHEL7_105.el7/SNMP_MIB_18/MIB/MIB_RFC4293_ICMPStatsInMsgs.html Test result http://10.66.13.78/RHEL7_105.el7/SNMP_MIB_18/MIB/18.html RHEL6.5 test result: http://10.66.13.78/RHEL6.5/SNMP/MIB/index.html http://10.66.13.78/RHEL6.5/SNMP/MIB/18.html