[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Perl CGI output truncated


Craig Sanders a écrit (Wed, Oct 29, 2008 at 10:50:25AM +1100) :
> have you tried the Net::Telnet::Cisco module?

BTW, the clogin command from the rancid suite 


is very useful to script
some commands for network equipments (Cisco and al.).

    clogin(1)                                                                                       clogin(1)
           clogin - Cisco/Foundry login script
           clogin [-autoenable] [-noenable] [-c command] [-E var=x]
           [-e enable-password] [-f cloginrc- file] [-p user-password]
           [-s script-file] [-t timeout] [-u username] [-v
           vty-password] [-w enable-username] [-x command-file] [-y
           ssh_cypher_type] router [router...]
           clogin is an expect(1) script to automate the process of
           logging into a Cisco router, catalyst switch, Extreme
           switch, Juniper ERX/E-series, Procket Networks, or Redback
           router.  There are complementary scripts for Alteon, Bay
           Networks (nortel), ADC-kentrox EZ-T3 mux, Foundry, HP
           Procurve Switches, Hitachi Routers, Juniper Networks,
           Netscreen firewalls, Netscaler, Riverstone, and Lucent TNT,
           named alogin, blogin, elogin, flogin, hlogin, htlogin,
           jlogin, nlogin, nslogin, rivlogin, and tntlogin,
           clogin reads the .cloginrc file for its configuration, then
           connects and logins into each of the routers specified on
           the command line in the order listed.  Command-line options
           exist to override some of the directives found in the
           .cloginrc configuration file.


Emmanuel Halbwachs
Resp. Réseau/Sécurité                    Observatoire de Paris-Meudon
tel      : (+33)1 45 07 75 54                   5 Place Jules Janssen
fax      : (+33)1 45 07 76 13                    F 92195 MEUDON CEDEX

Reply to: