Send netdisco-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Netdisco2 sometimes misses connected hosts data & SSH
      Collector (Oliver Gorwits)
--- Begin Message ---
Hi Muris

On 2017-06-24 19:34, Muris wrote:
Here is my exact problem as I have spent 2 days analysing it, as it
took me ages to figure out whats happening with the large amount of
devices, lets say I have this setup at the moment:

If you can reliably reproduce the problem with Switch1 and CoreSwitch1, then please would you email me the output of the following commands:

~netdisco/bin/netdisco-do discover -DI -d Switch1
~netdisco/bin/netdisco-do macsuck -DI -d Switch1
~netdisco/bin/netdisco-do discover -DI -d CoreSwitch1
~netdisco/bin/netdisco-do macsuck -DI -d CoreSwitch1
~netdisco/bin/netdisco-do discover -DI -d Switch1
~netdisco/bin/netdisco-do macsuck -DI -d Switch1

...so that is, the same order you describe below, in steps (1), (2), (3).

My feeling is that the arpnip/sshcollector side of things is not relevant to this case. Those two processes update ARP entries, but ARP data lives in a separate table (node_ip) and does not refer directly to switch ports. It is the discover and macsuck processes that control Netdisco's understanding of "uplink" and nodes on ports.

I advise you stop the backend daemon (netdisco-backend) during the test, so you don't have interference. For info, the code where Netdisco checks "uplink" status and assigns nodes to ports (or skips them), is roughly here:
https://github.com/netdisco/netdisco/blob/master/lib/App/Netdisco/Core/Macsuck.pm#L359

You can email me at the CPAN address used on this mail list. If you're unsure, or want to check anything, join the #netdisco IRC channel on Freenode.

regards,
oliver.


Switch1
CoreSwitch1

Between switches its setup as L2 with port channels.

Now for example..

1)When I run a arpnip/macsuck on Switch1, everything appears fine.
2)When it comes along to run a macsuck/arpnip on CoreSwitch1, the
arpnip/macsuck info disappears off the ports from Switch1, but instead
shows up on the portchannel on CoreSwitch1 that links to switch1 with
all the hosts from Switch1.
3)Then when the next arpnip/macsuck is done on Switch1, all the data
appears on Switch1 ports and disappears off the CoreSwitch1 port
channel. Its almost like one moment its on one switch, next moment its
on the next, keeps swapping backwards and to when each arpnip/mac suck
is probed.
So all mac/arp comes on the port channel on core switch, then
released, on, then released , depending when each probe is done.
Switch1 shows data on and off on each probe.

If all the data is appearing correctly on Switch1 on all the ports,
how can I prevent the uplink on CoreSwitch1 show all the arp/mac when
its polled. Ive been trying for hours looking through the
documentation how to prevent this occurring, but didn’t find anything.

Its almost like I need something to specify its an uplink, don’t add
any macs/arps on this port..or I could be just missing something else
im not seeing.

Thanks Muris


On 24/6/17, 6:57 pm, "Oliver Gorwits" <[email protected]> wrote:

    Hi Muris

Please can you describe in a little more detail what's missing from the web interface - is it the MAC addresses of nodes on the ports, or the IP addresses of those nodes, or the neighbor relations to other devices?
    Each of these is gathered by a different process.

    You could try slowing down the pollers by setting sleep_time:

    workers:
       tasks: 'AUTO * 4'
       sleep_time: 2

This makes each worker pause a little after it polls (the default is one second). If your problem is UDP overload on your server then it might
    help.

    regards,
    oliver.

    On 2017-06-23 11:37, Muris wrote:
    > Hi All,
    >
    > I would like to say thanks to the person who came up with the SSH
> Collector for Nexus/ASA devices its really awesome and working well.
    > Can it also connect via telnet ?
    >
> I have come up with a problem, as i have around 3000 devices, for some > reason the macksuck and arp, on the automatic arpnips/walks dont fully > populate the data for a switch, when i go into the switch some ports
    > show up but blanks next to them on connected devices..
    >
> However, if i manually force a discover/arpnip/macwalk through the
    > webinterface the data populates straight away.
    >
> Is there any reason for this? How can it completely do it automated > without me refreshing a device manually? (Well the netdisco-backend
    > should be doing it but some reason some data dissapears when
    > displayed)
    >
> I was thinking the SSH Collector of arps maybe could be conflicting
    > with netdisco arps to populate data...not sure..but at the moment
    > needing the ssh collector due to mpls and nexus with vrfs etc.
    >
> To cater for this many devices, i have 8 CPUs set on a Xeon machine
    > with 16gb ram, and running the backend worker on AUTO * 4 in
    > deployment config.
    >
    > Postgresql is optimised with pgtune, and running latest netdisco
    > version released 22/06/17
    >
    > Any troubleshooting/recommendations would be appreciated :)
    >
    > Thankyou, Muris
    >
    >
    >
------------------------------------------------------------------------------
    > Check out the vibrant tech community on one of the world's most
    > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
    >
    > _______________________________________________
    > Netdisco mailing list
    > [email protected]
    > https://lists.sourceforge.net/lists/listinfo/netdisco-users






------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users



--- End Message ---
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to