snmp-info icon indicating copy to clipboard operation
snmp-info copied to clipboard

arpnip on Extreme VDX switches only gets IPv6 addresses

Open nomisunrider opened this issue 7 years ago • 25 comments

When I run the command "netdisco-do arpnip -d [IP OF DEVICE] -DIQ" it runs successfully but only displays IPv6 addresses from ARP, no IPv4 addresses. We run a dual stack environment.

Also, it collects IPv6 link-local addresses (and displays these on connected nodes in netdisco). I would expect it to exclude link-local addresses.

Expected Behavior

In addition to the Iv6 addresses, I would expect it to display IPv4 addresses as well

Current Behavior

Only IPv6 addresses from ARP are displayed

Steps to Reproduce (for bugs)

Setup dual stack Extreme VDX environment and run an arpnip.

Context

Connected nodes for switch ports displays MAC addresses and associated IPv6 addresses, but no IPv4 addresses or reverse lookup names for those IPv4 addresses.

Your Environment

  • Netdisco version used: 2.39.31
  • SNMP::Info version used: 3.61

nomisunrider avatar Nov 02 '18 17:11 nomisunrider

I updated to Netdisco 2.39.33 and SNMP::Info 3.62 and issue is still present.

Thank you

nomisunrider avatar Nov 02 '18 20:11 nomisunrider

Hi @nomisunrider

For collecting v4 addresses, the two methods at_paddr() and at_netaddr() are used. So, let's see what your device returns:

~/bin/netdisco-do show -d 1.2.3.4. -e at_paddr -DI ~/bin/netdisco-do show -d 1.2.3.4. -e at_netaddr -DI

If the output is empty, or addresses which Netdisco would skip, then that's the issue. If empty, you can see in the debug which SNMP table Netdisco is pulling and try to retrieve it yourself using snmpwalk. One common issue is the SNMP View restriction limiting get requests, in some way.

regards, Oliver.

ollyg avatar Dec 30 '18 09:12 ollyg

Here is the output from the 2 commands.

