netdisco / snmp-info

Other
35 stars 31 forks source link

Aruba Model:6000 SNMP failed #508

Closed guney2003 closed 6 months ago

guney2003 commented 6 months ago

Model: 6000 Version: ArubaOS-CX:PL.10.08.1010

SNMP configurations have been set up on the switch, and there are no network access issues. However, Aruba switches are giving an SNMP failed error when attempting to add them, while switches from different vendors are being added successfully.

snmp does not work even though the information is correct, snmp version 2 is used

netdisco@netdisco:~$ ~/bin/netdisco-do discover -d 10.121.100.12 -DIQ [2327] 2023-11-01 12:03:45 info App::Netdisco version 2.067002 loaded. SELECT me.version, me.installed FROM dbix_class_schema_versions me WHERE 1 = 0 SELECT me.version FROM dbix_class_schema_versions me ORDER BY installed DESC LIMIT '1' SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation FROM device_ip me WHERE me.alias = '10.121.100.12' AND me.ip = '10.121.100.12' SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation FROM device_ip me WHERE alias = '10.121.100.12' SELECT me.ip, me.creation, me.dns, me.description, me.uptime, me.contact, me.name, me.location, me.layers, me.num_ports, me.mac, me.serial, me.chassis_id, me.model, me.ps1_type, me.ps2_type, me.ps1_status, me.ps2_status, me.fan, me.slots, me.vendor, me.os, me.os_ver, me.log, me.snmp_ver, me.snmp_comm, me.snmp_class, me.snmp_engineid, me.vtp_domain, me.last_discover, me.last_macsuck, me.last_arpnip, me.is_pseudo, me.pae_is_enabled, me.custom_fields, me.tags, to_char( me.creation, 'YYYY-MM-DD HH24:MI' ), to_char( me.last_arpnip, 'YYYY-MM-DD HH24:MI' ), to_char( me.last_discover, 'YYYY-MM-DD HH24:MI' ), to_char( me.last_macsuck, 'YYYY-MM-DD HH24:MI' ), extract( epoch FROM age( LOCALTIMESTAMP, me.creation ) ), extract( epoch FROM age( LOCALTIMESTAMP, me.last_arpnip ) ), extract( epoch FROM age( LOCALTIMESTAMP, me.last_discover ) ), extract( epoch FROM age( LOCALTIMESTAMP, me.last_macsuck ) ), replace( age( timestamp 'epoch' + me.uptime / 100 * interval '1 second', timestamp '1970-01-01 00:00:00-00' ) ::text, 'mon', 'month' ) FROM device me WHERE me.ip = '10.121.100.12' [2327] 2023-11-01 12:03:45 info discover: [10.121.100.12] started at Wed Nov 1 15:03:45 2023 [2327] 2023-11-01 12:03:45 debug discover: running with timeout 600s [2327] 2023-11-01 12:03:45 debug => running workers for phase: check [2327] 2023-11-01 12:03:45 debug -> run worker check/1000000 "internal::backendfqdn" [2327] 2023-11-01 12:03:45 debug -> run worker check/1000000 "internal::snmpfastdiscover" [2327] 2023-11-01 12:03:45 debug running with configured SNMP timeouts [2327] 2023-11-01 12:03:45 debug -> run worker check/0 "discover" [2327] 2023-11-01 12:03:45 debug Discover is able to run. [2327] 2023-11-01 12:03:45 debug => running workers for phase: early [2327] 2023-11-01 12:03:45 debug -> run worker early/100 "discover::properties" [2327] 2023-11-01 12:03:45 debug snmp reader cache warm: [10.121.100.12] SELECT me.ip, me.snmp_comm_rw, me.snmp_auth_tag_read, me.snmp_auth_tag_write FROM community me WHERE me.ip = '10.121.100.12' SELECT me.ip, me.snmp_comm_rw, me.snmp_auth_tag_read, me.snmp_auth_tag_write FROM community me WHERE me.ip = '10.121.100.12' [2327] 2023-11-01 12:03:45 debug [10.121.100.12:161] try_connect with v: 2, t: 0.2, r: 0, class: SNMP::Info, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(uptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global hrSystemUptime : HOST-RESOURCES-MIB::hrSystemUptime.0 : .1.3.6.1.2.1.25.1.1.0 SNMP::Info::_global(hrSystemUptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global sysUpTime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(sysUpTime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. [2327] 2023-11-01 12:03:46 debug [10.121.100.12:161] try_connect with v: 2, t: 0.2, r: 0, class: SNMP::Info, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(uptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global hrSystemUptime : HOST-RESOURCES-MIB::hrSystemUptime.0 : .1.3.6.1.2.1.25.1.1.0 SNMP::Info::_global(hrSystemUptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global sysUpTime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(sysUpTime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. [2327] 2023-11-01 12:03:47 debug [10.121.100.12:161] try_connect with v: 2, t: 3, r: 2, class: SNMP::Info, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(uptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global hrSystemUptime : HOST-RESOURCES-MIB::hrSystemUptime.0 : .1.3.6.1.2.1.25.1.1.0 SNMP::Info::_global(hrSystemUptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global sysUpTime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(sysUpTime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. [2327] 2023-11-01 12:04:14 debug [10.121.100.12:161] try_connect with v: 2, t: 3, r: 2, class: SNMP::Info, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(uptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global hrSystemUptime : HOST-RESOURCES-MIB::hrSystemUptime.0 : .1.3.6.1.2.1.25.1.1.0 SNMP::Info::_global(hrSystemUptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global sysUpTime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(sysUpTime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. [2327] 2023-11-01 12:04:41 debug [10.121.100.12:161] try_connect with v: 1, t: 3, r: 2, class: SNMP::Info, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(uptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global hrSystemUptime : HOST-RESOURCES-MIB::hrSystemUptime.0 : .1.3.6.1.2.1.25.1.1.0 SNMP::Info::_global(hrSystemUptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global sysUpTime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(sysUpTime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. [2327] 2023-11-01 12:05:08 debug [10.121.100.12:161] try_connect with v: 1, t: 3, r: 2, class: SNMP::Info, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(uptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global hrSystemUptime : HOST-RESOURCES-MIB::hrSystemUptime.0 : .1.3.6.1.2.1.25.1.1.0 SNMP::Info::_global(hrSystemUptime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. SNMP::Info::_global sysUpTime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global(sysUpTime) Timeout at /home/netdisco/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 305. [2327] 2023-11-01 12:05:35 debug discover failed: could not SNMP connect to 10.121.100.12 [2327] 2023-11-01 12:05:35 debug -> run worker early/100 "discover::properties" [2327] 2023-11-01 12:05:35 debug -> run worker early/100 "discover::properties" [2327] 2023-11-01 12:05:35 debug -> run worker early/100 "discover::properties" [2327] 2023-11-01 12:05:35 debug -> run worker early/100 "discover::properties" [2327] 2023-11-01 12:05:35 debug => running workers for phase: main [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::canonicalip" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::entities" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::neighbors" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::neighbors::docsis" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::neighbors::routed" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::portpower" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::portproperties" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::portproperties::portaccessentity" [2327] 2023-11-01 12:05:35 debug pae failed: could not SNMP connect to 10.121.100.12 [2327] 2023-11-01 12:05:35 debug -> run worker main/0 "discover::properties::tags" [2327] 2023-11-01 12:05:35 debug -> run worker main/0 "discover::properties::tags" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::vlans" [2327] 2023-11-01 12:05:35 debug -> run worker main/100 "discover::wireless" [2327] 2023-11-01 12:05:35 debug -> run worker main/0 "discover::withnodes" [2327] 2023-11-01 12:05:35 debug => running workers for phase: late [2327] 2023-11-01 12:05:35 debug -> run worker late/0 "discover::hooks" [2327] 2023-11-01 12:05:35 debug [10.121.100.12] hooks - skipping due to incomplete job [2327] 2023-11-01 12:05:35 debug -> run worker late/0 "discover::snapshot" [2327] 2023-11-01 12:05:35 debug discover failed: could not SNMP connect to 10.121.100.12 [2327] 2023-11-01 12:05:35 info discover: finished at Wed Nov 1 15:05:35 2023 [2327] 2023-11-01 12:05:35 info discover: status defer: discover failed: could not SNMP connect to 10.121.100.12

guney2003 commented 6 months ago

When I entered the following command on the switch, the issue was resolved.

snmp-server vrf default

ollyg commented 6 months ago

Thanks @guney2003 ! I've added a note to https://github.com/netdisco/netdisco/wiki/Vendor-Tips