What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

PRTG Powershell export list of Devices/Hosts of a specific Group/Probe

Votes:

0

Your Vote:

Up

Down

What I need: a list of hosts of a specific group/probe via Powershell

With "Get-Device | ft host" I get a list of all hosts and can export them, but I need a list of hosts only of a specific group/probe. Does anyone have an idea?

api export powershell prtg

Created on Jun 29, 2021 12:54:17 PM by  jostp (0) 1



1 Reply

Accepted Answer

Votes:

1

Your Vote:

Up

Down

Hi jostp,

From the sounds of things you may be using PrtgAPI - note that PrtgAPI is a third party product and is not supported by Paessler, as such for any queries regarding PrtgAPI please ask these on the GitHub issues page, rather than the Paessler forums

In order to retrieve devices from specific groups or probes using PrtgAPI, simply retrieve those groups/probes first and then pipe these to `Get-Device`

# Get all devices from the "Servers" group
Get-Group Servers | Get-Device
# Get all devices from all probes whose name contains "london" or "wales"
Get-Probe *london*,*wales* | Get-Device

Regards,

lordmilko

Created on Jun 29, 2021 2:15:18 PM by  lordmilko (2,132) 2 1



Please log in or register to enter your reply.


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.