vmk2014's Posts

Hi All,  We had a situation where the primary environment has an issue with a key mismatch, the team believes it automatically corrupted the remote copy for recovery. My question is if we have a sev... See more...
Hi All,  We had a situation where the primary environment has an issue with a key mismatch, the team believes it automatically corrupted the remote copy for recovery. My question is if we have a sever copy/snapshot of a known good state, can we inject it into SRM to recover to that state in a remote DR site? If so, how? Thanks vmk    
Hi All, Can we set a threshold alert for IOps per sec (Both read and write) when it goes more than 10000 for the VM through vROPS? I want to send alert notifications through the mail. Kindly help. ... See more...
Hi All, Can we set a threshold alert for IOps per sec (Both read and write) when it goes more than 10000 for the VM through vROPS? I want to send alert notifications through the mail. Kindly help.   Thanks VMK
LucD, Thank you. It worked for me. It was my mistake. Thanks vmk
Hi All, I was trying to find out the unused Lun for reclamation, but it fails to execute with below error, Any help will be much appreciated. https://www.lucd.info/2010/04/09/lun-report-datastores-... See more...
Hi All, I was trying to find out the unused Lun for reclamation, but it fails to execute with below error, Any help will be much appreciated. https://www.lucd.info/2010/04/09/lun-report-datastores-rdms-and-node-visibility/   Thanks vmk
Hi All, Can we identify or pull the report for an ESXi host maintenance mode from vCenter for a particular duration ? Example - How long it has been into maintenance mode in a year.  Thanks vmk
Yes, you are right. It was my mistake. I did refer one of command from your previous post and for got to edit. I corrected it. However, for invoke script. you mean to say like below ?  $result = In... See more...
Yes, you are right. It was my mistake. I did refer one of command from your previous post and for got to edit. I corrected it. However, for invoke script. you mean to say like below ?  $result = Invoke-VMScript -VM $vm -ScriptType Bat -ScriptText $tools | Select -ExpandProperty ScriptOutPut    Thanks vmk  
Thank you. it will work for me. For Bulk VM's. Just i want to confirm if the below code is ok to run using for loop. My apologies for asking.    Get-Module -ListAvailable PowerCLI* | Import-Module ... See more...
Thank you. it will work for me. For Bulk VM's. Just i want to confirm if the below code is ok to run using for loop. My apologies for asking.    Get-Module -ListAvailable PowerCLI* | Import-Module Connect-VIServer -Server serverone -User administrator@vsphere.local -Password mypasword $GetVm=(Get-VM).where{$_.ExtensionData.Config.GuestFullname -match 'Windows'} | select -expand Name | Out-File -FilePath C:\vms.txt $source = "C:\vms.txt" $vms = Get-Content -Path $source foreach ($vmName in $vms) { $tools = Get-WmiObject Win32_Product | Where{$_.Name -eq 'NetworkIntrospection'} msiexec.exe /qn /L*V 'C:\Temp\install.log' /i $tools.LocalPackage REBOOT=ReallySuppress REMOVE=NetworkIntrospection }   Thanks vmk  
Thank you LucD. I'll try and get back to you. Based on this command output. Can we remove or disable the NSX introspection service on the VM using power Cli or PowerShell command ? Thanks again.   ... See more...
Thank you LucD. I'll try and get back to you. Based on this command output. Can we remove or disable the NSX introspection service on the VM using power Cli or PowerShell command ? Thanks again.   vmk
Hi Team, Can we pull from Power Cli script  the list of VM's having network introspection driver (vnetflt.sys) from Linux and windows VM enabled or installed ? Based on that we need to remove using ... See more...
Hi Team, Can we pull from Power Cli script  the list of VM's having network introspection driver (vnetflt.sys) from Linux and windows VM enabled or installed ? Based on that we need to remove using command fltmc unload vnetflt.sys.  We are facing packet drops due to network introspection issue. https://kb.vmware.com/s/article/79185 http://www.vstellar.com/2019/05/16/nsx-guest-introspection-components-configuration/   Thanks vmk
My apologies. I missed out to share the vROPS version details. vROPS 8.1.1.and ESXi 7.0   Thanks VMK
Hi All, Need your help in finding out if we can configure monitoring VxRail ESXI hardware eg. Power supply, DiMMS, etc using vROPS. Any help will be much appreciated. Thanks vmk
Thanks Scott, I can perform first step 1  i.e. shutdown bulks VM's using the script # Part 1 $vmNames = Get-Content -Path .\vmnames.txt $vms = Get-VM -Name $vmNames | where{$_.PowerState -eq 'Po... See more...
Thanks Scott, I can perform first step 1  i.e. shutdown bulks VM's using the script # Part 1 $vmNames = Get-Content -Path .\vmnames.txt $vms = Get-VM -Name $vmNames | where{$_.PowerState -eq 'PoweredOn'} Shutdown-VMGuest -VM $vms -Confirm:$false while((Get-VM -Name $vmNames).PowerState -contains 'PoweredOn'){ sleep 5 } $vms | Select Name | Export-Csv -Path .\vm-powered-off.csv -NoTypeInformation -UseCulture Part 2  https://www.miru.ch/bulk-unregister-register-vms-on-vsphere But i'm looking for specific list of VM's spread across the cluster # Part 4   $vmNames = Import-Csv -Path .\vm-powered-off.csv -UseCulture   Get-VM -Name $vmNames.Name | Start-VM -Confirm:$false
Hi All, I want to perform bulk removal/unregister of VM's from source environment vsphere host 6.0 and Register/add that VM's to the swing host ESXi 7.0. for migration purpose.Steps will like 1) Sh... See more...
Hi All, I want to perform bulk removal/unregister of VM's from source environment vsphere host 6.0 and Register/add that VM's to the swing host ESXi 7.0. for migration purpose.Steps will like 1) Shut down all the VM's gracefully from C:\temp\VMliste 2) Remove VM's from inventory or unregister from source environment i.e. ESXi 6.0 and Register/add that VM's to the swing host ESXi 7.0. for migration purpose. C:\temp\vmliste ( For unregister and registering) is it possible from power cli to perform this task to reduce the downtime ? Any help will appreciated.   Thanks Vmk
Hi All, We are planning to migrate the VM's from vSphere/ESXi (vBlock) host 6.0 to vSphere/ESXi 7.0 u1 (VxRail), just want to know that any prerequisite is there for VMware tools version prior to mi... See more...
Hi All, We are planning to migrate the VM's from vSphere/ESXi (vBlock) host 6.0 to vSphere/ESXi 7.0 u1 (VxRail), just want to know that any prerequisite is there for VMware tools version prior to migration ? We are planning to use Fling tools for cross vCenter migration. Any help will much be appreciated. Thanks vmk      
LucD, I just changed the code adding the $vms = Get-VM  after vcenter connnection, then it works. Does it makes any difference while reducing the time interval from 24 to 2 hours and changing ... See more...
LucD, I just changed the code adding the $vms = Get-VM  after vcenter connnection, then it works. Does it makes any difference while reducing the time interval from 24 to 2 hours and changing the code ? But still it takes time for 2 hours interval. I have attached the code. Thanks v
LucD, But i mentioned in the code for connecting the vcenter and its output is blank. It was working earlier, but when i change the interval to 2 hours, then it throws an error. $encrypted = ... See more...
LucD, But i mentioned in the code for connecting the vcenter and its output is blank. It was working earlier, but when i change the interval to 2 hours, then it throws an error. $encrypted = Get-Content D:\Scripts\scriptsencrypted_paswd_admin.txt | ConvertTo-SecureString $Cred = New-Object System.Management.Automation.PsCredential($userbane, $encrypted) $Cred = New-Object System.Management.Automation.PsCredential($userbane, $encrypted)   $vCenters = (Get-Content "C:\Temp\VC2.txt") Thanks V
LucD, As per your recommendation, i have reduced the time interval to 2 hours, but it throws an error and no output generates. I'm fine with data is aggregated to 2 hour intervals as well ... See more...
LucD, As per your recommendation, i have reduced the time interval to 2 hours, but it throws an error and no output generates. I'm fine with data is aggregated to 2 hour intervals as well Thanks V
Thank you, LucD. I got the output. Yes, runs for a long time for 1 vCenter and i'm planning to run for 5 to 10 vCenter remote sites, Is it possible to reduce the time interval to generate output.... See more...
Thank you, LucD. I got the output. Yes, runs for a long time for 1 vCenter and i'm planning to run for 5 to 10 vCenter remote sites, Is it possible to reduce the time interval to generate output. Is that script hanging or does it run for a very long time? - Yes. Run a test with a smaller scope.- Yes i tried with 1 VC having 350 VM's. Thanks V
Hi All, I'm trying to pull the VM utilization summary report for all the VM's in the below format, but it runs forever without any output. Can some experts help me resolve this issue. Na... See more...
Hi All, I'm trying to pull the VM utilization summary report for all the VM's in the below format, but it runs forever without any output. Can some experts help me resolve this issue. Name vCPU Utilization % (Peak) Utilization % (Avg) Memory (GB) Utilization % (Peak) Utilization % (Avg) Disk Space (GB) Utilization % (Peak) Utilization % (Avg) vNIC Utilization MBps (Peak) Utilization MBps (Avg) # VM Utilisation Summary ### $encrypted = Get-Content D:\Scripts\scriptsencrypted_paswd_admin.txt | ConvertTo-SecureString $Cred = New-Object System.Management.Automation.PsCredential($userbane, $encrypted) $Cred = New-Object System.Management.Automation.PsCredential($userbane, $encrypted) $vCenters = (Get-Content "C:\Temp\VC2.txt") $start = (Get-Date).AddHours(-2) $performance = @() foreach ($vcenter in $vcenters) {   Connect-VIServer $vcenter -Credential $Cred     $vms = Get-VM $performance += Get-Stat -Entity $vms -Start $start -ErrorAction SilentlyContinue | Group-Object -Property {$_.Entity.Name} | Select @{N='VM';E={$_.Name}},     @{N='Cluster';E={(Get-Cluster -VM $_.Name)}},     @{N='CPU(%)';E={"{0:N1}" -f ($_.Group | where{$_.MetricId -eq 'cpu.usage.average'} | Measure-Object -Property Value -Average | select -ExpandProperty Average)}},     @{N='Memory(%)';E={"{0:N1}" -f ($_.Group | where{$_.MetricId -eq 'mem.usage.average'} | Measure-Object -Property Value -Average | select -ExpandProperty Average)}},     @{N='Net(KBps)';E={"{0:N2}" -f ($_.Group | where{$_.MetricId -eq 'net.usage.average'} | Measure-Object -Property Value -Average | select -ExpandProperty Average)}},     @{N='Disk(KBps';E={"{0:N2}" -f ($_.Group | where{$_.MetricId -eq 'disk.usage.average'} | Measure-Object -Property Value -Average | select -ExpandProperty Average)}}    Disconnect-VIServer -Server $vcenter -Confirm:$false }     $performance | Export-Csv D:\script\VMperf.csv
LucD, Does your report shows Data store as  Capacity as 0 GB /Used 0 GB and Data store Free GB as negative ? Any idea why it shows as negative and 0 value for all the datastore  ?     ... See more...
LucD, Does your report shows Data store as  Capacity as 0 GB /Used 0 GB and Data store Free GB as negative ? Any idea why it shows as negative and 0 value for all the datastore  ?     datastore Capacity GB datastore Used GB datastore Free GB 0 0 -39.81 0 0 -16.45 0 0 -39.5 0 0 -4.2 0 0 -4.27 0 0 -44.12 0 0 -59.31 0 0 -68.92 Thanks V