` ~/bin/netdisco-do show -d 10.84.0.104 at_paddr -DI

[23268] 2019-05-24 21:13:30 info App::Netdisco version 2.039033 loaded. [23268] 2019-05-24 21:13:31 info show: [10.84.0.104]/interfaces started at Fri May 24 16:13:31 2019 [23268] 2019-05-24 21:13:31 debug show: running with timeout 600s [23268] 2019-05-24 21:13:31 debug => running workers for phase: check [23268] 2019-05-24 21:13:31 debug -> run worker check/base/0 [23268] 2019-05-24 21:13:31 debug Show is able to run [23268] 2019-05-24 21:13:31 debug => running workers for phase: main [23268] 2019-05-24 21:13:31 debug -> run worker main/base/100 [23268] 2019-05-24 21:13:31 debug snmp reader cache warm: [10.84.0.104] [23268] 2019-05-24 21:13:31 debug [10.84.0.104:161] try_connect with ver: 2, class: SNMP::Info::Layer3::Foundry, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0 SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0 SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0 SNMP::Info 3.62 SNMP::Info::device_type() layers:01001111 id:1588 sysDescr:"rsvnetne16-1, BR-VDX6740, Network Operating System Software Version 7.1.0b2." SNMP::Info::_load_attr i_description : IF-MIB::ifDescr : .1.3.6.1.2.1.2.2.1.2 SNMP::Info::_load_attr i_index : IF-MIB::ifIndex : .1.3.6.1.2.1.2.2.1.1 SNMP::Info::_load_attr i_alias : IF-MIB::ifAlias : .1.3.6.1.2.1.31.1.1.1.18 SNMP::Info::_load_attr orig_i_name : IF-MIB::ifName : .1.3.6.1.2.1.31.1.1.1.1 \ { 201334784 "TenGigabitEthernet 0/1", 201342976 "TenGigabitEthernet 0/2", 201351168 "TenGigabitEthernet 0/3", 201359360 "TenGigabitEthernet 0/4", 201367552 "TenGigabitEthernet 0/5", 201375744 "TenGigabitEthernet 0/6", 201383936 "TenGigabitEthernet 0/7", 201392128 "TenGigabitEthernet 0/8", 201400320 "TenGigabitEthernet 0/9", 201408512 "TenGigabitEthernet 0/10", 201416704 "TenGigabitEthernet 0/11", 201424896 "TenGigabitEthernet 0/12", 201433088 "TenGigabitEthernet 0/13", 201441280 "TenGigabitEthernet 0/14", 201449472 "TenGigabitEthernet 0/15", 201457664 "TenGigabitEthernet 0/16", 201465856 "TenGigabitEthernet 0/17", 201474048 "TenGigabitEthernet 0/18", 201482240 "TenGigabitEthernet 0/19", 201490432 "TenGigabitEthernet 0/20", 201498624 "TenGigabitEthernet 0/21", 201506816 "TenGigabitEthernet 0/22", 201515008 "TenGigabitEthernet 0/23", 201523200 "TenGigabitEthernet 0/24", 201531392 "TenGigabitEthernet 0/25", 201539584 "TenGigabitEthernet 0/26", 201547776 "TenGigabitEthernet 0/27", 201555968 "TenGigabitEthernet 0/28", 201564160 "TenGigabitEthernet 0/29", 201572352 "TenGigabitEthernet 0/30", 201580544 "TenGigabitEthernet 0/31", 201588736 "TenGigabitEthernet 0/32", 201596928 "TenGigabitEthernet 0/33", 201605120 "TenGigabitEthernet 0/34", 201613312 "TenGigabitEthernet 0/35", 201621504 "TenGigabitEthernet 0/36", 201629696 "TenGigabitEthernet 0/37", 201637888 "TenGigabitEthernet 0/38", 201646080 "TenGigabitEthernet 0/39", 201654272 "TenGigabitEthernet 0/40", 201662464 "TenGigabitEthernet 0/41", 201670656 "TenGigabitEthernet 0/42", 201678848 "TenGigabitEthernet 0/43", 201687040 "TenGigabitEthernet 0/44", 201695232 "TenGigabitEthernet 0/45", 201703424 "TenGigabitEthernet 0/46", 201711616 "TenGigabitEthernet 0/47", 201719808 "TenGigabitEthernet 0/48", 201728192 "FortyGigabitEthernet 0/49", 201736384 "FortyGigabitEthernet 0/50", 201744576 "FortyGigabitEthernet 0/51", 201752768 "FortyGigabitEthernet 0/52", 805306369 "lo", 805306370 "eth0", 805306371 "eth1", 805306372 "tunl0", 805306373 "gre0", 805306374 "sit0", 805306375 "port0" } [23268] 2019-05-24 21:13:32 info show: finished at Fri May 24 16:13:32 2019 [23268] 2019-05-24 21:13:32 info show: status done: Showed interfaces response from 10.84.0.104

~/bin/netdisco-do show -d 10.84.0.104 at_netaddr -DI

[23279] 2019-05-24 21:13:38 info App::Netdisco version 2.039033 loaded. [23279] 2019-05-24 21:13:38 info show: [10.84.0.104]/interfaces started at Fri May 24 16:13:38 2019 [23279] 2019-05-24 21:13:38 debug show: running with timeout 600s [23279] 2019-05-24 21:13:38 debug => running workers for phase: check [23279] 2019-05-24 21:13:38 debug -> run worker check/base/0 [23279] 2019-05-24 21:13:38 debug Show is able to run [23279] 2019-05-24 21:13:38 debug => running workers for phase: main [23279] 2019-05-24 21:13:38 debug -> run worker main/base/100 [23279] 2019-05-24 21:13:38 debug snmp reader cache warm: [10.84.0.104] [23279] 2019-05-24 21:13:38 debug [10.84.0.104:161] try_connect with ver: 2, class: SNMP::Info::Layer3::Foundry, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0 SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0 SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0 SNMP::Info 3.62 SNMP::Info::device_type() layers:01001111 id:1588 sysDescr:"rsvnetne16-1, BR-VDX6740, Network Operating System Software Version 7.1.0b2." SNMP::Info::_load_attr i_description : IF-MIB::ifDescr : .1.3.6.1.2.1.2.2.1.2 SNMP::Info::_load_attr i_index : IF-MIB::ifIndex : .1.3.6.1.2.1.2.2.1.1 SNMP::Info::_load_attr i_alias : IF-MIB::ifAlias : .1.3.6.1.2.1.31.1.1.1.18 SNMP::Info::_load_attr orig_i_name : IF-MIB::ifName : .1.3.6.1.2.1.31.1.1.1.1 \ { 201334784 "TenGigabitEthernet 0/1", 201342976 "TenGigabitEthernet 0/2", 201351168 "TenGigabitEthernet 0/3", 201359360 "TenGigabitEthernet 0/4", 201367552 "TenGigabitEthernet 0/5", 201375744 "TenGigabitEthernet 0/6", 201383936 "TenGigabitEthernet 0/7", 201392128 "TenGigabitEthernet 0/8", 201400320 "TenGigabitEthernet 0/9", 201408512 "TenGigabitEthernet 0/10", 201416704 "TenGigabitEthernet 0/11", 201424896 "TenGigabitEthernet 0/12", 201433088 "TenGigabitEthernet 0/13", 201441280 "TenGigabitEthernet 0/14", 201449472 "TenGigabitEthernet 0/15", 201457664 "TenGigabitEthernet 0/16", 201465856 "TenGigabitEthernet 0/17", 201474048 "TenGigabitEthernet 0/18", 201482240 "TenGigabitEthernet 0/19", 201490432 "TenGigabitEthernet 0/20", 201498624 "TenGigabitEthernet 0/21", 201506816 "TenGigabitEthernet 0/22", 201515008 "TenGigabitEthernet 0/23", 201523200 "TenGigabitEthernet 0/24", 201531392 "TenGigabitEthernet 0/25", 201539584 "TenGigabitEthernet 0/26", 201547776 "TenGigabitEthernet 0/27", 201555968 "TenGigabitEthernet 0/28", 201564160 "TenGigabitEthernet 0/29", 201572352 "TenGigabitEthernet 0/30", 201580544 "TenGigabitEthernet 0/31", 201588736 "TenGigabitEthernet 0/32", 201596928 "TenGigabitEthernet 0/33", 201605120 "TenGigabitEthernet 0/34", 201613312 "TenGigabitEthernet 0/35", 201621504 "TenGigabitEthernet 0/36", 201629696 "TenGigabitEthernet 0/37", 201637888 "TenGigabitEthernet 0/38", 201646080 "TenGigabitEthernet 0/39", 201654272 "TenGigabitEthernet 0/40", 201662464 "TenGigabitEthernet 0/41", 201670656 "TenGigabitEthernet 0/42", 201678848 "TenGigabitEthernet 0/43", 201687040 "TenGigabitEthernet 0/44", 201695232 "TenGigabitEthernet 0/45", 201703424 "TenGigabitEthernet 0/46", 201711616 "TenGigabitEthernet 0/47", 201719808 "TenGigabitEthernet 0/48", 201728192 "FortyGigabitEthernet 0/49", 201736384 "FortyGigabitEthernet 0/50", 201744576 "FortyGigabitEthernet 0/51", 201752768 "FortyGigabitEthernet 0/52", 805306369 "lo", 805306370 "eth0", 805306371 "eth1", 805306372 "tunl0", 805306373 "gre0", 805306374 "sit0", 805306375 "port0" } [23279] 2019-05-24 21:13:40 info show: finished at Fri May 24 16:13:40 2019 [23279] 2019-05-24 21:13:40 info show: status done: Showed interfaces response from 10.84.0.104 `

