Solvik / netbox-agent

Netbox agent to run on your infrastructure's servers
Apache License 2.0
305 stars 78 forks source link

New command line option --update-old-devices to update the serial number of old servers #320

Closed TiagoTT closed 3 weeks ago

TiagoTT commented 3 weeks ago

Add an alternative method to resolve server serial number and name conflicts which updates the serial number of the existing server object in Netbox with the same name as the current server.

This option addresses the situation as --purge-old-devices but does not delete the existing server object in Netbox.

This option is useful if a server is replaced by another with the same name and it is desired to keep all its properties that have been added manually in Netbox, so the existing server object will be updated with the serial number of the new server.

CllaudiaB commented 3 weeks ago

Hello @TiagoTT Thanks for your PR