kluken's Posts

Yes, but I was populating it line by line, it seems if I directly fill $nodelist with Get-Cluster $cluster | Get-VMHost it works, so somehow me constructing the comma delimited string casues it t... See more...
Yes, but I was populating it line by line, it seems if I directly fill $nodelist with Get-Cluster $cluster | Get-VMHost it works, so somehow me constructing the comma delimited string casues it to not work. I will use the direct fill as you demonstrated instead. Thanks!
Same version 5.1 R2
Tried your suggestion $datastorelist = Get-Datastore -Name $arrayname -VMHost (Get-VMHost -Name $nodelist) and same error. At least I have a work around for now with $datastorelist = (Get-Clus... See more...
Tried your suggestion $datastorelist = Get-Datastore -Name $arrayname -VMHost (Get-VMHost -Name $nodelist) and same error. At least I have a work around for now with $datastorelist = (Get-Cluster $cluster | Get-VMHost) | Get-Datastore -Name $arrayname
OBN?? I will try that, but in the mean time I tried this and this works: $datastorelist = (Get-Cluster $cluster | Get-VMHost) | Get-Datastore -Name $arrayname
$arranyname has the string of the datastore names we are filtering, our datastore names start with the arrarty name so the varibale contains "dsarray*"  so that any datastores not ont he sane wil... See more...
$arranyname has the string of the datastore names we are filtering, our datastore names start with the arrarty name so the varibale contains "dsarray*"  so that any datastores not ont he sane will get filtered out. The errors seems to be with the $nodelist variable. I suspect it has to do witht he fact that the string variable has commas in it, but I hav etied putting ' infront of the commas when formatting the string variable. The error looks like it is gettingt the sting passed to it correctly.
So I am writing a powercli scrip that will take a cluster name and with a filter enumerate all the datastores on the cluster that are on our SAN. It will then snap the VMs so that I can issue a S... See more...
So I am writing a powercli scrip that will take a cluster name and with a filter enumerate all the datastores on the cluster that are on our SAN. It will then snap the VMs so that I can issue a SAN snap. I am rather new to powershell so I realize this may not be the cleanest of scripts, but the main issue I am having is with this line: $datastorelist = Get-Datastore -Name $arrayname -VMHost $nodelist Any help would be greatly appreciated, thanks! If I write the $nodelist to the screen it is formatted correctly and if copy the contents of $nodelist and hard code it into the parameter it works fine, but passing the string creates the following error: Get-Datastore : 5/13/2013 8:26:29 AM    Get-Datastore        Could not find DatastoreRelatedObjectBase with name 'vh110 1119.mydomain.com,vhost20.mydomain.com,vhost18.mydomain.com,vhost02.mydomain.com,vhost03.mydomain.com,vhost04 .mydomain.com,vhost05.mydomain.com'. At E:\Program Files\3par scripts\vmsnaps.ps1:64 char:32 +     $datastorelist = Get-Datastore <<<<  -Name $arrayname -VMHost $hostlist     + CategoryInfo          : ObjectNotFound: (vhost19.mydom...05.mydomain.com:String) [Get-Datastore], VimException     + FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_ObjectNotFound,VMware.VimAutomation.ViCore.Cmdle    ts.Commands.GetDatastore The scrip defines some variables and loads them, then calls  FindNode then QueryDatastores Function FindNodes #This function will take cluster and enumerate it to the hosts wthin it and add them to a comma delimited string {   Write-Host   Write-Host Enumerating cluster nodes in $cluster cluster....   #$nodes = Get-VMHost -Location $cluster   $nodes = Get-Cluster $cluster | Get-VMHost   Write-Host Found $nodes.Length nodes in cluster   foreach ($i in $nodes) {   $i.name   $nodelist = $nodelist +","+$i.name   $script:nodelist = $nodelist   }   $script:nodelist = $nodelist.substring(1) } Function QueryDatastores # This function will enumerate the datastores on the given cluster that start with the $arrayname variable. {   Write-Host   Write-Host Enumerating datastores on $cluster cluster, please wait.....   Write-Host $nodelist   $datastorelist = Get-Datastore -Name $arrayname -VMHost $nodelist   Write-Host Found $datastorelist.Length datastores in $cluster cluster   foreach ($i in $datastorelist) {   $i.name   } } Clear-Host Write-Host Write-Host Loading Powercli.... Add-PSSnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue Write-Host Connecting to $vcenter "please wait...." connect-viserver -server $vcenter FindNodes QueryDatastores
I am seeing similr issues, but at different points in R2. Just installing SNMP I had it freeze, on another doing network settings and saving the settings. A third server just hung copying files. ... See more...
I am seeing similr issues, but at different points in R2. Just installing SNMP I had it freeze, on another doing network settings and saving the settings. A third server just hung copying files. 2 of these are on a ESXi 4 box the other is on a ESX 4 cluster.
I have open cases with HP (totally useless support from them, no wonder we switched to Dell) and VMware I get a lot of finger pointing. We get this on DL585G2 running ESX 3.5 U4 and ESX 4.0 one... See more...
I have open cases with HP (totally useless support from them, no wonder we switched to Dell) and VMware I get a lot of finger pointing. We get this on DL585G2 running ESX 3.5 U4 and ESX 4.0 one runs HP 8.20 the other 8.25
I love the Internet! This posting help me get ESX Console backups in Commvault 8.0 running in no time! I took the liberty to simplifiy this a tad so you don't have to track host and password in... See more...
I love the Internet! This posting help me get ESX Console backups in Commvault 8.0 running in no time! I took the liberty to simplifiy this a tad so you don't have to track host and password in multipls locations and it reflects the locatiosn for Simpana 8.0 install. Also for those of you like me that come from a Windows world and Linix is dirty word, I learned a few other key things. First don't write the script on Windows and upload it to Linux, us VI in Linux. If you do somehow use a script you wrote on windows box and get error such as bad interpreter no such file errors then run this handy perl command agaisnt your script (again I love goggle and the internet): perl -i -pe's/\r$//;' &lt;file name here&gt; prebackup.sh #!/bin/bash prebackup.sh* # Called by CommVault prior to backup to snapshot VM to be backed up* Unset this var to prevent non-zero error in CV* LD_LIBRARY_PATH= #Which VM are we snapshoting (passed as 1st argument)? VM=$1 ESXHOST="myesxserver" ESXPASSWORD="myesxpassword" Find out the moref value of this VM* MOREF=`vcbVmName -h $ESXHOST -u root -p $ESXPASSWORD -s name:$VM | grep moref | cut -f2 -d:` Now do snapshot* /usr/sbin/vcbSnapshot -h $ESXHOST -u root -p $ESXPASSWORD -c moref:$MOREF $snap* postbackup.sh postbackup.sh* Called by CommVault after backup to remove snapshot of VM backed up* #!/bin/bash Which VM are we removing the snapshot for (passed as 1st argument)?* #Unset this var to prevent non-zero error in CV Find out the moref value of this VM* Find out the SSID of the snapshot* LD_LIBRARY_PATH= #set your esxhost and password ESXHOST="myesxserver" ESXPASSWORD="myesxpassword" VM=$1 MOREF=`vcbVmName -h $ESXHOST -u root -p $ESXPASSWORD -s name:$VM | grep moref | cut -f2 -d:` *SSID=$(/usr/sbin/vcbSnapshot -h $ESXHOST -u root -p $ESXPASSWORD -f moref:$MOREF $snap | grep SsId | cut -f2 -d:) Now remove snapshot* /usr/sbin/vcbSnapshot -h $ESXHOST -u root -p $ESXPASSWORD -d moref:$MOREF ssid:$SSID
I too have been looking for more tests, but my guess is Intel Quads are really finely tune CPUs. even with the FSB penalty to memeory I think the big per clock advantage Intel has mey give thema ... See more...
I too have been looking for more tests, but my guess is Intel Quads are really finely tune CPUs. even with the FSB penalty to memeory I think the big per clock advantage Intel has mey give thema slight edge right now. Had AMD released say 2.6 ort 2.8GHz Quads then I woudl easly say AMD. If you look at some of the app benchmarks the AMD L3 implementation imposes some latency that negates some of the onboard memory controller advantages. So it comes down to are the Intel clock advanatges good enough to offset the sligth advantage the AMD as in memeory access.