3PAR – Automation/Part IV: Creating SAN zones
发表于 : 2012年 5月 1日 21:35 星期二
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 $_}
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 $_}