nomisunrider avatar May 24 '19 21:05 nomisunrider

it seems you missed the -e parameter just before at_paddr & at_netaddr, so netdisco-do defaulted to showing interfaces instead of of addresses. i guess we should at least warn if parameters are not used...

can you run the commands again, but make sure to copy the as @ollyg showed?

inphobia avatar May 26 '19 00:05 inphobia

Oops, thanks for catching that mistake. Here are the proper commands:

`~/bin/netdisco-do show -d 10.84.0.104 -e at_paddr -DI [20879] 2019-05-26 01:27:57 info App::Netdisco version 2.039033 loaded. [20879] 2019-05-26 01:27:57 info show: [10.84.0.104]/at_paddr started at Sat May 25 20:27:57 2019 [20879] 2019-05-26 01:27:57 debug show: running with timeout 600s [20879] 2019-05-26 01:27:57 debug => running workers for phase: check [20879] 2019-05-26 01:27:57 debug -> run worker check/base/0 [20879] 2019-05-26 01:27:57 debug Show is able to run [20879] 2019-05-26 01:27:57 debug => running workers for phase: main [20879] 2019-05-26 01:27:57 debug -> run worker main/base/100 [20879] 2019-05-26 01:27:57 debug snmp reader cache warm: [10.84.0.104] [20879] 2019-05-26 01:27:57 debug [10.84.0.104:161] try_connect with ver: 2, class: SNMP::Info::Layer3::Foundry, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0 SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0 SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0 SNMP::Info 3.62 SNMP::Info::device_type() layers:01001111 id:1588 sysDescr:"rsvnetne16-1, BR-VDX6740, Network Operating System Software Version 7.1.0b2." SNMP::Info::_load_attr orig_at_paddr : IP-MIB::ipNetToMediaPhysAddress : .1.3.6.1.2.1.4.22.1.2 \ { 805306370.10.84.223.1 "00:c1:64:c5:0a:80", 805306370.127.1.0.2 "0e:fc:00:ff:02:00", 805306370.127.1.0.3 "0e:fc:00:ff:03:00", 805306370.127.1.0.5 "0e:fc:00:ff:05:00", 805306370.127.1.0.6 "0e:fc:00:ff:06:00", 805306370.127.1.0.7 "0e:fc:00:ff:07:00", 805306370.127.1.0.8 "0e:fc:00:ff:08:00", 805306370.127.1.0.9 "0e:fc:00:ff:09:00", 805306370.127.1.0.10 "0e:fc:00:ff:0a:00", 805306370.127.1.0.11 "0e:fc:00:ff:0b:00", 805306370.127.1.0.12 "0e:fc:00:ff:0c:00", 805306370.127.1.0.13 "0e:fc:00:ff:0d:00", 805306370.127.1.0.14 "0e:fc:00:ff:0e:00", 805306370.127.1.0.15 "0e:fc:00:ff:0f:00", 805306370.127.1.0.16 "0e:fc:00:ff:10:00", 805306370.127.1.0.17 "0e:fc:00:ff:11:00", 805306370.127.1.0.18 "0e:fc:00:ff:12:00", 805306370.127.2.2.0 "ac:de:48:00:00:02" } [20879] 2019-05-26 01:27:58 info show: finished at Sat May 25 20:27:58 2019 [20879] 2019-05-26 01:27:58 info show: status done: Showed at_paddr response from 10.84.0.104

~/bin/netdisco-do show -d 10.84.0.104 -e at_netaddr -DI [20854] 2019-05-26 01:27:41 info App::Netdisco version 2.039033 loaded. [20854] 2019-05-26 01:27:41 info show: [10.84.0.104]/at_netaddr started at Sat May 25 20:27:41 2019 [20854] 2019-05-26 01:27:41 debug show: running with timeout 600s [20854] 2019-05-26 01:27:41 debug => running workers for phase: check [20854] 2019-05-26 01:27:41 debug -> run worker check/base/0 [20854] 2019-05-26 01:27:41 debug Show is able to run [20854] 2019-05-26 01:27:41 debug => running workers for phase: main [20854] 2019-05-26 01:27:41 debug -> run worker main/base/100 [20854] 2019-05-26 01:27:41 debug snmp reader cache warm: [10.84.0.104] [20854] 2019-05-26 01:27:41 debug [10.84.0.104:161] try_connect with ver: 2, class: SNMP::Info::Layer3::Foundry, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0 SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0 SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0 SNMP::Info 3.62 SNMP::Info::device_type() layers:01001111 id:1588 sysDescr:"rsvnetne16-1, BR-VDX6740, Network Operating System Software Version 7.1.0b2." SNMP::Info::_load_attr orig_at_netaddr : IP-MIB::ipNetToMediaNetAddress : .1.3.6.1.2.1.4.22.1.3 \ { 805306370.10.84.223.1 "10.84.223.1", 805306370.127.1.0.2 "127.1.0.2", 805306370.127.1.0.3 "127.1.0.3", 805306370.127.1.0.5 "127.1.0.5", 805306370.127.1.0.6 "127.1.0.6", 805306370.127.1.0.7 "127.1.0.7", 805306370.127.1.0.8 "127.1.0.8", 805306370.127.1.0.9 "127.1.0.9", 805306370.127.1.0.10 "127.1.0.10", 805306370.127.1.0.11 "127.1.0.11", 805306370.127.1.0.12 "127.1.0.12", 805306370.127.1.0.13 "127.1.0.13", 805306370.127.1.0.14 "127.1.0.14", 805306370.127.1.0.15 "127.1.0.15", 805306370.127.1.0.16 "127.1.0.16", 805306370.127.1.0.17 "127.1.0.17", 805306370.127.1.0.18 "127.1.0.18", 805306370.127.2.2.0 "127.2.2.0" } [20854] 2019-05-26 01:27:42 info show: finished at Sat May 25 20:27:42 2019 [20854] 2019-05-26 01:27:42 info show: status done: Showed at_netaddr response from 10.84.0.104

`

