Skip to main content

A Plugin for import devices from fusion inventory agent

Project description

netbox-fusioninventory-plugin

This plugin can add devices from fusioninventory-agent or ocsinventory-agent.

fusioninventory-agent -s http://netbox.local/plugins/fusion-inventory/

what working:

  • Device creating/updating
  • Serial Number (UUID)
  • Asset Tag
  • Components creating/updating
  • Interfaces creating/updating
  • IP addresses creating/updating
  • Automatic tracking of everything
  • History preserving of everything
  • Full logging (Journal + Change Log)
  • "Lazy" and "computed" variables

Installation

First, add netbox-fusioninventory-plugin to your /opt/netbox/local_requirements.txt file. Create it if it doesn't exist.

Then enable the plugin in /opt/netbox/netbox/netbox/configuration.py, like:

   PLUGINS = [
       'netbox_fusioninventory_plugin',
       ]

And finally run /opt/netbox/upgrade.sh. This will download and install the plugin and update the database when necessary. Don't forget to run sudo systemctl restart netbox netbox-rq like upgrade.sh tells you!

configuration

You can overwrite fields with xml content or use internal objects.

PLUGINS_CONFIG = {
        'netbox_fusioninventory_plugin':{
            "name":"xml:request.content.hardware.name",
            "device_role":"object:DeviceRole:unknown",
            "tenant":None,
            "manufacturer":"xml:request.content.bios.mmanufacturer",
            "device_type":"xml:request.content.bios.mmodel",
            "platform":"xml:request.content.hardware.osname",
            "serial":"xml:request.content.hardware.uuid",
            "asset_tag":"lazy:'WKS-'+device['serial']",
            "status":"str:active",
            "site":"object:Site:unknown",
            "location":None,
            "rack":None,
            "position":None,
            "face":None,
            "virtual_chassis":None,
            "vc_position":None,
            "vc_priority":None,
            "cluster":None,
            "comments":None,
        }
    }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_fusioninventory_plugin_1-0.6.tar.gz (14.4 kB view details)

Uploaded Source

File details

Details for the file netbox_fusioninventory_plugin_1-0.6.tar.gz.

File metadata

File hashes

Hashes for netbox_fusioninventory_plugin_1-0.6.tar.gz
Algorithm Hash digest
SHA256 166e57aed79099534863075e336afc57e833552150911b41e0a16bb9bda984fd
MD5 2fc9d34aa42a3dd28b9e86e0eec505e6
BLAKE2b-256 10157ead67efd3bc0f62e52f078d8127ba7c530b83626ed7c41cd2f2226c1094

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page