- or download this
$logger->info("create zone on the switch $ip using zonecreate");
($out,$err) = $ssh->capture2("zonecreate \"test1\", \"20:00:00:11:0d:3
+4:56:00\"");
...
($out,$err) = $ssh->capture2("{stdin_data =>yes},cfgsave");
$ssh->error and
die "remote find command failed: $!" . $ssh->error;
- or download this
DS_6505B:admin> zonecreate "test1","20:00:00:11:0d:34:56:00"
DS_6505B:admin> cfgadd "FC_DVT","test1"
...
Do you want to enable 'FC_DVT' configuration (yes, y, no, n): [no] y
zone config "FC_DVT" is in effect
Updating flash ...
- or download this
the error i get when i run is like this,
2015/07/28 04:10:31 zoneshow successful
2015/07/28 04:10:34 create zone on the switch 10.227.0.216 using zonec
+reate
remote find command failed: child exited with code 1 at ./switchconfig
+.pl line 113, <$fh> line 4.