How can I get the interface ID from the API?

We use a separate site to show which sensors is running on which switch but there is no (known) way to show the port number by using the table.xml.


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

One option would be to use the "tag" field of a sensor.

The table.xml would than report this value in the <tags> node.

<name>Cisco Switch 2</name>
<id>2036</id> 
<tags>portnumber: 4</tags> 

Aug, 2010 - Permalink

The API call is

http://[yourprtgserver]/api/getobjectproperty.htm?id=[sensorid]&name=interfacenumber

Please see: How can I change or retrieve object settings of groups, devices or sensors using the API? for more information.


Aug, 2010 - Permalink