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

How to find a single device ID

Votes:

0

I'm sure this has been asked before but I'm unable to find the answer. I have 1 device (example) All I want to do through the API is get just the single ID from the device. Just that one device without running through every device and trying to grep out the one I need. Is there away to just query the device name and get the device ID from it?

Thanks

api deviceid query

Created on Jul 23, 2018 2:29:39 PM



1 Reply

Votes:

0

Dear Jefferypk,

there can be multiple devices with the same name or address, so a query from device name is not possible. Instead, the whole device list has to be extracted:

/api/table.xml?content=devices&columns=objid,name,host,status,message&count=*

It is possible to narrow down by probe or devicegroup if that one is know, using the paramter

&id=1

1 is the local probe. Use the object ID for other nodes to only extract devices within that node.

Created on Jul 23, 2018 4:51:34 PM by  Arne Seifert [Paessler 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.