Date: Fri, 29 Mar 2024 05:38:57 +0000 (UTC) Message-ID: <1099775577.4019.1711690737675@skald.opmantek.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4018_360467864.1711690737674" ------=_Part_4018_360467864.1711690737674 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
In order to find where Net::SNMP is on the subject system issue the foll= owing command.
# find /usr/ -typ= e f -path "*/Net/SNMP.pm" /usr/local/share/perl5/Net/SNMP.pm /usr/share/perl5/Net/SNMP.pm
If you are unfortunate as in the above example, two SNMP.pm files may be= returned. In order to determine which one perl is invoking use the p= erl -V command.
# perl -V | grep = -A 30 @INC @INC: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . #
The @INC array is a list of directories that perl looks in to find modul= es. This is a top down, first match find operation. Based on th= is the version in /usr/local/share/perl5/Net will be utilized because it wi= ll be found first.
We were able to get the agent to work by doing the following:
2544 if (($thi= s->{_security}->discovered) && 2545 ($this->{_error} =3D~ /usmStatsNotInTimeWindows/)) 2546 { 2547 $this->_error_clear; 2548=20 2549 DEBUG_INFO('discovery and synchronization complete'); 2550=20 2551 # Discovery is complete, send any pending messages 2552 while (my $q =3D shift(@{$this->{_discovery_queue}})) { 2553 $DISPATCHER->send_pdu(@{$q}); 2554 } 2555=20 2556 return TRUE; 2557 } 2558=20 2559 # If we received the usmStatsNotInTimeWindows report or no error, b= ut=20 2560 # we are still not synchronized, provide a generic error message. 2561=20 2562 if ((!$this->{_error}) || ($this->{_error} =3D~ /usmStatsNotI= nTimeWindows/)) { 2563 $this->_error_clear; 2564 $this->_error('Time synchronization failed during discovery')= ; 2565 }