Monday, May 31, 2010

how to do zoning

Cookbook to create a zone and add it to a config

01. Create the alias for the Device WWNs

 swd77:admin> alicreate "ET_CM0_CA0_P1", "21:40:00:0b:5d:6a:05:82"
swd77:admin> alicreate "test1_fcd0", "50:01:43:80:03:3a:86:ca"

02. Create a new zone called test1

 swd77:admin> zonecreate "test1", "ET_CM0_CA0_P0;test1_fcd0"

03. Add the zone to SAN0 config

 swd77:admin> cfgadd "SAN0", "test31"

04. Save the zone to flash memeory

 swd77:admin> cfgsave

05. Enable the modified configuration

 swd77:admin> cfgenable SAN0

06. Verify the zone

 swd77:admin> zoneshow
Defined configuration:
cfg: SAN0 aembwpd1; aemtest3
zone: aembwpd1
Aembwpd1_P0; ET_CM0_CA0_P0
zone: test1
ET_CM0_CA0_P0; aemtest3_fcd0
alias: Aembwpd1_P0
50:01:43:80:02:9a:92:f0
alias: ET_CM0_CA0_P0
20:40:00:0b:5d:6a:05:82
alias: ET_CM0_CA0_P1
21:40:00:0b:5d:6a:05:82
alias: test1_fcd0
50:01:43:80:03:3a:86:ca

Effective configuration:
cfg: SAN0
zone: aembwpd1
50:01:43:80:02:9a:92:f0
20:40:00:0b:5d:6a:05:82
zone: test1
20:40:00:0b:5d:6a:05:82
50:01:43:80:03:3a:86:ca

switchshow command

switchshow [-portcount | -iscsi]

swd77:admin> switchshow -portcount
FC ports = 24

swd77:admin> switchshow
switchName: swd77
switchType: 71.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:05:1e:9b:db:72
zoning: ON (SAN0)
switchBeacon: OFF

Area Port Media Speed State Proto
=====================================
0 0 id N4 Online F-Port 50:01:43:80:02:9a:92:f0
1 1 id N4 Online F-Port 50:01:43:80:02:9a:92:4c
2 2 id N4 Online F-Port 50:01:43:80:03:3a:86:ca
3 3 id N4 No_Light
4 4 id N4 No_Light
5 5 id N4 No_Light
6 6 id N4 No_Light
7 7 id N4 Online F-Port 20:40:00:0b:5d:6a:05:82
8 8 id N4 No_Light
9 9 id N4 No_Light
10 10 id N4 No_Light
11 11 id N4 No_Light
12 12 id N4 No_Light
13 13 id N4 No_Light
14 14 id N4 No_Light
15 15 id N4 Online F-Port 21:40:00:0b:5d:6a:05:82
16 16 -- N8 No_Module (No POD License) Disabled
17 17 -- N8 No_Module (No POD License) Disabled
18 18 -- N8 No_Module (No POD License) Disabled
19 19 -- N8 No_Module (No POD License) Disabled
20 20 -- N8 No_Module (No POD License) Disabled
21 21 -- N8 No_Module (No POD License) Disabled
22 22 -- N8 No_Module (No POD License) Disabled
23 23 -- N8 No_Module (No POD License) Disabled

To delete an alias

 Switch1:admin> alidelete "test1_fcd0"

To Delete a Zone

 Switch1:admin> zonedelete "test01"

To remove test4 zone from configuration SAN1

 Switch2:admin> cfgremove "SAN1", "test4"

No comments:

Post a Comment