- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-21-2011 12:50 PM
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?
09-23-2011 11:28 AM
Such scripts would be run from a trusted PC used to remotely manage the PA device. A read-write administrator account would be created for their use.
It's not a good idea to venture into such things unless you are very comfortable with shell scripting and Perl, and the management PC is very, very secure.
I would recommend that if you dabble with automating things, begin with read-only access to pull stats and such before graduating to more complicated and dangerous activities.
The Palo Alto PAN-perl-20110828.tar.gz package has examples for use of Perl and Expect. I posted a simple Perl Net::OpenSSH script in this forum. There's also the XML API, see docs DOC-1031.pdf and DOC-1714.pdf to get started.
Most automation approaches require a Linux managment PC, although I imagine that a person would be able to use Windows and something like AutoIT or other batch tool.
Good luck.
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!