New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


How to find a single device ID

Votes:

0

Your Vote:

Up

Down

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 by  Jefferypk (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

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]



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.