All,
Looking at creating a hash table from the powercli reference book (luc/alan's) but having some issues.
I am running this command to get the hash table:
$AdditionalConfiguration = Apply-VMHostProfile -entity hostname -ApplyOnly
I get output when i run
$AdditionalConfiguration
Name Value
---- -----
storage.iscsi_iscsiProfile_... bnx2i-bc305b770fd5
storage.iscsi_iscsiProfile_... asdfasfas
network.dvsHostNic["key-vim...
network.dvsHostNic["key-vim...
storage.iscsi_iscsiProfile_... iqn.1998-01.com.vmware:asdfasdfasf
network.dvsHostNic["key-vim...
network.dvsHostNic["key-vim...
storage.iscsi_iscsiProfile_... adfasfasffsadfasd
storage.iscsi_iscsiProfile_... basdfasfas
network.dvsHostNic["key-vim...
storage.iscsi_iscsiProfile_... adsfasfsafd
network.dvsHostNic["key-vim...
BUT when i try to select name it comes out blank?
PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> $AdditionalConfiguration| Select-O
bject Name
Name
----
My ultimate goal would be to have a spreadsheet with hostname, Vmotion ip for DVS, IP for Management, Subnet Masks and be able to read that in and then set the keys. Not being able to even get this key info to pass is a bit troubling though.