You can create monitors, event action scripts and other utilities using Perl, but if you install them on a system that does not have a suitable Perl interpreter, they will not function correctly. For example, the Traffic Manager Virtual Appliance does not have a system-wide Perl interpreter.
The Traffic Manager includes a slightly cut-down version of Perl that is used to run many parts of the Administration Server. You can modify an existing perl script to use the Traffic Manager distribution if necessary.
Replace the standard Perl preamble:
#!/usr/bin/perl -w
... with the following:
#!/bin/sh exec $ZEUSHOME/perl/miniperl -wx $0 ${1+"[email protected]"} if 0; #!/usr/bin/perl #line 7 BEGIN{ # The Stingray-provided perl uses its own libraries @INC=("$ENV{ZEUSHOME}/zxtmadmin/lib/perl","$ENV{ZEUSHOME}/perl"); }
Note that Traffic Manager's Perl distribution contains a limited set of libraries, and it is not possible to add further libraries to it. Nevertheless, it is complete enough for many of the common administration tasks that you may wish to perform on a Traffic Manager Virtual Appliance, including using the Control API (SOAP::Lite).