According other discution I know that monitoring for tunnel interfaces through snmp is currently not possible. Would like to know if someone have done something to monitor them through the API ans can agree to share with us ....
Solved! Go to Solution.
I am not sure about monitoring the interfaces but from the API one can surely get the interface statistics....even if it is a logical interface such as the tunnel interfaces.
From the cli run the follwing steps:
1) >> debug cli on
3) # run show interface < interface name>
that should give you the PAI output that you could use in a script or your browser from the next time....
that can be done as follows (although the following examples are not for interfaces )
Now if you want to use the XML API to create object, you can send your request with these info:
element=<entry name='test'><description>my desc</description><ip-netmask>22.214.171.124</ip-netmask></entry>
Example of API URL Request:
https://hostname/api/?type=config&action=set&key=INSERT API KEY HERE&xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address&element=<entry name='test'><description>my desc</description><ip-netmask>126.96.36.199</ip-netmask></entry>
I found an easier way to do it....
The key value can be generated using :
First login to a firewall through a browser.
To generate the key using the Rest API use the following syntax and submit to the browser on a new tab.
I hope this is helpful. I dont how good an indicator this will be to monitor a logical interface. But its worth a shot.
Nope...It does not seem like we get the interface status, but we do get all the other statistics including the interface counters.
I dont know If that is helpful to you.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!
The Live Community thanks you for your participation!