janasec has asked for the wisdom of the Perl Monks concerning the following question:
hi I am configuring brocade sw,I am able to execute the commands but when creating zone using the brocade it executes but I dont see the change reflected on the switch,I feel command is not getting executed
the code is listed here $logger->info("create zone on the switch $ip using zonecreate"); ($out,$err) = $ssh->capture2("zonecreate "); $ssh->error and die "remote find command failed: $!" . $ssh->error; print "$out\n"; $logger->info("zonecreate successful");
the output 2015/07/26 22:14:52 create zone on the switch 10.227.0.216 using zonec +reate Error: Invalid number of arguments Usage: zonecreate "zoneName", "member[; member...]" zonecreate --peerzone "zone_name" -principal "principal_list" [-member +s "member_list"] 2015/07/26 22:14:53 zonecreate successful
but the issue is i need to run zonecreate "zoneName", "member; member..." zonecreate "test1", "20:01:00:11:0d:34:57:00" but when i run the zonecreate "test1", "20:01:00:11:0d:34:57:00" in the script it runs but change is not reflected in the switch,do i need to escape somethings in the command
I got the solution after playing for some time,the command was fine I had to save the session as well that was the issue
|
|---|