3PAR – Automating SAN Zone creation

磁盘存储、磁带存储、存储网络架构设备、存储软件等

版主: xyevolve

版面规则
1. 本版是定位于惠普存储产品的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。
回复
admin
网站编辑
帖子: 767
注册时间: 2010年 12月 22日 04:06 星期三

3PAR – Automating SAN Zone creation

帖子 admin » 2012年 5月 1日 21:10 星期二

3PAR – Automating SAN Zone creation

Author Dung Hoang Khac

So with some help from Arnout Verbeken and Derek Parmenter, I now have a better understanding of the CLI commands required for SAN zoning on switches.

Apparently there is no scripting capability on the switches so you need to ssh/putty to the SAN console and do a cut and paste of your CLI commands text file :=)

That’s fine as long as I can get my job done!

Here are the commands needed for SAN Zoning:

Create alias command
Syntax: alicreate “<friendly_name>”, “WWN”
Create alias for both host and storage port
Used in create zone command
Need to have WWN of host and storage port

Create zone comand
Syntax: zonecreate “<zone_name>”, “member[;member;…]”
One zone per host and storage port
Used alias created earlier for friendly names

Create config command
Syntax: cfgcreate “< Config_name>”, “ <zone_name>[;<zone_name>;…]”
One config for all zones
Need to enable it after creation cfgenable “<Config_name>”
Need to save the config cfgsave



Before generating those SAN commands , I’d need to collect WWNs both from Hosts and storage ports. In my environment, I have a C7000 with 16 Blade and a F400 2-nodes controller

So the OA command and the 3PAR Inform CLI command may help here. Here is my generic workflow and I will be working on the coding in the next few days.



Until then, Enjoy!

Example of CLI command

## Alicreate:
## alicreate "name", "WWN"
alicreate "A_GFGV_3PAR_N2S2P3", "22:23:00:02:ac:00:0e:20"
alicreate "A_GFGV_3PAR_N3S1P1", "23:11:00:02:ac:00:0e:20"



## Zonecreate:
## zonecreate "zonename", "member[; member…]"
zonecreate "Z_GFGV_ESX01_P2_GFGV_3PAR_N2S2P3", "A_GFGV_3PAR_N2S2P3; A_GFGV_ESX01_P2"
zonecreate "Z_GFGV_ESX01_P2_GFGV_3PAR_N3S2P4", "A_GFGV_3PAR_N3S2P4; A_GFGV_ESX01_P2"



## cfgcreate
## cfgcreate "cfgName", "member[ ;member…]"
cfgcreate "AOK_FABRIC2", "Z_GFGV_ESX01_P2_GFGV_3PAR_N2S2P3; Z_GFGV_ESX01_P2_GFGV_3PAR_N3S2P4



cfgenable “AOK_FABRIC2”

cfgsave

Workflow
image14.png
您没有权限查看这个主题的附件。

回复