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:

  • add device name
  • Device Type
  • Serial Number
  • Asset Tag

todo

  • add components
  • add config
  • add interfaces
  • add ip

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:unknow",
            "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.bios.msn",
            "asset_tag":"xml:request.content.bios.assettag",
            "status":"str:active",
            "site":"object:Site:unknow",
            "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-0.4.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_fusioninventory_plugin-0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file netbox_fusioninventory_plugin-0.4.tar.gz.

File metadata

  • Download URL: netbox_fusioninventory_plugin-0.4.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.4

File hashes

Hashes for netbox_fusioninventory_plugin-0.4.tar.gz
Algorithm Hash digest
SHA256 80987b92f3ab87d52e74746602f141971c69403855cd6dbd0f7a087d038bb31b
MD5 31d7fbb683ac92d8e4b5cd3a3d5a44f7
BLAKE2b-256 e2e170fa2c8802d471b03531db87208a799dc9a862b8af1758a92c719b479b5e

See more details on using hashes here.

File details

Details for the file netbox_fusioninventory_plugin-0.4-py3-none-any.whl.

File metadata

  • Download URL: netbox_fusioninventory_plugin-0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.4

File hashes

Hashes for netbox_fusioninventory_plugin-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed241d384cc98539c0d31d9dc66ccb85232ff6541e19cfa5bd70bfa9bc6e496
MD5 1c94855810672ed4afa4af0ec2e1c506
BLAKE2b-256 266e63066b05e9e85b89f04bcc4f8481e7ae8b1b5e177c3e0b8369df7a46a8fd

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