nomisunrider avatar May 26 '19 01:05 nomisunrider

I should also clarify, this is a layer 2 switch and these are the MAC addresses that actually show on the ports.

16 0014.4ff8.2d0f Dynamic Remote Te 4/0/4 16 0014.4ff8.45ca Dynamic Remote Te 4/0/4 16 0014.4ffa.1297 Dynamic Remote Te 4/0/4 16 0014.4ffa.a52b Dynamic Remote Te 4/0/3 16 0014.4ffa.a71b Dynamic Remote Te 4/0/11 16 0014.4ffa.b00b Dynamic Remote Te 4/0/11 16 0014.4ffa.de35 Dynamic Remote Te 4/0/3 16 0014.4ffa.f6ea Dynamic Remote Te 4/0/13 16 0014.4ffb.432c Dynamic Remote Te 4/0/13 16 0014.4ffb.463b Dynamic Remote Te 4/0/3 16 001e.6751.d404 Dynamic Remote Te 4/0/48 16 001e.6751.d405 Dynamic Remote Te 4/0/47 16 001e.6751.d409 Dynamic Remote Te 4/0/45 16 90e2.ba50.eba0 Dynamic Remote Te 4/0/46 80 0090.fa7e.98c4 Dynamic Remote Te 4/0/15

Also, when I run this on the router, it says unable to resolve method:

~/bin/netdisco-do show -d 10.84.0.2 -e net_paddr -DI [21302] 2019-05-26 01:33:02 info App::Netdisco version 2.039033 loaded. [21302] 2019-05-26 01:33:02 info show: [10.84.0.2]/net_paddr started at Sat May 25 20:33:02 2019 [21302] 2019-05-26 01:33:02 debug show: running with timeout 600s [21302] 2019-05-26 01:33:02 debug => running workers for phase: check [21302] 2019-05-26 01:33:02 debug -> run worker check/base/0 [21302] 2019-05-26 01:33:02 debug Show is able to run [21302] 2019-05-26 01:33:02 debug => running workers for phase: main [21302] 2019-05-26 01:33:02 debug -> run worker main/base/100 [21302] 2019-05-26 01:33:02 debug snmp reader cache warm: [10.84.0.2] [21302] 2019-05-26 01:33:02 debug [10.84.0.2:161] try_connect with ver: 2, class: SNMP::Info::Layer3::Foundry, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0 SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0 SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0 SNMP::Info 3.62 SNMP::Info::device_type() layers:01001111 id:1588 sysDescr:"router-1, BR-VDX8770-4, Network Operating System Software Version 7.2.0a3." SNMP::Info::_validate_autoload_method(net_paddr) Unable to resolve method. undef [21302] 2019-05-26 01:33:03 info show: finished at Sat May 25 20:33:03 2019 [21302] 2019-05-26 01:33:03 info show: status done: Showed net_paddr response from 10.84.0.2

nomisunrider avatar May 26 '19 01:05 nomisunrider

ahha, this gets us further.

first of: layer2 devices can return a the mac<->ip mappings they know, but for the full list you'll need to poll the gateway (10.84.0.2 in your case). while i'm not 100% sure why it does give you ipv6 addresses my guess is that because the way hardware address resolving works in ipv6 compared to ipv4 it has that info cached.

now, for your gateway it seems you used a wrong -e option: net_paddr

try at_paddr & at_netaddr instead

inphobia avatar May 26 '19 02:05 inphobia

~/bin/netdisco-do show -d 10.84.0.2 -e at_paddr -DI [28529] 2019-05-26 03:04:07 info App::Netdisco version 2.039033 loaded. [28529] 2019-05-26 03:04:07 info show: [10.84.0.2]/at_paddr started at Sat May 25 22:04:07 2019 [28529] 2019-05-26 03:04:07 debug show: running with timeout 600s [28529] 2019-05-26 03:04:07 debug => running workers for phase: check [28529] 2019-05-26 03:04:07 debug -> run worker check/base/0 [28529] 2019-05-26 03:04:07 debug Show is able to run [28529] 2019-05-26 03:04:07 debug => running workers for phase: main [28529] 2019-05-26 03:04:07 debug -> run worker main/base/100 [28529] 2019-05-26 03:04:07 debug snmp reader cache warm: [10.84.0.2] [28529] 2019-05-26 03:04:08 debug [10.84.0.2:161] try_connect with ver: 2, class: SNMP::Info::Layer3::Foundry, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0 SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0 SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0 SNMP::Info 3.62 SNMP::Info::device_type() layers:01001111 id:1588 sysDescr:"router-1, BR-VDX8770-4, Network Operating System Software Version 7.2.0a3." SNMP::Info::_load_attr orig_at_paddr : IP-MIB::ipNetToMediaPhysAddress : .1.3.6.1.2.1.4.22.1.2 \ { 805306370.10.84.223.1 "00:c1:64:c5:0a:80", 805306370.127.1.0.3 "0e:fc:00:ff:03:00", 805306370.127.1.0.4 "0e:fc:00:ff:04:00", 805306370.127.1.11.8 "00:00:00:00:00:00", 805306370.127.2.1.2 "ac:de:48:02:02:04", 805306370.127.2.1.7 "ac:de:48:02:07:07", 805306370.127.2.1.8 "ac:de:48:02:08:07", 805306370.127.2.1.9 "ac:de:48:02:09:07", 805306370.127.2.1.10 "ac:de:48:02:0a:07", 805306370.127.2.2.7 "ac:de:48:02:07:08", 805306370.127.2.2.8 "ac:de:48:02:08:08", 805306370.127.2.2.9 "ac:de:48:02:09:08", 805306370.127.2.2.10 "ac:de:48:02:0a:08" } [28529] 2019-05-26 03:04:08 info show: finished at Sat May 25 22:04:08 2019 [28529] 2019-05-26 03:04:08 info show: status done: Showed at_paddr response from 10.84.0.2

~/bin/netdisco-do show -d 10.84.0.2 -e at_netaddr -DI [28537] 2019-05-26 03:04:12 info App::Netdisco version 2.039033 loaded. [28537] 2019-05-26 03:04:13 info show: [10.84.0.2]/at_netaddr started at Sat May 25 22:04:13 2019 [28537] 2019-05-26 03:04:13 debug show: running with timeout 600s [28537] 2019-05-26 03:04:13 debug => running workers for phase: check [28537] 2019-05-26 03:04:13 debug -> run worker check/base/0 [28537] 2019-05-26 03:04:13 debug Show is able to run [28537] 2019-05-26 03:04:13 debug => running workers for phase: main [28537] 2019-05-26 03:04:13 debug -> run worker main/base/100 [28537] 2019-05-26 03:04:13 debug snmp reader cache warm: [10.84.0.2] [28537] 2019-05-26 03:04:13 debug [10.84.0.2:161] try_connect with ver: 2, class: SNMP::Info::Layer3::Foundry, comm: SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0 SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0 SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0 SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0 SNMP::Info 3.62 SNMP::Info::device_type() layers:01001111 id:1588 sysDescr:"router-1, BR-VDX8770-4, Network Operating System Software Version 7.2.0a3." SNMP::Info::_load_attr orig_at_netaddr : IP-MIB::ipNetToMediaNetAddress : .1.3.6.1.2.1.4.22.1.3 \ { 805306370.10.84.223.1 "10.84.223.1", 805306370.127.1.0.3 "127.1.0.3", 805306370.127.1.0.4 "127.1.0.4", 805306370.127.1.11.8 "127.1.11.8", 805306370.127.1.11.11 "127.1.11.11", 805306370.127.2.1.2 "127.2.1.2", 805306370.127.2.1.7 "127.2.1.7", 805306370.127.2.1.8 "127.2.1.8", 805306370.127.2.1.9 "127.2.1.9", 805306370.127.2.1.10 "127.2.1.10", 805306370.127.2.2.7 "127.2.2.7", 805306370.127.2.2.8 "127.2.2.8", 805306370.127.2.2.9 "127.2.2.9", 805306370.127.2.2.10 "127.2.2.10" } [28537] 2019-05-26 03:04:14 info show: finished at Sat May 25 22:04:14 2019 [28537] 2019-05-26 03:04:14 info show: status done: Showed at_netaddr response from 10.84.0.2

nomisunrider avatar May 26 '19 03:05 nomisunrider

hm, why are all your addresses in the 127.0.0.0/8 range? those are designed to be device local, so netdisco tries it's best not to store them...

inphobia avatar May 26 '19 03:05 inphobia

Those are not the client ipv4 addresses, all the clients are using class A 10.X.X.X addresses. I think the 127.X.X.X are likely local addresses the switch uses to reference its interfaces. The MAC addresses are also the MAC addresses of the interfaces, not the device connected to the ports.

nomisunrider avatar May 26 '19 15:05 nomisunrider

that's quite strange, most likely foundry/brocade/ruckus is hiding those entries in some other mib leaf.

