aravinds3107's Posts

I am able to create tenants using SSO account ( administrator @vsphere.local). Is there a way to create additional users account or LDAP/AD groups for the System Administrator role
Installed SRM 5.8 on a separate server from the vCenter, I am accessing the vCenter via webclient from my workstation but I don’t see the SRM icon via webclient. Am I supposed to login to the vCe... See more...
Installed SRM 5.8 on a separate server from the vCenter, I am accessing the vCenter via webclient from my workstation but I don’t see the SRM icon via webclient. Am I supposed to login to the vCenter server or SRM server and connect to webclient to perform the SRM configuration or can it done from workstation? is there any additional component to be installed on the workstation to see the SRM icon.
I am running the following to get some value on the VM,s Need to get the resource pool to which the VM's belongs too. tried using Resourcepool using select but doesnt seems to working Get-VM... See more...
I am running the following to get some value on the VM,s Need to get the resource pool to which the VM's belongs too. tried using Resourcepool using select but doesnt seems to working Get-VM | Select-Object Name,MemoryGB,NumCPU,ResourcePool   @{Name="CPU Limit";Expression={$_.ExtensionData.ResourceConfig.CpuAllocation.Limit}},   @{Name="CPU Reservation";Expression={$_.ExtensionData.ResourceConfig.CpuAllocation.Reservation}},   @{Name="Mem Limit";Expression={$_.ExtensionData.ResourceConfig.MemoryAllocation.Limit}},   @{Name="Mem Reservation";Expression={$_.ExtensionData.ResourceConfig.MemoryAllocation.Reservation}} | Export-CSV C:\Scripts\VM.csv -NoTypeInformation -UseCulture
I dont see the username and password param defined , also when I define vCenter name in parameter, should we need change anything on actual script for Connect-VIServer. I need to get an output fi... See more...
I dont see the username and password param defined , also when I define vCenter name in parameter, should we need change anything on actual script for Connect-VIServer. I need to get an output file with vCenter name in it, so I am checking what changes to be made Attaching the script which I am currently running
I am using a XLSx function to create a a nice excel, now should I declare these parameter in the function [string]$vCenterName, [string]$username, [string]$password Is there any other p... See more...
I am using a XLSx function to create a a nice excel, now should I declare these parameter in the function [string]$vCenterName, [string]$username, [string]$password Is there any other place I would need to include?
I am running a script and configured to prompt me for vCenter name and user credentials. I am looking to key in along with the script, something like below Script.ps1 vCentername username ... See more...
I am running a script and configured to prompt me for vCenter name and user credentials. I am looking to key in along with the script, something like below Script.ps1 vCentername username password Or Use the switch method Script.ps1 –vCenter:vCentername –username:username –password:password
I am getting the below results from the get-vmhost as of now Get-VMHost | Select-Object -Property @{Name="ESXi Host Name";Expression={$_.Name}},       @{Name="Disconnected?";Expression={... See more...
I am getting the below results from the get-vmhost as of now Get-VMHost | Select-Object -Property @{Name="ESXi Host Name";Expression={$_.Name}},       @{Name="Disconnected?";Expression={if($_.ConnectionState -eq "Disconnected"){"Yes"}else{"No"}}},       @{Name="Maintenance Mode?";Expression={if($_.ExtensionData.Runtime.InMaintenanceMode -eq "True"){"Yes"}else{"No"}}},       @{Name ="BIOS Version";Expression={$_.ExtensionData.Hardware.BiosInfo.BiosVersion}}, #Generation of BIOS version depends on the hardware       @{Name ="# of VM's in Swap Volumes";Expression={if$_.VMSwapfileDatastore.ExtensionData.Vm.count}},       @{Name="Uptime above $UptimeDays days?";E={if((New-TimeSpan -Start $_.Extensiondata.Runtime.BootTime.ToLocalTime() -End $Date).Days -gt $UptimeDays){"Yes"}else{"No"}}} |
I am using Get-VMHost
I am using the below one liner to find the VM count in the datastore which is configured for swapfile @{Name ="No of Vm's in Swap Datasore";Expression={$_.VMSwapfileDatastore.ExtensionData.Vm.... See more...
I am using the below one liner to find the VM count in the datastore which is configured for swapfile @{Name ="No of Vm's in Swap Datasore";Expression={$_.VMSwapfileDatastore.ExtensionData.Vm.Count}} I am looking to modify this to check if the datastore is configured for swapfile datastore and if "Yes" provide the VM count and if "No" just display as NA
Sorry Luc I am kind lost, in DRS property we are checking the vMotion rate and based on the value we are writing the output, But for HA, if its enabled the other property gives the result as tru... See more...
Sorry Luc I am kind lost, in DRS property we are checking the vMotion rate and based on the value we are writing the output, But for HA, if its enabled the other property gives the result as true or false, I am unable to get the correct syntax for this testing. Would you mind getting a code for a property  
Thanks Luc, that did the work just a update, is it possible add as "NA" if DRS is disabled instead of just a blank cell. Also I am noticing a similar behaviour when I am looking for HA settings,... See more...
Thanks Luc, that did the work just a update, is it possible add as "NA" if DRS is disabled instead of just a blank cell. Also I am noticing a similar behaviour when I am looking for HA settings, for eg if HA is disabled , I get the HA properties like host monitoring, failover capacity returns value as  “True”. If you could give me a logic to perform the testing for  HA settings, I will try to complete the other part
Thanks Luc, this works perfectly But I am seeing a little weird issue, when the DRS is disabled I get the value for both “DRS Automation Level” and “DRS migration threshold”. Is this not suppose... See more...
Thanks Luc, this works perfectly But I am seeing a little weird issue, when the DRS is disabled I get the value for both “DRS Automation Level” and “DRS migration threshold”. Is this not supposed be a negative value or just show as NA Output when DRS is Disabled Name                    : Cloud-HA vSphere DRS             : Disabled DRS - Automation Level  : FullyAutomated DRS Migration Threshold : Apply priority 1, 2 and 3 Output when DRS is Enabled Name                    : Cloud-HA vSphere DRS             : Enabled DRS - Automation Level  : FullyAutomated DRS Migration Threshold : Apply priority 1, 2 and 3
Luc, Sorry I am not clear even now, I am just looking the corresponding slider value which we get in the vSphere client for the Migration threshold to vMotion rate value For e.g.: If the vMotio... See more...
Luc, Sorry I am not clear even now, I am just looking the corresponding slider value which we get in the vSphere client for the Migration threshold to vMotion rate value For e.g.: If the vMotion rate is 3 – the slider value in GUI is “Apply Priority 1, 2 and 3 recommendation” I am working on a reporting where I have a column as below Cluster Namw DRS Migration Threshold Cluster1 Apply Priority 1, 2 and 3 recommendation Cluster2 Apply Priority 1 and 2 recommendation
Just want to display them...
It doesnt provide me any output.. Based on the script above I think only when there is a recommendation triggered, it provides the output, Is it correct?
I am able to get the DRS Threshold migration value from the below, $cluster.ExtensionData.ConfigurationEx.DrsConfig.VmotionRate Depending on the value I want to write the output something l... See more...
I am able to get the DRS Threshold migration value from the below, $cluster.ExtensionData.ConfigurationEx.DrsConfig.VmotionRate Depending on the value I want to write the output something like below If value is 3 = Apply Priority 1,2 and 3 If value is 2 = Apply Priority 1,2,3 and 4 Any help?
@ LucD - Can you take a look at the script which I have pasted above and tell me whats wrong as I am not able to get this part woking
I have tried to modify the script as below, it displays the output on the screen but there is the CSV file is empty... tried the same with one more script which I am using it works fine there, ca... See more...
I have tried to modify the script as below, it displays the output on the screen but there is the CSV file is empty... tried the same with one more script which I am using it works fine there, can u tell wht i am doing wrong here $report = @() &{foreach($role in Get-VIRole){     Get-VIPrivilege -Role $role -ErrorAction SilentlyContinue |     Select @{N="Role";E={$role.Name}},@{N="Assigned Privileges";E={$_.ID}} }} &{foreach($row in $report){         if($prevRole -and $row.Role -eq $prevRole){             $role = ""         }         Else{             $role = $prevRole = $row.Role         }         New-Object PSObject -Property @{             Role = $role             "Assigned privileges" = $row."Assigned Privileges"         }     }} | Select "Role","Assigned Privileges" | Export-CSV "C:\Scripts\role.csv
Thanks Luc, I did check that but the problem what I see here is to specify the range for the cells to be merged. Also we are exporting the report to a CSV and using the conversion script to bl... See more...
Thanks Luc, I did check that but the problem what I see here is to specify the range for the cells to be merged. Also we are exporting the report to a CSV and using the conversion script to blank the role, Want to know if its possible to store the output to an object and then manipulate the data as required.
I am using the script along with the Export-XLSx function, Is it possible to merge the cell for which the rows are all same , instead of just blanking them out.I have come across Merge method, bu... See more...
I am using the script along with the Export-XLSx function, Is it possible to merge the cell for which the rows are all same , instead of just blanking them out.I have come across Merge method, but I think we have to specify a range for the merge. Is it possible to achieve this here?