Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created May 26, 2017 13:02
Show Gist options
  • Save bobalob/1ef5c147c96dff645ffd28a7911c7fec to your computer and use it in GitHub Desktop.
Save bobalob/1ef5c147c96dff645ffd28a7911c7fec to your computer and use it in GitHub Desktop.
$connectionStringPri = @{
"Username"="admin";
"Password"="password";
"SpaIpAddress"="192.168.50.1";
"SpbIpAddress"="192.168.50.2";
"Port"="443";
"UserFriendlyName"="Primary SAN"
};
$connectionStringSec = @{
"Username"="admin";
"Password"="password";
"SpaIpAddress"="192.168.51.1";
"SpbIpAddress"="192.168.51.2";
"Port"="443";
"UserFriendlyName"="Secondary SAN"
};
[Array]$sanArray = (
$connectionStringPri,
$connectionStringSec
)
[Array]$targetLuns = (
"LUN1",
"LUN2",
"LUN3"
)
. .\VNX-Snaps.PS1 -expireDays 3 -targetLuns $targetLuns -sanArray $sanArray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment