PAN-OS 5.0 CLI script to change TCP and UDP Timeout Values for Default Applications on device

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

PAN-OS 5.0 CLI script to change TCP and UDP Timeout Values for Default Applications on device

L0 Member

I have a requirement to change the timeout values on all of the paloalto os preconfigured/default applications (2000+ applications). Using the web interface, it would require opening and configuring each individual application.  Can anyone lend assistance by pointing me to a CLI script that can make easier work of this task.

 

Greg

1 REPLY 1

L1 Bithead

 


Hi Greg,

Referencing this article, https://goo.gl/SyfLsM , you can use the following commands to set UDP and TCP timeouts:-
# set shared override application <application-name> udp-timeout <timeout-value>
# set shared override application <application-name> tcp-timeout <timeout-value>


You can leverage APIs as well:-

Browse to "API > Configuration Commands > shared > override > application" on PA firewall using "https://x.x.x.x/api" and select the application and then the path will look like (example 4shared application):-

API > Configuration Commands > shared > override > application > entry[@name='4shared'] > tcp-timeout


TCP TIMEOUT
XPath
/config/shared/override/application/entry[@name='4shared']/member[@name='tcp-timeout']

Rest API Url
/api/?type=config&action=get&xpath=/config/shared/override/application/entry[@name='4shared']/member[@name='tcp-timeout']


UDP TIMEOUT
API > Configuration Commands > shared > override > application > entry[@name='4shared'] > udp-timeout

XPath
/config/shared/override/application/entry[@name='4shared']/member[@name='udp-timeout']

Rest API Url
/api/?type=config&action=get&xpath=/config/shared/override/application/entry[@name='4shared']/member[@name='udp-timeout']


-Dinesh Moudgil

 

Please rate helpful posts.

  • 1895 Views
  • 1 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!