do you know how to do it ? i will need to figure out how to setup automated login via telnet ..but i do not know the syntax to export zoneset information to a file. Connetrix guide says that regular connectix backup saves zone library information ...so i unzipped BkpPersisted.zip file, yet can't find anything that contains zone information.
i got following code from net, i tried to modify the code for my system but seems this does not work if the switch presents a login banner. if you know perl, you can change it and use it.
it may need a telnet or net perl library on your machine though (i dloaded it off-net but do not remember the link now )
from cli, you can run the command to output zones information (zoneshow?) and then save the output...
Kiran3
410 Posts
0
October 24th, 2007 22:00
but would it be okay if you can schedule configuration save through CLI if connectrix is not supporting it...
dynamox
9 Legend
•
20.4K Posts
0
October 25th, 2007 05:00
Kiran3
410 Posts
0
October 25th, 2007 05:00
it may need a telnet or net perl library on your machine though (i dloaded it off-net but do not remember the link now
from cli, you can run the command to output zones information (zoneshow?) and then save the output...
hope this helps...
#!/usr/bin/perl
use Net::Telnet;
if ($#ARGV != 3){
print "usage: brocade_cmd.pl
exit 1;
}
$host = $ARGV[0];
$username = $ARGV[1];
$passwd = $ARGV[2];
$command = $ARGV[3];
$switch = new Net::Telnet (Errmode =>'die', Timeout => 10 );
$switch->open($host);
$switch->waitfor('/ogin: $/');
$switch->print($username);
$switch->waitfor('/assword: $/');
$switch->print($passwd);
$switch->waitfor(Match => '/proceed./', Match => '/> /');
$switch->print("^C");
$switch->waitfor('/> $/');
print $switch->cmd($command);
print "\n";
$switch->print("exit");
dynamox
9 Legend
•
20.4K Posts
0
October 25th, 2007 06:00
Kiran3
410 Posts
0
October 25th, 2007 06:00