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,
}
}
Release files for netbox-fusioninventory-plugin 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netbox_fusioninventory_plugin-0.4.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netbox_fusioninventory_plugin-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / netbox_fusioninventory_plugin-0.4.tar.gz
| Download URL | netbox_fusioninventory_plugin-0.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80987b92f3ab87d52e74746602f141971c69403855cd6dbd0f7a087d038bb31b
|
|
BLAKE2b-256 checksum How to use checksums |
e2e170fa2c8802d471b03531db87208a799dc9a862b8af1758a92c719b479b5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / netbox_fusioninventory_plugin-0.4-py3-none-any.whl
| Download URL | netbox_fusioninventory_plugin-0.4-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ed241d384cc98539c0d31d9dc66ccb85232ff6541e19cfa5bd70bfa9bc6e496
|
|
BLAKE2b-256 checksum How to use checksums |
266e63066b05e9e85b89f04bcc4f8481e7ae8b1b5e177c3e0b8369df7a46a8fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|