This article applies as of PRTG 24
I am trying to export a list of devices that are in PRTG. How can I do this?
This can be done using PRTG's API:
/api/table.xml?content=devices&output=csvtable&columns=device,host
It will return something like:
"Device","Device(RAW)","Host","Host(RAW)" "8001 Cisco 1800","8001 Cisco 1800","192.168.101.1","192.168.101.1" "8002 Cisco 1800","8002 Cisco 1800","192.168.102.1","192.168.102.1" "8003 Cisco 1800","8003 Cisco 1800","192.168.103.1","192.168.103.1" "8004 Cisco 1800","8004 Cisco 1800","192.168.104.1","192.168.104.1" "8005 Cisco 1800","8005 Cisco 1800","192.168.105.1","192.168.105.1" "8006 Cisco 1800","8006 Cisco 1800","192.168.106.1","192.168.106.1" "8008 Cisco 1800","8008 Cisco 1800","192.168.108.1","192.168.108.1" ....
Documentation can be found in PRTG Manual: Application Programming Interface (API) Definition.
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.