3PAR – Automation/Part IV: Creating SAN zones


Moderator: xyevolve

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

3PAR – Automation/Part IV: Creating SAN zones

Post by admin » Tue May 01, 2012 9:35 pm

3PAR – Automation/Part IV: Creating SAN zones

Author Dung Hoang Khac

The script Generate-SAN-Zones.ps1 takes input from the 2 CSV files generated from scripts in PART II / PART III and generates definition for SAN Zones. Download the script from the code repository

Basically. it generates alias definition for each initiator/target and 1 zone per initiator/target. Examples of definitions are shown in the screenshot below.

The script creates 2 txt files SAN-1.txt and SAN-2.txt. each contains commands to be executed against a given switch using the PS function:

type c:\SAN-1.txt | % { run-plink –chassis <IP-Address-of-SAN-Switch> –username admin –password password –command $_}
You do not have the required permissions to view the files attached to this post.

Post Reply