feat: transfer client software lists from inventory reports into netbox-slm
The NetBox Windows Agent and the NetBox Synchronizer write the installed software as a report into the device comments. On every device save the report is parsed (agent bullet list and synchronizer table) and the device's netbox-slm installations are brought in line: missing products, versions and installations are created, installations that left the report are removed. Installations entered by hand are never touched. Deleting a device removes its automatic installations first, since netbox-slm protects devices with installations. The command netbox_utilities_sync_software transfers existing reports once. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
63b3b31763
commit
e24a12164c
7 files changed
+379
-2
No files matched your search
@@ -60,5 +60,9 @@ def _install_menu_on_first_request(**kwargs):
|
||||
def install_software_support():
|
||||
# Registers the device "Software" tab before NetBox builds the dcim URLs.
|
||||
from . import software_views # noqa: F401
|
||||
from .software_sync import install_software_sync
|
||||
|
||||
# Software lists of the Windows agent and the NetBox Synchronizer arrive in the device comments.
|
||||
install_software_sync()
|
||||
|
||||
request_started.connect(_install_menu_on_first_request, dispatch_uid=__name__)
|
||||
Reference in new issue
Block a user