From: Phillip Heller (pheller@genuity.net)
Date: Mon Nov 25 2002 - 21:26:35 GMT-3
On Mon, Nov 25, 2002 at 12:05:43PM -0500, steve brown wrote:
Could you give a sample perl script showing how you can change config?
Thanks
Steve
This wouldn't change a config, but it does show you how easy it can be
done with Perl using Net::Telnet::Cisco
-----------------------------------------------------------
#!/usr/local/bin/perl
use Net::Telnet::Cisco;
my $session = Net::Telnet::Cisco->new(Host => 'routername');
$session->login(Password => 'username');
my @output = $session->cmd(string => 'show version');
print @output;
$session->close;
------------------------------------------------------------
-- Regards,--phil
This archive was generated by hypermail 2.1.4 : Tue Dec 03 2002 - 07:23:10 GMT-3