General discussion


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;

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Networks Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums