beautypg.com

Adding multiple virtual connect manager – HP OneView for Microsoft System Center User Manual

Page 19

background image

Adding multiple Virtual Connect Manager

This sample script uses a CSV (comma separated values) file to add three Virtual Connect Domains
to the DMS.

Sample CSV file (vcdomains.csv)

Address,Username,Password
192.168.12.34,vs,password1
192.168.12.35,Administrator,password2
192.168.12.36,vs,password1

Sample script

$items = Import-CSV ".\vcdomains.csv"
foreach ($item in $items)
{
"Adding " + $item.Address + " ..."
Add-VirtualConnectManager -Address $item.Address -Username $item.Username -Password $item.Password
}

Sample PowerShell Scripts

19