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


In reply to brocade fc switch creating a zone by janasec

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.