in reply to Re: telnet from a cisco telnet
in thread telnet from a cisco telnet
use strict; use Net::Cisco; use Net::Telnet(); my $t =Net::Telnet::Cisco->new(Host=>'10.0.0.1'); my @output=0; $t->login('9190','KUM@R425'); $t->cmd("telnet 192.168.203.23"); $t->waitfor('/:$/i'); $t->cmd("public"); $t->waitfor('/>$/i'); @output=$t->cmd("show system"); open(CONFIG,">config.txt"); print CONFIG "@output\n"; close(CONFIG); $t->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: telnet from a cisco telnet
by Kumar Mantri (Novice) on Aug 09, 2011 at 12:15 UTC | |
by Corion (Patriarch) on Aug 09, 2011 at 12:21 UTC | |
by Kumar Mantri (Novice) on Aug 09, 2011 at 12:35 UTC | |
by Corion (Patriarch) on Aug 09, 2011 at 12:40 UTC |