410 Posts

October 24th, 2007 22:00

i have not used this much,
but would it be okay if you can schedule configuration save through CLI if connectrix is not supporting it...

9 Legend

 • 

20.4K Posts

October 25th, 2007 05:00

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.

410 Posts

October 25th, 2007 05:00

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...

hope this helps...

#!/usr/bin/perl
use Net::Telnet;

if ($#ARGV != 3){
print "usage: brocade_cmd.pl \n";
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");

9 Legend

 • 

20.4K Posts

October 25th, 2007 06:00

once i am in telnet session ..where am i redirecting it to ? I need to redirect output of "show.zoning" to my local hard drive.

410 Posts

October 25th, 2007 06:00

you can redirect the output of this script so automatically you will get the zoneset information in the dump.
No Events found!

Top