#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    12
    Rep Power
    0

    Need help to connect switch 192.168.1.2 using perl script.


    need help to connect switch 192.168.1.2 using perl script.

    In perl script I want to use module (which i need to create) to reuse the code.
    After connecting switch I need to excute "show running-config" and get the output.

    Please provide me the script
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    17
    Rep Power
    0
    I'd take a look at Expect since it looks like your use case is fairly simple.

    Back to Perl, there is Net::Telnet, but it's not a library I've used.

IMN logo majestic logo threadwatch logo seochat tools logo