Monitor vpn interfaces

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Monitor vpn interfaces

L5 Sessionator

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.

1 accepted solution

Accepted Solutions

L3 Networker

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>

View solution in original post

4 REPLIES 4

L3 Networker

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>

L3 Networker

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.

L3 Networker

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

Thx a lot for your help 🙂

V.

  • 1 accepted solution
  • 3134 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!