Limits on a pan::xapi connection?

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

Limits on a pan::xapi connection?

L1 Bithead

I'm working on a script to check several configuration options on a PANOS box.  It seems that after 10 actions or so, the api connection fails.  Is there a limit within the API that says a single instantiated api connection can only complete x amount of actions before a new connection must be established?  My code is fairly simple, I call the api and pass it to subs that complete various operations.

3 REPLIES 3

L5 Sessionator

I would recommend posting the questions related to custom content including Custom App-IDs, Custom Threats, Custom Reports, XML API integration, CLI scripts, and other tools to Devcenter..

I have posted this query on your behalf : https://live.paloaltonetworks.com/thread/6190

-Ameya

Not applicable

Hi,

Could you share with us some part of your code ?

As I understand, your script open a SSL connection to the FW and after that you send multiple request on this SSL connection ?

Have you tried to make call URL one by one ?

@ steven, you didn't subscribe to an update on the thread created by Ameya ( https://live.paloaltonetworks.com/thread/6190 ), that's why I answer here

regards

note: I also send this message in the other thread ( https://live.paloaltonetworks.com/thread/6190 )

regards

L1 Bithead

That is unexpected behaviour.  The http/https connections are handled by LWP::UserAgent.

Attached is a test program that works in my environment.  Try that and report results with error/warning output.

  • 3333 Views
  • 3 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!