Solvik / netbox-agent

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

Workaround for Supermicro default serial number #317

Closed TiagoTT closed 3 weeks ago

TiagoTT commented 3 weeks ago

Workaround for Supermicro default serial number

Solution provided by Simon Brandstetter (@Garfunkl). See details of the problem and solution in: https://github.com/Solvik/netbox-agent/issues/296

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

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.

Bump version to 1.0.1-rc1

The version was bumped only to be able to upgrade from the current version to my test version.

pip3 install "netbox-agent @ git+https://github.com/TiagoTT/netbox-agent@master"
TiagoTT commented 3 weeks ago

I have split this PR in 2 to facilitate the review and I am dropping the version bump: