Ask the Community
Groups
Installing Perl modules for use with Traverse script - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>QUESTION</strong></p> <p>How do I install the necessary extra perl modules in Traverse that may be required for my custom Perl script?</p> <p><strong>RESOLUTION</strong></p> <p>As Traverse is shipped with "barebones" Perl libraries, to be able to use custom Perl libraries, it is recommended to isolate the required Perl module for your script and its dependencies on a separate server (via 'yum install' or Strawberry Perl). Once they are downloaded, you may copy them to the <TRAVERSE_HOME>\plugin directory (to keep future upgrades from deleting the libraries from within other Traverse directories) on the BVE server.</p> <p>Once the Perl module(s) are available within the plugins directory, in your Perl script, you can provide a path to them using:</p> <p>#begin code</p> <p>#!/usr/bin/perl -w<br>#<br>use Cwd 'abs_path';<br>use lib (abs_path(dirname($0)). "/../../");<br>use File::ReadBackwards;</p> <p>#end code</p> <p>The above assumes the script is located under TRAVERSE_HOME\plugin\monitors\YOUR-SCRIPT-DIRECTORY and File::Readbackwards is located under TRAVERSE_HOME\plugin (TRAVERSE_HOME\plugin\File\Readbackwards\Readbackwards.pm).</p> <p> </p> <p><strong>APPLIES TO</strong></p> <p>All versions of Traverse.</p> <p> </p> <p><strong>REFERENCE </strong></p> <p>None</p> </article> </main>