Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    ($out,$err) = $ssh->capture2("cfgadd \"FC_DVT\", \"test5\"");
    ($out,$err) = $ssh->capture2({stdin_data => 'yes'},"cfgsave");
    ($out,$err) = $ssh->capture2({stdin_data => 'yes'},"cfgenable \"FC_DVT
    +\"");
    
  2. or download this
    [root@localhost jana]# vi switchconfig.pl
    [root@localhost jana]# ./switchconfig.pl
    ...
    2015/07/29 04:53:54 create zone on the switch 10.227.0.216 using zonec
    +reate
    
    2015/07/29 04:53:55 zonecreate successful