Net::Telnet::Brcd - Contact BROCADE switch with TELNET
use Net::Telnet::Brcd; my $sw = new Net::Telnet::Brcd; $sw->connect($sw_name,$user,$pass) or die "\n"; %wwn_port = $sw->switchShow(-bywwn=>1); my @lines = $sw->cmd("configShow");
This library part is the implementation of BROCADE command with TELNET. The general DOCUMENTATION could be read in Net::Brcd(3) module.
Youre parent module is Net::Brcd.
use base qw(Net::Brcd Exporter ...);
You have to code the methods :
sub new { my ($class)=shift; my $self = $class->SUPER::new(); bless $self, $class; return $self; }
This method is a relay to the new function of Net::Brcd.
This method is used in the connect function of Net::Brcd. You could store youre specific parameter in object $obj->{PROTO}.
Execute $cmd and return res as ARRAY without \r\n. The command have to send automatically the command continue (space character) and answer yes for question to be silent as possible.
Execute $cmd without wait for response.
Stop current command.
Read line by line the answer. Return undef for the last line.
Brocade Documentation, BrcdAPI, Net::Telnet(3), Net::Brcd(3).
...
Laurent Bendavid, <lbendavid@cpan.org>
Copyright (C) 2005 by Laurent Bendavid
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.
1.12
Created 6/27/2005, Modified 7/3/10 22:04:20
To install Net::Telnet::Brcd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Telnet::Brcd
CPAN shell
perl -MCPAN -e shell install Net::Telnet::Brcd
For more information on module installation, please visit the detailed CPAN module installation guide.