help installing PAN::API?

Reply
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?

L1 Bithead

Re: help installing PAN::API?

The README file says:

To install perform the following:
  $ perl Makefile.PL

  $ make

  $ make test

  $ sudo make install

worked for me.

Not applicable

Re: help installing PAN::API?

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?

L1 Bithead

Re: help installing PAN::API?

Not applicable

Re: help installing PAN::API?

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?

L4 Transporter

Re: help installing PAN::API?

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.

L0 Member

Re: help installing PAN::API?

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!