Like to create a python script for vmware which can list all the Linux VM and add it to DrsClusterGroup.
This is a power shell command I use now. But i need to write it with python SDK of vmware.
# Get RHEL VMs.
Get-Cluster "PRD100" | Get-vm |Where{$[login to view URL] -match 'Red Hat'} | Select-Object Name | Export-CSV C:\Sathya\[login to view URL]
# Adding VM to
foreach($line in Get-Content C:\Sathya\[login to view URL])
{
Write-Host $line
$line1 = $line -replace '"', ""
Set-DrsClusterGroup -DrsClusterGroup RHEL -VM $line1 -Add
}
Hello!
I am a python developer.
I looked at your project and it seems interesting.
I have good experience in python and I am an expert in it.
I have all necessary skills required to be a good developer. I am interested in your.
Please check my portfolio and reviews.
Ping me to discuss in detail. Waiting for you response.