Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SNMP-Effective CPAN distribution.

Report information
The Basics
Id: 121260
Status: resolved
Priority: 0/
Queue: SNMP-Effective

People
Owner: OLIVER [...] cpan.org
Requestors: thojones [...] southernco.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Does this module work with SNMP v3?
Date: Thu, 20 Apr 2017 20:56:44 +0000
To: "bug-SNMP-Effective [...] rt.cpan.org" <bug-SNMP-Effective [...] rt.cpan.org>
From: "Jones, Thomas D." <thojones [...] southernco.com>
Hello! First off, thanks for your wonderful module. It's super fast and efficient and has made my life a lot easier. However, we're moving to SNMP v3 for all the devices I'm polling and I'm having trouble finding documentation on this, or making it worse in general. Here's my code: my $effective = SNMP::Effective->new( master_time => 5, dest_host => "<ip>", get => $gref, callback => \&my_callback, max_sessions => 5, arg => { Version => "3", username => "<username>", authpassword => <authpasswd>, authprotocol => 'SHA', privpassword => <encryptpasswd>, privprotocol => 'AES', debug => 1, }, ); It simply times out. If I swap to v2c, everything is fine again. Forgive me for not including more details on my OS or perl installation, but they don't seem pertinent. Thanks for your help! Show quoted text
___________________________ Thomas Jones Core Network Utilities Administrator SouthernLINC Wireless Office: 205-257-4758 Cell: 678-986-3924
Subject: [rt.cpan.org #121260] Seg fault on v3 session
Date: Fri, 21 Apr 2017 18:04:06 +0000
To: "bug-SNMP-Effective [...] rt.cpan.org" <bug-SNMP-Effective [...] rt.cpan.org>
From: "Jones, Thomas D." <thojones [...] southernco.com>
Hello, So I've done more investigating and figured out that we had a firewall blocking initial v3 attempts. However, now when I try to connect via v3 (I can connect using these credentials just fine via the CLI utilty snmpwalk on Centos 6), I get a segmentation fault. Here's the output: Sessions/max-sessions: 1<1 at /usr/local/share/perl5/SNMP/Effective/Dispatch.pm line 122, <$READ> line 1. Unlocking lock at /usr/local/share/perl5/SNMP/Effective.pm line 510, <$READ> line 1. Calling callback for IP ADDRESS... at /usr/local/share/perl5/SNMP/Effective/Dispatch.pm line 230, <$READ> line 1. Error: Could not get data from IP ADDRESS: Timeout Waiting for lock to unlock... at /usr/local/share/perl5/SNMP/Effective.pm line 499, <$READ> line 1. The lock is now locked again at /usr/local/share/perl5/SNMP/Effective.pm line 501, <$READ> line 2. Completed IP ADDRESS at /usr/local/share/perl5/SNMP/Effective/Dispatch.pm line 113, <$READ> line 2. Sessions/max-sessions: 0<1 at /usr/local/share/perl5/SNMP/Effective/Dispatch.pm line 122, <$READ> line 2. SNMP::finish() is next up at /usr/local/share/perl5/SNMP/Effective/Dispatch.pm line 125, <$READ> line 2. Unlocking lock at /usr/local/share/perl5/SNMP/Effective.pm line 510, <$READ> line 2. Segmentation fault (core dumped) Show quoted text
___________________________ Thomas Jones Core Network Utilities Administrator SouthernLINC Wireless Office: 205-257-4758 Cell: 678-986-3924
-----Original Message----- From: Bugs in SNMP-Effective via RT [mailto:bug-SNMP-Effective@rt.cpan.org] Sent: Thursday, April 20, 2017 8:23 PM To: Jones, Thomas D. <thojones@southernco.com> Subject: [rt.cpan.org #121260] AutoReply: Does this module work with SNMP v3? Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "Does this module work with SNMP v3?", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #121260]. Your ticket is accessible on the web at: https://rt.cpan.org/Ticket/Display.html?id=121260 Please include the string: [rt.cpan.org #121260] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-SNMP-Effective@rt.cpan.org ------------------------------------------------------------------------- Hello! First off, thanks for your wonderful module. It's super fast and efficient and has made my life a lot easier. However, we're moving to SNMP v3 for all the devices I'm polling and I'm having trouble finding documentation on this, or making it worse in general. Here's my code: my $effective = SNMP::Effective->new( master_time => 5, dest_host => "<ip>", get => $gref, callback => \&my_callback, max_sessions => 5, arg => { Version => "3", username => "<username>", authpassword => <authpasswd>, authprotocol => 'SHA', privpassword => <encryptpasswd>, privprotocol => 'AES', debug => 1, }, ); It simply times out. If I swap to v2c, everything is fine again. Forgive me for not including more details on my OS or perl installation, but they don't seem pertinent. Thanks for your help!
___________________________ Thomas Jones Core Network Utilities Administrator SouthernLINC Wireless Office: 205-257-4758 Cell: 678-986-3924
Hi Thomas, This module is based on SNMP.pm which is part of the net-snmp distribution. On the one hand net-snmp should be healthy if you're able to use snmpstatus etc on the device, as it's the same software. On the other hand, the Perl interface SNMP.pm may not be working. I have never tried SNMPv3 with it. Do you have the module working with SNMP v2? So you could test manually with SNMP.pm and SNMP::Session: https://metacpan.org/pod/SNMP You could also try the alternative to SNMP::Effective which is Mojo::SNMP: https://metacpan.org/pod/Mojo::SNMP If you do not need the parallel high performance, you could also try SNMP::Info: https://metacpan.org/pod/SNMP::Info p.s. the official channel for reporting bugs is here: https://github.com/jhthorsen/snmp-effective/issues regards Oliver. On Thu Apr 20 21:22:58 2017, thojones@southernco.com wrote: Show quoted text
> Hello! > > First off, thanks for your wonderful module. It's super fast and > efficient and has made my life a lot easier. However, we're moving to > SNMP v3 for all the devices I'm polling and I'm having trouble finding > documentation on this, or making it worse in general. > > Here's my code: > > my $effective = SNMP::Effective->new( > master_time => 5, > dest_host => "<ip>", > get => $gref, > callback => \&my_callback, > max_sessions => 5, > arg => { > > Version => "3", > username => "<username>", > authpassword => <authpasswd>, > authprotocol => 'SHA', > privpassword => <encryptpasswd>, > privprotocol => 'AES', > debug => 1, > }, > ); > > It simply times out. If I swap to v2c, everything is fine again. > > Forgive me for not including more details on my OS or perl > installation, but they don't seem pertinent. > > > Thanks for your help! > > ___________________________ > Thomas Jones > Core Network Utilities Administrator > SouthernLINC Wireless > Office: 205-257-4758 > Cell: 678-986-3924
-- regards, oliver.