Automation/API Discussions

Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Automation/API Discussions

Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.

About Automation/API Discussions

Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.

Discussions

dev2rama error

After issuing a the set .sh command we recieve an error when pushing the policy to panorama./config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='DG1']/pre-rulebase/security ../templates/dev2rama//set/12_security-rules.xmlExecuting: /usr/local/bin/panxapi -S -h 192.168.0.230 -K 0RgWc42Oi0vDx2WRUIUM6A== ../templates/dev2...

tonyh by L0 Member
  • 3965 Views
  • 4 replies
  • 0 Likes

Expect Scripts

I see there are a couple of Expect scripts on the PA support site. 1 of them can be used to automate config changes. However, the doc does not explain how to use them. Do the scripts run on a host PC or on the PAN device? How specifically do I get them to run?

TomH by L1 Bithead
  • 3133 Views
  • 1 replies
  • 0 Likes

Using Perl's Net::OpenSSH for automated remote CLI access

Lately, I've been using the simple Perl code to retrieve performance data from Palo Alto. This is not only an alternative to the Palo Alto XML API, it should work on any remote device that features an SSH command shell, such as switches, routers, and other firewalls.This example retrieves past 24 hour CPU stats without relying on 'expect' or ot...

Resolved! API & Custom reports

Hi,I want to change my custom reports time frame just before executing them, using the XML API.Here is how I proceed:Modify the <start-time> and <end-time> using a "action=edit" API requestPull the results out my report with a "type=report&reporttype=custom" API requestThe first step works fine, I see the time frame modification ...

adeboss by Not applicable
  • 4285 Views
  • 3 replies
  • 0 Likes

Resolved! User reports via API?

I have been able to create a new user report via the API, but have not found a way to run the report and retreive the generated pdf. Is this completely beyond the bounds of the API?The reason I am trying to do this is because we have two separate user bases that need monitoring and action: students and faculty. Each has it's own path to resolu...

Funshion

Has anyone heard of this TV software called "Funshion" which downloads Gigs of data from the internet? Unfortuntely I have many users with the software installed, and they are killing the internet bandwidth. The Palo Alto just displays the traffic as "unknown udp" so I am not able to block effectively without blocking other legitimate traffic. C...

cmuchong by L1 Bithead
  • 2948 Views
  • 2 replies
  • 0 Likes

Resolved! [XML API] Custom reports timeframe

Hi,I'm trying to pull the results of my Custom Reports through the XML API, but while I'm able to specify a custom timeframe in the request URL, it's not taken into account.Instead, it's the reports' hardcoded timeframe which is applied (we used to use the Web GUI to get the results).I thought the starttime and endtime URL parameters would overr...

novidys by L1 Bithead
  • 3616 Views
  • 1 replies
  • 0 Likes

White list issue

I have add a web page to the white list. When I try opening the page it states "internet Explorer cannot display the webpage". I have tried this web page from 2 of our facilities, 1 (no PaloAlto Firewall) works fine, 2 (PaloAlto Firewall) cannot be displayed. any ideas?

Resolved! Explicitly retrieving running or candidate config via XML API

If I understand correctly, the XML API can be used to retrieve and edit the latest version of the config, whether it has been committed as the running config or not. Because a running config represents the actual current configuration state of the device, it would be very helpful to be able to explicitly request a retrieval of that config versi...

tgarrett by Not applicable
  • 5054 Views
  • 4 replies
  • 0 Likes

Retrieve Security Profiles - Vulnerability Protection via API

Hi, We have one of our PA's set to utilize acustom vulnerability protection profile. I would like to retrieve the current configuration into XLS via the API. I am able to pull the Security rules without any issue but cannot find the correct XPpath for the Security Profiles. What is the command\XPath to pull the Security Profiles - Vulnerabi...

Chris_S by L1 Bithead
  • 2824 Views
  • 2 replies
  • 0 Likes

How do I get the API to show disabled rules?

I'm using the API to pull the entire xml configuration file off of Panorama like so:https://firewall/esp/restapi.esp?type=config&action=show&key=<key>However disabled rules are not included in the xml retreived by the request. This is a serious problem, does anyone know how I can solve this?

gdolph by Not applicable
  • 2443 Views
  • 1 replies
  • 0 Likes

any additional documentation on using the xml api with type=report and reporttype=custom?

Hello,I have problems with the xml api to use with custom reports:When I am using this request:https://x.x.x.x/esp/restapi.esp?type=report&reporttype=custom&reportname=shares&topn=99&period=last-30-days&key=xxxxx(of course x.x.x.x is the right IP and xxxxx the right key and "shares" is an existing custom report)we are getting...

sylvia by L1 Bithead
  • 2839 Views
  • 2 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions