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. Expiry for logged IP retention  ? (Peter Grasso)
   2. Re: Expiry for logged IP retention  ? (Oliver Gorwits)
   3. Re: Expiry for logged IP retention ? (Mark Boolootian)
   4. Netdisco docker upgrade (Josep Manel Andr?s Moscard?)
--- Begin Message ---
Hi guys,

We have a reasonably large site, and my Netdisco 2 install  was getting a 
little sluggish, so I have adjusted the retention levels with:

#Modified Expiry:
expire_devices: 14
expire_nodes: 30
expire_nodes_archive: 30
expire_jobs: 14

This has worked quite nicely, but I cannot find a way to change the retention 
for the logged IP addresses:
Statistics for this installation
242 devices with 895 IPs

8,520 interfaces of which 4,628 are up

213 layer 2 links between devices

3,169 nodes logged, of which 1,400 are active

4,052,047 IPs logged, of which 66,615 are active

Statistics last generated on 2018-01-17


We have 4 million IP addresses logged, and this is the only statistic that does 
not seem to have reduced after I changed the expiry times down.

In real terms we only need to retain about one month's data for IP addresses, 
is there any way to tune this parameter ?

Regards,

Peter Grasso
Network Project Administrator

--- End Message ---
--- Begin Message ---
Hi Peter

After discussion with another user of Netdisco I recently discovered that we do have a longstanding issue relating to exactly this (probably the behaviour has been there since Netdisco 2.0 was first created).

Briefly, my understanding is that Netdisco is keeping the IPs where the MAC address is still also present. For situations where a MAC is roaming and getting different IPs all the time, this can certainly balloon the archive (I'm sure there are other scenarios too). For the curious, the code is here:

https://github.com/netdisco/netdisco/blob/master/lib/App/Netdisco/DB/ResultSet/Node.pm#L122

If you are really pressed for space you can delete entries from the node_ip table where time_last is greater than a given value. There will not be any side effect if you just go ahead and do this manually.

I'm not sure when we'll get a fix in, but you are not the only site with the issue!

regards,
oliver.

On 2018-01-17 20:13, Peter Grasso wrote:
Hi guys,

We have a reasonably large site, and my Netdisco 2 install was getting
a little sluggish, so I have adjusted the retention levels with:

#Modified Expiry:

expire_devices: 14

expire_nodes: 30

expire_nodes_archive: 30

expire_jobs: 14

This has worked quite nicely, but I cannot find a way to change the
retention for the logged IP addresses:

STATISTICS FOR THIS INSTALLATION

242 DEVICES WITH 895 IPS

8,520 INTERFACES OF WHICH 4,628 ARE UP

213 LAYER 2 LINKS BETWEEN DEVICES

3,169 NODES LOGGED, OF WHICH 1,400 ARE ACTIVE

4,052,047 IPS LOGGED, OF WHICH 66,615 ARE ACTIVE

STATISTICS LAST GENERATED ON 2018-01-17

We have 4 million IP addresses logged, and this is the only statistic
that does not seem to have reduced after I changed the expiry times
down.

In real terms we only need to retain about one month's data for IP
addresses, is there any way to tune this parameter ?

Regards,

Peter Grasso

Network Project Administrator
------------------------------------------------------------------------------
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 ---
--- Begin Message ---
> Briefly, my understanding is that Netdisco is keeping the IPs where the MAC
> address is still also present. For situations where a MAC is roaming and
> getting different IPs all the time, this can certainly balloon the archive
> (I'm sure there are other scenarios too). For the curious, the code is here:

Privacy addresses with IPv6 are a major factor.



--- End Message ---
--- Begin Message ---
Hi,
I have just upgraded the version , here is the Dockerfile I am using:

https://github.com/imimsri/netdisco/blob/master/Dockerfile


So, after the upgrade I've notice the neighbors are not shown correctly, the main switch , which was previously looking as a star, now shows only two connections.

I have done the following, but I bet those changes will be lost after container's reboot.

How should I work the docker upgrade and what can I do now?


[root@cd04c5e67a0e /]# netdisco-deploy
This is the Netdisco II deployment script.

Before we continue, the following prerequisites must be in place:
 * Database added to PostgreSQL for Netdisco
 * User added to PostgreSQL with rights to the Netdisco Database
* "~/environments/deployment.yml" file configured with Database dsn/user/pass
 * A full backup of any existing Netdisco database data
 * Internet access (for OUIs and MIBs)

You will be asked to confirm all changes to your system.

So, is all the above in place? [Y/n]: y

Would you like to deploy the database schema? [Y/n]: y
DB schema update complete.
Statistics updated.

Download and update vendor MAC prefixes (OUI data)? [Y/n]: y
OUI update complete.

Download and update MIB files? [Y/n]: y
MIBs update complete.
[root@cd04c5e67a0e /]# netdisco-web restart
config watcher: watching /netdisco/environments for updates.
Netdisco Web                                                  [Started]
[root@cd04c5e67a0e /]#
[root@cd04c5e67a0e /]# netdisco-backend restart
config watcher: watching /netdisco/environments for updates.
Netdisco Backend                                              [Started]
[root@cd04c5e67a0e /]#



Thanks.


--
------------------------------------------------
Josep Manel Andrés Moscardó
System Administrator
IMIM-Hospital del Mar Research Institut



--- 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