Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Net::CLI::Interact 2.122630

    Download button

    No screenshots available
    Downloads: 189  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Oliver Gorwits | More programs
    Perl Artistic License / FREE
    September 23rd, 2012, 09:59 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::CLI::Interact description

    Toolkit for CLI Automation

    Automating command line interface (CLI) interactions is not a new idea, but can be tricky to implement. Net::CLI::Interact is a Perl module that aims to provide a simple and manageable interface to CLI interactions, supporting:

    - SSH, Telnet and Serial-Line connections
    - Unix and Windows support
    - Reuseable device command phrasebooks

    SYNOPSIS

     use Net::CLI::Interact;
     
     my $s = Net::CLI::Interact->new({
     personality => 'cisco',
     transport => 'Telnet',
     connect_options => { host => '192.0.2.1' },
     });
     
     # respond to a usename/password prompt
     $s->macro('to_user_exec', {
     params => ['my_username', 'my_password'],
     });
     
     my $interfaces = $s->cmd('show ip interfaces brief');
     
     $s->macro('to_priv_exec', {
     params => ['my_password'],
     });
     # matched prompt is updated automatically
     
     # paged output is slurped into one response
     $s->macro('show_run');
     my $config = $s->last_response;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    CLI automation | Perl module | CLI | automation | toolkit

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM