Cisco Cisco ASA 5580 Adaptive Security Appliance
About the ASA REST API
REST-API Online Documentation
REST-API Online Documentation
31
node script.js
The Python scripts require you to install Python, found at https://www.python.org/. Once you have installed Python,
you can run your script with:
you can run your script with:
python script.py <username> <password>
The Perl scripts require some additional set-up. You will need five components: Perl itself, and four Perl libraries:
• Perl, found at http://www.perl.org/
• Bundle::CPAN, found at http://search.cpan.org/~andk/Bundle-CPAN-1.861/CPAN.pm
• REST::Client, found at http://search.cpan.org/~mcrawfor/REST-Client-88/lib/REST/Client.pm
• MIME::Base64, found at http://perldoc.perl.org/MIME/Base64.html
• JSON, found at http://search.cpan.org/~makamaka/JSON-2.90/lib/JSON.pm
Here is an example installation on a Macintosh:
Boot strapping for MAC:
$ sudo perl -MCPAN e shell
cpan> install Bundle::CPAN
cpan> install REST:: Client
cpan> install MIME::Base64
cpan> install JSON
After installing the dependencies, you can run your script with:
perl script.pl <username> <password>