help installing PAN::API?

Announcements

ATTENTION Customers, All Partners and Employees: The Customer Support Portal (CSP) will be undergoing maintenance and unavailable on Saturday, November 7, 2020, from 11 am to 11 pm PST. Please read our blog for more information.

Reply
Highlighted
Not applicable

help installing PAN::API?

I am trying to run a perl script which uses “PAN::API” module to connect to Palo Alto firewall. I downloaded “Perl User-ID XML API.zip” and I tried to install PAN::API module by copying “API.pm” to “/usr/lib/perl5/5.10.0/”

But it complaining that PAN::API is not installed, error message: “Can't locate PAN/API.pm”

My platform is SUSE Linux Enterprise Server 11

What am I doing wrong? Can you help please?

Highlighted
L1 Bithead

The README file says:

To install perform the following:
  $ perl Makefile.PL

  $ make

  $ make test

  $ sudo make install

worked for me.

Highlighted
Not applicable

I think I must have downloaded the wrong package (Perl User-ID XML API.zip).

There is neither “Makefile.PL” nor a “README” file in the package. Can someone kindly direct me to where I can download the “PAN::API” Perl module?

Highlighted
L1 Bithead
Not applicable

Thanks for your response however after installing “PAN-perl-20111226” as instructed, my script still complain that “PAN::API” is not installed.

Package “PAN-perl-20111226” provide “PAN::XAPI” not “PAN::API”

But my script requires “PAN::API” where can I download this from?

Highlighted
L4 Transporter

please check this link -  https://live.paloaltonetworks.com/docs/DOC-2485 . I have updated the doc with the steps to create a perl environment before we install the PAN Perl API.

Highlighted
L0 Member

Copy “API.pm” to “/usr/lib/perl5/5.10.0/PAN

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 Live Community as a whole!

The Live Community thanks you for your participation!