General discussion

  • Creator
  • #2146225

    per script


    by mejaz ·

    I have tried below scripts to get some users details from juniper (ERX)through my linux machine, but coudn’t succed, any ones help is here hightly appreciated

    Thanks in advance


    #! /usr/bin/perl
    #$username=”[put a username here]”; # login name if needed
    $infile=”routerlist”; # list of routers to read from
    use Net::Telnet::Cisco;
    open (LIST,”$infile”) or die “Couldn’t open file $infile”;
    foreach (@list) {

    sub TELNET {
    $t = Net::Telnet::Cisco->new(
    Timeout => 10,
    Host => $host
    print “Trying $host\n”;
    my @out=$t->password($pass);
    my @out=$t->enable 5($enable);
    print “downloading config…\n”;
    my $out=$t->cmd(“show subscribers”);
    print $out;

All Comments