Pulling a complete switch inventory

I’m below a novice in using LibreNMS and don’t know if this is even the right place to be to ask this.
I have been told to pull a switch inventory for our network using LibreNMS. I have no idea how to do this, so any help or advice would be appreciated.

Thanks

The api will be needed.

Then a script like this could be the basis

thank you for the reply. I was hoping for something that was already built in. While I’m sure the script is excellent, I’m not a programmer and would have no idea how to implement it.

1 Like

Unfortunately there is no click and export option in librenms web ui for inventory
if you have cli access to your server you can try below single line to export devices

sudo mysql librenms -e “select device_id, serial, sysname, hostname, poller_group from devices” | tr ‘\t’ ‘,’ > /home/yourusername/devicelist.csv

let me know what details you are expecting from inventory. i can modify the command accordingly

this command will generate devices list in csv format

1 Like

This will do what you want, but a little more… first version of

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.