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

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