What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

List of all devices and sensors

Votes:

0

I am looking for a way to create a report that will give me a list of all the devices and sensors associated with the device. I do not need graphics or data just a list in CSV or PDF format.

devices prtg sensors

Created on May 23, 2022 5:45:57 PM



1 Reply

Votes:

1

If you're on version 22.2.76.1705 you can use the PRTG API v2 (Seen on the new UI)

Also accessible via http(s):<prtgserver>:8080/api/v2/overview

You can export this with a simple powershell script:

Script starts with sign in, get a token, use the token to extract the data and then save it output.

An example would be(username, password and server URLs need to be updated):

$response = Invoke-RestMethod -Method 'POST' -Body '{"username": "prtgadmin", "password": "prtgadmin"}' 'http://prtgserver/api/v2/session' $token = $response.token $devices = Invoke-RestMethod -Method 'GET' -head @{"Authorization" = "Bearer $token"} 'http://prtgserver/api/v2/devices' $values = $devices | Select-Object -Property id,name,host,status_info | Export-Csv file.csv

Created on May 26, 2022 5:15:07 PM by  Oscar Chavarria [Paessler Technical Support]




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.