Help for this page

Select Code to Download


  1. or download this
    
    #login 1
    ...
             $conn->login(  Passcode => $passw);
    $conn->close;
    };
    
  2. or download this
    foreach $host ( @hosts )  {    my $conn = Net::Telnet::Cisco::IOS->new
    +(HOST => $host);  # connect to the host 
         if ( $conn->login(   Name => $username,        
    ...
        else(
             $conn->login(  Passcode => $passw));