markdjones82's Posts

LUC,   But does it actually export values? IE I want to make a static list from this list that I can put in a script and then loop through and set all of them: PowerCLI C:\> $esxcli.networ... See more...
LUC,   But does it actually export values? IE I want to make a static list from this list that I can put in a script and then loop through and set all of them: PowerCLI C:\> $esxcli.network.firewall.ruleset.list.Invoke() Enabled Name ------- ---- true    sshServer false   sshClient false   nfsClient false   nfs41Client true    dhcp true    dns true    snmp true    ntpClient true    CIMHttpServer true    CIMHttpsServer true    CIMSLP false   iSCSI true    vpxHeartbeats true    updateManager true    faultTolerance true    webAccess true    vMotion true    vSphereClient true    activeDirectoryAll true    NFC true    HBR false   ftpClient false   httpClient false   gdbserver false   DVFilter true    DHCPv6 true    DVSSync true    syslog true    WOL false   vSPC false   remoteSerialPort false   rdt false   cmmds false   vsanvp true    rabbitmqproxy false   ipfam false   vvold true    iofiltervp false   esxupdate false   vsanEncryption false   pvrdma false   vsanhealth-multicasttest
Is there a way to take an existing host and save an argument list out so I can add it to a script?   IE something that can create the argument list for me with the hashtable?
  I was trying to figure out what I was missing. It goes through each HBA with the loop though?  It does show the correct paths for some hosts, but other it doesn't and it is strange.  I can prov... See more...
  I was trying to figure out what I was missing. It goes through each HBA with the loop though?  It does show the correct paths for some hosts, but other it doesn't and it is strange.  I can provide an example if needed. I ran it and its showing 0 for everything?  It is trying to match name, but that gives a device name. VMHost             HBA    Cluster     Active Dead Standby ------                                    ---    -------     ------ ---- ------- appvmware442 vmhba1 CLU23 0      0    0 appvmware442 vmhba2 CLU23 0      0    0
All, We have a script we were planning to use to find dead, standby, and active paths, but it doesn't seem to match up to the gui every time.  Any idea why?  Is this cmdlet out of date? $re... See more...
All, We have a script we were planning to use to find dead, standby, and active paths, but it doesn't seem to match up to the gui every time.  Any idea why?  Is this cmdlet out of date? $results= @() foreach ($VMHost in $VMHosts) { ##   Get-VMHostStorage -RescanAllHba -VMHost $VMHost | Out-Null [ARRAY]$HBAs = $VMHost | Get-VMHostHba -Type "FibreChannel"       foreach ($HBA in $HBAs) {     $pathState = $HBA | Get-ScsiLun | Get-ScsiLunPath | Group-Object -Property state     $pathStateActive = $pathState | ? { $_.Name -eq "Active"}     $pathStateDead = $pathState | ? { $_.Name -eq "Dead"}     $pathStateStandby = $pathState | ? { $_.Name -eq "Standby"}     $results += "{0},{1},{2},{3},{4},{5}" -f $VMHost.Name, $HBA.Device, $VMHost.Parent, [INT]$pathStateActive.Count, [INT]$pathStateDead.Count, [INT]$pathStateStandby.Count     } } ConvertFrom-Csv -Header "VMHost","HBA","Cluster","Active","Dead","Standby" -InputObject $results | Ft -AutoSize
All, I am a little stumped by this, but essentially we are trying to create our own OVF because we need virtual hardware 10 instead of version 11 to use William Lam's script here: Deploying Ne... See more...
All, I am a little stumped by this, but essentially we are trying to create our own OVF because we need virtual hardware 10 instead of version 11 to use William Lam's script here: Deploying Nested ESXi is even easier now with the ESXi Virtual Appliance | virtuallyGhetto I have created a VM and added the properties for guest.info just like he has in the screenshots, but when I export the OVF it and try to use hte Get-OVFconfiguration it does not show those parameters.  Anyone have an idea? PowerCLI C:\TEMP\esx> Get-OvfConfiguration .\esx.ovf ========================= OvfConfiguration: esx.ovf Properties: ———– NetworkMapping
Hey all we are running VROPS 6.2 and we have a large environment 10000 VM's.  The problem with the environment view is that it shows everything.  Is there a way to restrict that view to the objec... See more...
Hey all we are running VROPS 6.2 and we have a large environment 10000 VM's.  The problem with the environment view is that it shows everything.  Is there a way to restrict that view to the object you are clicking, say an individual Vcenter?
NM, i know why I had duplicates I had it printing out $row to show me informaton lol this is resolved
Oh and where was that post that Luc had posted about formatting properly? He had a little script too that would add the <p> formatting?
All, I am writing a script to list deployment times of VM's and I am getting an error when trying to create the report.  I got it working, but it is displaying the event twice and i'm not sure w... See more...
All, I am writing a script to list deployment times of VM's and I am getting an error when trying to create the report.  I got it working, but it is displaying the event twice and i'm not sure why Name                            Date                                                  Minutes                        Seconds ----                            ----                                                  -------                        ------- TestEvent2                      11/6/2015 9:55:55 AM                                        1                             42 TestEvent                       11/6/2015 9:10:17 AM                                        1                             56 TestEvent2                      11/6/2015 9:55:55 AM                                        1                             42 TestEvent                       11/6/2015 9:10:17 AM                                        1                             56 $events = Get-VIEvent -maxsamples 500| where {$_.Gettype().Name -eq "VmBeingDeployedEvent" -or $_.gettype().name -eq "VmDeployedEvent"} $VMDeployReport = @() $events | where {$_.Gettype().Name -eq "VmBeingDeployedEvent"} | % {   $row = "" | Select Name, Date, Minutes, Seconds   $chainidkey = $_.chainid   $VmName = ($_.FullFormattedMessage).split('')[1]   $deployed = $events | where {$_.gettype().name -eq "VmDeployedEvent" -and $_.Chainid -eq $chainidkey}   $StartTime = $_.createdtime   #$date = $deployed.CreatedTime.ToString().split('')[0]   $endtime = $deployed.createdtime   $time = New-TimeSpan -start $starttime -end $endtime   $row.Name = $VmName   $row.date = $StartTime   $row.Minutes = $time.Minutes   $row.Seconds = $time.Seconds   $row   $VMDeployReport += $row   }   $VMDeployReport
That did the trick, i was actually just putting a portion of my code in here as an example.  Thanks for the help!
Ah I see, so basically without the begin and process my code is running in "begin"?
Ok I have a function where I am trying to go through a bunch of vmhosts, but when i pass say get-vmhost for all hosts and print out $vmobject it only lists the first object.  What am I missing on... See more...
Ok I have a function where I am trying to go through a bunch of vmhosts, but when i pass say get-vmhost for all hosts and print out $vmobject it only lists the first object.  What am I missing on the parameter part? function host_info { param (   [CmdletBinding()]   [Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelinebyPropertyName=$True)]   $VMObject   )      $vmobject }
Well the host list does not actually have the host name attached.  I am pulling the information from UCS where the service profiles do not have FQDN.  So, i want it to try and test the get-vmhost... See more...
Well the host list does not actually have the host name attached.  I am pulling the information from UCS where the service profiles do not have FQDN.  So, i want it to try and test the get-vmhost for success and if it is then append that domain to hostname and run the get-vmhost.  I did get it working with an if /elseif statement and think I can convert it to switch.  Thanks for responding Luc!
All, I am trying to take a hostname without FQDN and then say if get-vmhost works then set a variable to $vmhost, if it fails then do the next.  I can do an if statement, but was trying to unde... See more...
All, I am trying to take a hostname without FQDN and then say if get-vmhost works then set a variable to $vmhost, if it fails then do the next.  I can do an if statement, but was trying to understand the switch statement as I may have multiple values beyond a couple as far as domains go.  I am unsure if this syntax of logic is correct.  Any help? switch ($hostlist.hostname)   {   {Get-VMHost $_+"test.com"} { $vmhost = Get-VMHost $_+"test.com"}   {Get-VMHost $_+"test2.com"} { $vmhost = Get-VMHost $_+"test2.com"}   }
Renaming of a cluster should not affect anything that I am aware of.  The API's use UUID's for objects when communicating between products.  The name is really just used for the GUI and things li... See more...
Renaming of a cluster should not affect anything that I am aware of.  The API's use UUID's for objects when communicating between products.  The name is really just used for the GUI and things like Powercli scripts.
There is significant performance improvements when moving to the VMXNET3, but if you aren't seeing any issues it probably is ok to leave as is and just change as you refresh. If you found this... See more...
There is significant performance improvements when moving to the VMXNET3, but if you aren't seeing any issues it probably is ok to leave as is and just change as you refresh. If you found this helpful, please respond so
I don't know about all of some of the historical context you mentioned, but working through ESX for years WWPN's is what you would always use for the masking/zoning.  WWNN's aren't really used in... See more...
I don't know about all of some of the historical context you mentioned, but working through ESX for years WWPN's is what you would always use for the masking/zoning.  WWNN's aren't really used in ESXi for masking/zoning and they may have been used in another context at one point.  The WWNN for each port is basically because you are on 1 card, but yes they technically are independent of each other. If you found this helpful please mark it in the thread
Since they are only 1 GB, I would use 1/2 for MGMT and VMotion and 3/4 for the VM traffic.  If you had 10 GB links I wouldn't be so concerned. You could put them all on 1 vswitch, but then yo... See more...
Since they are only 1 GB, I would use 1/2 for MGMT and VMotion and 3/4 for the VM traffic.  If you had 10 GB links I wouldn't be so concerned. You could put them all on 1 vswitch, but then you would have to set the active vnics per port group so having the 2nd vswitch does make it a little easier.  If you found this helpful please mark so.
I will 2nd Richard's options and think the V2V with only converting the 2nd partition and then using that VMDK as an attachment.  Not the cleanest way ot go about it, but it should work given you... See more...
I will 2nd Richard's options and think the V2V with only converting the 2nd partition and then using that VMDK as an attachment.  Not the cleanest way ot go about it, but it should work given your original system isn't using any pointers etc with the app.
You would need to create it as a VMFS datastore not present it directly to the Windows guest VM.  When you create the VMFS datastore you would just place for VM's running on top of that. Link bel... See more...
You would need to create it as a VMFS datastore not present it directly to the Windows guest VM.  When you create the VMFS datastore you would just place for VM's running on top of that. Link below is how to create the datastore. VMware vSphere 5.1 If you were wanting ot create a "file share" you could run a linux VM and create a VMDK with something like Freenas as stated above. If you found this helpful please mark as helpful.