- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-28-2013 08:38 AM
Hi,
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 ....
V.
06-28-2013 10:53 AM
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
2)>> configure
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:
xpath=/config/devices/entry[name=']/vsys/entry[1']/address
element=<entry name='test'><description>my desc</description><ip-netmask>1.1.1.1</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>1.1.1.1</ip-netmask></entry>
06-28-2013 10:53 AM
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
2)>> configure
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:
xpath=/config/devices/entry[name=']/vsys/entry[1']/address
element=<entry name='test'><description>my desc</description><ip-netmask>1.1.1.1</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>1.1.1.1</ip-netmask></entry>
06-28-2013 11:15 AM
I found an easier way to do it....
https://<Enter Firewall's IP here>/api/?type=op&cmd=<show><interface>tunnel.1</interface></show>&key=<Insert the key value here>
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.
https://<Firewall-IPaddress>/api/?type=keygen&user=<login-username>&password=<login-password>
I hope this is helpful. I dont how good an indicator this will be to monitor a logical interface. But its worth a shot.
06-28-2013 11:28 AM
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.
Regards
06-29-2013 12:47 AM
Thx a lot for your help 🙂
V.
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 LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!