at this point our option are kinda running out. either we need to write an ssh arp collector for that device type (we alrdy have a few of them: https://github.com/netdisco/netdisco/tree/master/lib/App/Netdisco/SSHCollector/Platform) or we need a full snmp dump of the device to find out where the info is hiding: https://github.com/netdisco/snmp-info/wiki/Simulating-Agents#21-snmpsim--snmprec-version

the snmpdump would help us most but do be aware that this will dump the complete information base, so perhaps set up a private github repo if you don't want to share it with everyone.

inphobia avatar May 27 '19 00:05 inphobia

Would a full snmpwalk suffice?

nomisunrider avatar May 29 '19 18:05 nomisunrider

kinda late reply, i'm backed up atm.

snmpwalk is useful, but i found the snmpsim method much more reliable way to troubleshoot subtle issues (it's a lot better at capturing returned data at verbatim, which is quite relevant for diagnosing). perhaps we should try & make a docker image for this purpose, that's what all the cool ppl seem to be migrating too 😝

this seems is a suspect, while i (still) don't have enough ipv6 rolled out to test this myself, the note in this part of the code seems to imply neighbors will be shows as either ipv4 or 6, but not as both. https://github.com/netdisco/netdisco/blob/0f1c264e410c1ee4de7c44a8f7550356c09225dd/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm#L130-L140

the whole topology thing in both snmp::info and netdisco could use some love. (see #340 & netdisco/netdisco#608) regretfully i work with first in / first out queues based on personal priorities. so it's on my radar, but low in the overal prio list for the time being.

just as a reminder: if you want to try and give a go at looking into this yourself we're more than willing to provide support via irc ( irc://irc.freenode.org/#netdisco ) or the mailing list.

inphobia avatar Jun 16 '19 02:06 inphobia

side note:

Also, it collects IPv6 link-local addresses (and displays these on connected nodes in netdisco). I would expect it to exclude link-local addresses.

did you change this setting to true or is it still the default false https://github.com/netdisco/netdisco/wiki/Configuration#ignore_private_nets

(note: this settting currently doesn't do anything for nodes or ipv6 yet, but can be relevant for device ports)

inphobia avatar Jun 28 '19 05:06 inphobia

Hello, I am a coworker of nomisunrider. I have collected an snmp dump using snmpsim and uploaded it to a private repo. I will add you as a collaborator.

Not sure where to find the ignore_private_nets setting. Is that something that needs to be added to deployment.yml?

collinsry avatar Feb 03 '20 16:02 collinsry

Hello, I am a coworker of nomisunrider. I have collected an snmp dump using snmpsim and uploaded it to a private repo. I will add you as a collaborator.

got it and it loaded succesfully. so the snmprec you gave is for the vdx6740? is this functioning only as a layer2 device? if so, i'd also need to snmprec from the device that's acting as the router for this lan segment.

if i have sensitive questions or need more details i'll send a mail or open an issue on the private repo, your choice.

Not sure where to find the ignore_private_nets setting. Is that something that needs to be added to deployment.yml?

the default deployment.yml contains all the config items you really should change or at least verify to get netdisco to run, but many more are available. we also have https://github.com/netdisco/netdisco/blob/master/share/config.yml which contains most options and their defaults, but for the most complete list of options (including their defaults, examples & such) see here: https://github.com/netdisco/netdisco/wiki/Configuration

inphobia avatar Feb 03 '20 18:02 inphobia

That device is only using layer2, correct. I have uploaded the snmprec of the router to the private repo.

collinsry avatar Feb 04 '20 18:02 collinsry

got it and can reproduce the problem. now i'll try & see if i can actually fix it :)

inphobia avatar Feb 04 '20 18:02 inphobia

just to make it easier on me, could you give me 2 ip+mac addresses of actual clients, else kinda a lot of data to sift through :)

thx

inphobia avatar Feb 04 '20 19:02 inphobia

10.80.89.188 - 00:90:FA:7E:98:C4 10.84.22.236 - 90:E2:BA:50:EB:A0

Both of those are connected to the layer2 switch.

collinsry avatar Feb 04 '20 19:02 collinsry

Just checking in. Do you need any other info from me?

collinsry avatar Feb 24 '20 15:02 collinsry

Checking in again, haven't seen any updates for a while.

collinsry avatar Oct 07 '20 14:10 collinsry

Hello. It's been a while, but curious if you are able to still replicate this? Do you need fresh info for it?

Thanks

nomisunrider avatar Oct 22 '20 19:10 nomisunrider

regretfully i've not been able to do much work on netdisco the past 12 months. i will be having some more spare time soon, so this issue is not forgotten.

inphobia avatar Oct 28 '20 00:10 inphobia

Forgive my hijacking, but this might help...

most likely foundry/brocade/ruckus is hiding those entries in some other mib leaf [...] find out where the info is hiding

I have it at netdisco-do show -d 10.1.111.51 -DI -e ipNetToPhysicalPhysAddress

This command outputs the data I'd love to see in netdisco's database. I will follow up with the SSH collectors for now though.

Daniel-E-Rose avatar May 07 '21 01:05 Daniel-E-Rose