Net::Telnet::CiscoNet::Telnet::Cisco is a Perl module to interact with a Cisco router. | |
Download |
Net::Telnet::Cisco Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Joshua Keroes
- Publisher web site:
- http://search.cpan.org/~joshua/
Net::Telnet::Cisco Tags
Net::Telnet::Cisco Description
Net::Telnet::Cisco is a Perl module to interact with a Cisco router. Net::Telnet::Cisco is a Perl module to interact with a Cisco router.SYNOPSIS use Net::Telnet::Cisco; my $session = Net::Telnet::Cisco->new(Host => '123.123.123.123'); $session->login('login', 'password'); # Execute a command my @output = $session->cmd('show version'); print @output; # Enable mode if ($session->enable("enable_password") ) { @output = $session->cmd('show privilege'); print "My privileges: @outputn"; } else { warn "Can't enable: " . $session->errmsg; } $session->close;Net::Telnet::Cisco provides additional functionality to Net::Telnet for dealing with Cisco routers.cmd() parses router-generated error messages - the kind that begin with a '%' - and stows them in $obj->errmsg(), so that errmode can be used to perform automatic error-handling actions. Requirements: · Perl
Net::Telnet::Cisco Related Software