| Introduction | Requirement | Usage | Cookie handling | HTTPS support | Samples | Feature configuration samples | ||||||||||||||||
![]() |
||||||||||||||||
| Introduction | ||||||||||||||||
![]() |
||||||||||||||||
|
The example code that accompanies this file uses Perl to communicate with Netscaler, using XML/SOAP. Here, we describe how to get it up and running. The setConfig.pl example uses the Netscaler API to:
The rmConfig.pl example removes all of the configuration that was created by setConfig.pl. The getStat.pl example demonstrates usage of statistical api. Additional documentation is available as inline comments in the Perl scripts. |
||||||||||||||||
![]() |
||||||||||||||||
| Requirement | ||||||||||||||||
![]() |
||||||||||||||||
For the examples to work, you need the SOAP::Lite Perl module, available at http://www.soaplite.com/. HTTP::Cookie is used for client authentication purposes, as SOAP::Lite does not support cookies on its own. The following command should install all of the required modules:
|
||||||||||||||||
![]() |
||||||||||||||||
| Usage | ||||||||||||||||
![]() |
||||||||||||||||
The parameters to all of the examples are :
|
||||||||||||||||
![]() |
||||||||||||||||
| Cookie handling | ||||||||||||||||
![]() |
||||||||||||||||
HTTP::Cookie is used for client authentication purposes, as SOAP::Lite does not support cookies on its own. Developers need to handle the cookies as follows:
|
||||||||||||||||
![]() |
||||||||||||||||
| HTTPS support | ||||||||||||||||
![]() |
||||||||||||||||
Developers need to use the HTTPS protocol to send the secured API request to NetScaler. Additional package (Crypt-SSLeay) needs to be installed to use the HTTPS protocol in API request.
|
||||||||||||||||
![]() |
||||||||||||||||
| Samples | ||||||||||||||||
![]() |
||||||||||||||||
|
||||||||||||||||
![]() |
||||||||||||||||
| Feature configuration samples | ||||||||||||||||
![]() |
||||||||||||||||
|