Cisco Cisco ASA 5580 Adaptive Security Appliance

下载
页码 32
 
About the ASA REST API 
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: 
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/ 
•  MIME::Base64, found at http://perldoc.perl.org/MIME/Base64.html 
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>