server: labserver1
switch: sw001
clusternetapp filers: netapp001, netapp002
zoning backup server: 140.190.71.105
zone configuration: Labswitch1
labserver1 wwpn hba0 88:88:88:80:88:88:88:88
labserver1 wwpn hba1 88:88:88:81:88:88:88:88
netapp001/netapp002 wwn: 50:0a:09:80:86:27:c0:87
aliases naming:
a_labserver1_hba0 (server’s hba #1)
a_labserver1_hba1 (server’s hba#2)
a_netapp001_002 (netapp cluster )
zones naming:
z_netapp001_002_labserver1_a
A. Save the switch parameter to a remote server.
sw001:admin> configupload
Protocol (scp, ftp, local) [ftp]: yes
Server Name or IP Address [host]: 140.190.71.105
User Name [user]: nurledge
File Name [config.txt]: sw001_bkp_june0910
Section (all|chassis [all]): yes
Password:
configUpload complete: All config parameters are uploaded
Show current configuration status
sw001:admin> cfgshow
Defined configuration:
cfg: Labswitch1
vSpherezone; labfiler
zone: labfiler
10:00:00:00:C9:4C:0D:F1; 50:0A:09:82:86:27:C0:87;
50:0A:09:82:96:27:C0:87
zone: vSpherezone
50:0A:09:82:96:27:C0:87; 50:0A:09:82:86:27:C0:87;
vSphereESXserver
alias: vSphereESXserver
50:01:43:80:00:C1:E7:08
Effective configuration:
cfg: Labswitch1
zone: labfiler
10:00:00:00:c9:4c:0d:f1
50:0a:09:82:86:27:c0:87
50:0a:09:82:96:27:c0:87
zone: vSpherezone
50:0a:09:82:96:27:c0:87
50:0a:09:82:86:27:c0:87
50:01:43:80:00:c1:e7:08
Create aliases and zone
sw001:admin> alicreate "a_labserver1","88:88:88:80:88:88:88:88"
sw001:admin> alicreate "a_sw001_002","50:0a:09:80:86:27:c0:87"
sw001:admin> zonecreate "z_sw001_002_labserver1_a","a_labserver1;a_sw001_002"
Display current configuration
sw001:admin> cfgshow
Defined configuration:
cfg: Labswitch1
vSpherezone; labfiler
zone: labfiler
10:00:00:00:C9:4C:0D:F1; 50:0A:09:82:86:27:C0:87;
50:0A:09:82:96:27:C0:87
zone: vSpherezone
50:0A:09:82:96:27:C0:87; 50:0A:09:82:86:27:C0:87;
vSphereESXserver
zone: z_sw001_002_labserver1_a
a_labserver1; a_sw001_002
alias: a_labserver1
88:88:88:80:88:88:88:88
alias: a_sw001_002
50:0a:09:80:86:27:c0:87
alias: vSphereESXserver
50:01:43:80:00:C1:E7:08
Effective configuration:
cfg: Labswitch1
zone: labfiler
10:00:00:00:c9:4c:0d:f1
50:0a:09:82:86:27:c0:87
50:0a:09:82:96:27:c0:87
zone: vSpherezone
50:0a:09:82:96:27:c0:87
50:0a:09:82:86:27:c0:87
50:01:43:80:00:c1:e7:08
Notice; the change is only appear under aliases and zoning.
Add the zone to the zone configuration
sw001:admin> cfgadd "Labswitch1","z_sw001_002_labserver1_a"
sw001:admin> cfgshow
Defined configuration:
cfg: Labswitch1
vSpherezone; labfiler; z_sw001_002_labserver1_a
zone: labfiler
10:00:00:00:C9:4C:0D:F1; 50:0A:09:82:86:27:C0:87;
50:0A:09:82:96:27:C0:87
zone: vSpherezone
50:0A:09:82:96:27:C0:87; 50:0A:09:82:86:27:C0:87;
vSphereESXserver
zone: z_sw001_002_labserver1_a
a_labserver1; a_sw001_002
alias: a_labserver1
88:88:88:80:88:88:88:88
alias: a_sw001_002
50:0a:09:80:86:27:c0:87
alias: vSphereESXserver
50:01:43:80:00:C1:E7:08
Effective configuration:
cfg: Labswitch1
zone: labfiler
10:00:00:00:c9:4c:0d:f1
50:0a:09:82:86:27:c0:87
50:0a:09:82:96:27:c0:87
zone: vSpherezone
50:0a:09:82:96:27:c0:87
50:0a:09:82:86:27:c0:87
50:01:43:80:00:c1:e7:08
Notice the zone now appear in defined zone configuration but not under effective configuration.
Enable the zoning
sw001:admin> cfgenable "Labswitch1"
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 'Labswitch1' configuration (yes, y, no, n): [no] yes
zone config "Labswitch1" is in effect
Updating flash ...
sw001:admin> cfgshow
Defined configuration:
cfg: Labswitch1
vSpherezone; labfiler; Backuptest; Unix_Server;
z_sw001_002_labserver1_a
zone: labfiler
10:00:00:00:C9:4C:0D:F1; 50:0A:09:82:86:27:C0:87;
50:0A:09:82:96:27:C0:87
zone: vSpherezone
50:0A:09:82:96:27:C0:87; 50:0A:09:82:86:27:C0:87;
vSphereESXserver
zone: z_sw001_002_labserver1_a
a_labserver1; a_sw001_002
alias: a_labserver1
88:88:88:80:88:88:88:88
alias: a_sw001_002
50:0a:09:80:86:27:c0:87
alias: vSphereESXserver
50:01:43:80:00:C1:E7:08
Effective configuration:
cfg: Labswitch1
zone: labfiler
10:00:00:00:c9:4c:0d:f1
50:0a:09:82:86:27:c0:87
50:0a:09:82:96:27:c0:87
zone: vSpherezone
50:0a:09:82:96:27:c0:87
50:0a:09:82:86:27:c0:87
50:01:43:80:00:c1:e7:08
zone: z_sw001_002_labserver1_a
88:88:88:80:88:88:88:88
50:0a:09:80:86:27:c0:87
Notice the zone is now also appeared in effective configuration.
Step to undo the zoning
sw001:admin> cfgremove "Labswitch1","z_sw001_002_labserver1_a"
sw001:admin> cfgshow
Defined configuration:
cfg: Labswitch1
vSpherezone; labfiler;
zone: labfiler
10:00:00:00:C9:4C:0D:F1; 50:0A:09:82:86:27:C0:87;
50:0A:09:82:96:27:C0:87
zone: vSpherezone
50:0A:09:82:96:27:C0:87; 50:0A:09:82:86:27:C0:87;
vSphereESXserver
zone: z_sw001_002_labserver1_a
a_labserver1; a_sw001_002
alias: a_labserver1
88:88:88:80:88:88:88:88
alias: a_sw001_002
50:0a:09:80:86:27:c0:87
alias: vSphereESXserver
50:01:43:80:00:C1:E7:08
Effective configuration:
cfg: Labswitch1
zone: labfiler
10:00:00:00:c9:4c:0d:f1
50:0a:09:82:86:27:c0:87
50:0a:09:82:96:27:c0:87
zone: vSpherezone
50:0a:09:82:96:27:c0:87
50:0a:09:82:86:27:c0:87
50:01:43:80:00:c1:e7:08
zone: z_sw001_002_labserver1_a
88:88:88:80:88:88:88:88
50:0a:09:80:86:27:c0:87
Notice the zone definition disappeared from defined configuration only.
sw001:admin> cfgenable "Labswitch1"
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 'Labswitch1' configuration (yes, y, no, n): [no] yes
zone config "Labswitch1" is in effect
Updating flash ...
sw001:admin> cfgshow
Defined configuration:
cfg: Labswitch1
vSpherezone; labfiler; Backuptest; Unix_Server
zone: labfiler
10:00:00:00:C9:4C:0D:F1; 50:0A:09:82:86:27:C0:87;
50:0A:09:82:96:27:C0:87
zone: vSpherezone
50:0A:09:82:96:27:C0:87; 50:0A:09:82:86:27:C0:87;
vSphereESXserver
zone: z_sw001_002_labserver1_a
a_labserver1; a_sw001_002
alias: a_labserver1
88:88:88:80:88:88:88:88
alias: a_sw001_002
50:0a:09:80:86:27:c0:87
alias: vSphereESXserver
50:01:43:80:00:C1:E7:08
Effective configuration:
cfg: Labswitch1
zone: labfiler
10:00:00:00:c9:4c:0d:f1
50:0a:09:82:86:27:c0:87
50:0a:09:82:96:27:c0:87
zone: vSpherezone
50:0a:09:82:96:27:c0:87
50:0a:09:82:86:27:c0:87
50:01:43:80:00:c1:e7:08
Notice the zone is no longer appears in defined and effective configuration
Delete the zone, aliases
sw001:admin> zonedelete "z_sw001_002_labserver1_a"
sw001:admin> alidelete "a_labserver1"
sw001:admin> alidelete a_sw001_002
sw001:admin> cfgshow
Defined configuration:
cfg: Labswitch1
vSpherezone; labfiler;
zone: labfiler
10:00:00:00:C9:4C:0D:F1; 50:0A:09:82:86:27:C0:87;
50:0A:09:82:96:27:C0:87
zone: vSpherezone
50:0A:09:82:96:27:C0:87; 50:0A:09:82:86:27:C0:87;
vSphereESXserver
alias: vSphereESXserver
50:01:43:80:00:C1:E7:08
Effective configuration:
cfg: Labswitch1
zone: labfiler
10:00:00:00:c9:4c:0d:f1
50:0a:09:82:86:27:c0:87
50:0a:09:82:96:27:c0:87
zone: vSpherezone
50:0a:09:82:96:27:c0:87
50:0a:09:82:86:27:c0:87
50:01:43:80:00:c1:e7:08
The configuration is restored to the original form.
No comments:
Post a Comment