Forum Discussion

John_Ogle_45372's avatar
John_Ogle_45372
Icon for Nimbostratus rankNimbostratus
Sep 08, 2011

How to install PERL Execpt and Net::SFTP

I know this isn't supported but... Does anyone know how to install the Perl Expect libraries on a 10.2x LTM? Also, Net::SFTP module.

 

 

Thanks,

4 Replies

  • Hi John,

     

     

    Jason has some steps here using a vanilla CentOS instance:

     

     

    http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/1086419/Monitoring-Windows-Terminal-Services-from-BIG-IP.aspx

     

     

    Aaron
  • I think this would work:

     

     

    Using CentOS, you can download the module from CPAN, extract it and chdir to the newly created directory. Use PREFIX when you prepare the Makefile:

     

     

    perl Makefile.PL PREFIX=/home/module/usr/local

     

     

    The rest would be as usual:

     

     

    make

     

    make test

     

    make install

     

     

    Once it's done, transfer /home/module/usr/local to LTM. More detail about how to transfer the binary to LTM, you can take a look at Jason's steps.

     

     

    Add the following line at the top of any of your scripts that require the module:

     

     

    use lib "/home/module/usr/local/";

     

     

    Good luck ...
  • Is there a version of EXPECT already installed? The link below discusses the creation of a custom monitor using EXPECT??

     

     

    http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/44/aft/1177072/showtab/groupforums/Default.aspx

     

     

    Thank you,