首页 > 代码库 > delete zone and cfgsave on brocade by CMD
delete zone and cfgsave on brocade by CMD
brocade:user> cfgshow
Defined configuration:
cfg: cfg001 AMS_ESX_HBA1; AMS_ESX_HBA2; HUS_ESX_HBA1;
HUS_ESX_HBA2; HUS_DB1_HBA1;
HUS_DB2_HBA1
zone: AMS_ESX_HBA1
1,0; 1,1; 1,4
zone: AMS_ESX_HBA2
1,0; 1,1; 1,5
zone: HUS_ESX_HBA1
1,2; 1,4; 1,6
zone: HUS_ESX_HBA2
1,2; 1,5; 1,6
zone: HUS_DB1_HBA1
1,2; 1,3; 1,6
zone: HUS_DB2_HBA1
1,2; 1,6; 1,7
Effective configuration:
cfg: cfg001
zone: AMS_ESX_HBA1
1,0
1,1
1,4
zone: AMS_ESX_HBA2
1,0
1,1
1,5
zone: HUS_ESX_HBA1
1,2
1,4
1,6
zone: HUS_ESX_HBA2
1,2
1,5
1,6
zone: HUS_DB1_HBA1
1,2
1,3
1,6
zone: HUS_DB2_HBA1
1,2
1,6
1,7
brocade:user> cfgremove "cfg001","AMS_ESX_HBA1"
brocade:user> cfgremove "cfg001","AMS_ESX_HBA2"
brocade:user> cfgshow
Defined configuration:
cfg: cfg001 HUS_ESX_HBA1; HUS_ESX_HBA2; HUS_DB1_HBA1;
HUS_DB2_HBA1
zone: AMS_ESX_HBA1
1,0; 1,1; 1,4
zone: AMS_ESX_HBA2
1,0; 1,1; 1,5
zone: HUS_ESX_HBA1
1,2; 1,4; 1,6
zone: HUS_ESX_HBA2
1,2; 1,5; 1,6
zone: HUS_DB1_HBA1
1,2; 1,3; 1,6
zone: HUS_DB2_HBA1
1,2; 1,6; 1,7
Effective configuration:
cfg: cfg001
zone: AMS_ESX_HBA1
1,0
1,1
1,4
zone: AMS_ESX_HBA2
1,0
1,1
1,5
zone: HUS_ESX_HBA1
1,2
1,4
1,6
zone: HUS_ESX_HBA2
1,2
1,5
1,6
zone: HUS_DB1_HBA1
1,2
1,3
1,6
zone: HUS_DB2_HBA1
1,2
1,6
1,7
brocade:user> zonedelete AMS_ESX_HBA1
brocade:user> zonedelete AMS_ESX_HBA2
brocade:user> cfgshow
Defined configuration:
cfg: cfg001 HUS_ESX_HBA1; HUS_ESX_HBA2; HUS_DB1_HBA1;
HUS_DB2_HBA1
zone: HUS_ESX_HBA1
1,2; 1,4; 1,6
zone: HUS_ESX_HBA2
1,2; 1,5; 1,6
zone: HUS_DB1_HBA1
1,2; 1,3; 1,6
zone: HUS_DB2_HBA1
1,2; 1,6; 1,7
Effective configuration:
cfg: cfg001
zone: AMS_ESX_HBA1
1,0
1,1
1,4
zone: AMS_ESX_HBA2
1,0
1,1
1,5
zone: HUS_ESX_HBA1
1,2
1,4
1,6
zone: HUS_ESX_HBA2
1,2
1,5
1,6
zone: HUS_DB1_HBA1
1,2
1,3
1,6
zone: HUS_DB2_HBA1
1,2
1,6
1,7
brocade:user> cfgenable cfg001
You are about to enable a new zoning configuration.
This action will replace the old zoning configuration with the
current configuration selected. If the update includes changes
to one or more traffic isolation zones, the update may result in
localized disruption to traffic on ports associated with
the traffic isolation zone changes
Do you want to enable ‘cfg001‘ configuration (yes, y, no, n): [no] y
zone config "cfg001" is in effect
Updating flash ...
brocade:user> cfgshow
Defined configuration:
cfg: cfg001 HUS_ESX_HBA1; HUS_ESX_HBA2; HUS_DB1_HBA1;
HUS_DB2_HBA1
zone: HUS_ESX_HBA1
1,2; 1,4; 1,6
zone: HUS_ESX_HBA2
1,2; 1,5; 1,6
zone: HUS_DB1_HBA1
1,2; 1,3; 1,6
zone: HUS_DB2_HBA1
1,2; 1,6; 1,7
Effective configuration:
cfg: cfg001
zone: HUS_ESX_HBA1
1,2
1,4
1,6
zone: HUS_ESX_HBA2
1,2
1,5
1,6
zone: HUS_DB1_HBA1
1,2
1,3
1,6
zone: HUS_DB2_HBA1
1,2
1,6
1,7