New Question
 
 
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 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 can I get a full list of devices via api?

Votes:

0

Your Vote:

Up

Down

When doing a api qry : /api/table.xml?content=devices&output=csvtable&columns=device

I get a incomplete list of devices. Shouldn't it give all the names that are in devices setting field "Device Name" ? Also it would be nice to be able to pull all ip's of devices from the devices setting field "IPv4 Address/DNS Name" .

api device ip-

Created on Apr 4, 2013 9:09:39 PM by  sigeld (0) 1



5 Replies

Votes:

0

Your Vote:

Up

Down

you can use the following API-Call /api/table.xml?content=devices&output=xml&columns=objid,probe,group,device,host or /api/table.xml?content=devices&output=csv&columns=objid,probe,group,device,host

Created on Apr 5, 2013 12:59:05 PM by  Mathias Hengl [Paessler Support]



Votes:

0

Your Vote:

Up

Down

O.k., that only gives me more info (additional fields) on the devices that are listed from my attached api call, but this is not a complete list of devices.

Created on Apr 5, 2013 6:06:40 PM by  sigeld (0) 1



Votes:

0

Your Vote:

Up

Down

I should be getting a result of 653 Devices and Getting a result from the API qry of 504, I verified the # of devices to the the devices backed up in \Application data\Paessler\PRTG Network Monitor\Monitoring Database\ *date*

Created on Apr 5, 2013 6:25:07 PM by  sigeld (0) 1



Votes:

0

Your Vote:

Up

Down

When I go to "PRTG Host"/status.htm?tabid=1 I get the following :

Database Objects Probes 5 Groups 150 Devices 856

which is also different from what the api qry returns.

Created on Apr 5, 2013 6:36:41 PM by  sigeld (0) 1



Votes:

1

Your Vote:

Up

Down

Hi,

The API call by default only returns 500 devices. To return more, use the count parameter and add something like &count=1000 to your URL.

Regards,

Created on Apr 8, 2013 10:09:50 AM by  PRTG Tools Family [prtgtoolsfamily.com] (13,173) 3 4



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.