Hi,
I am a newbie to vsphere SDK for perl. Just started using it for automation a month back. I was looking for options to automate addition of ESXi hosts and their physical adapters to distributed virtual switch. I did get some details on how to do add using powerCLI. However, my requirements are in using vsphere SDK for perl. Any help would be appreciated.
You definitely can do it in Perl. I don't have a working example, but maybe William will when he catches this thread
If I get some free time tomorrow, I'll try to put something together to get you started, but you can also just map out the logic from LucD's script.
Basically Get-View is equivalent to Vim::get_view() and the New-Object calls would need to be mapped to the object type in Perl For example, instead of New-Object VMware.Vim.DVSConfigSpec, it would be $spec = DVSConfigSpec->new( );
You definitely can do it in Perl. I don't have a working example, but maybe William will when he catches this thread
If I get some free time tomorrow, I'll try to put something together to get you started, but you can also just map out the logic from LucD's script.
Basically Get-View is equivalent to Vim::get_view() and the New-Object calls would need to be mapped to the object type in Perl For example, instead of New-Object VMware.Vim.DVSConfigSpec, it would be $spec = DVSConfigSpec->new( );
Hi,
Thanks for the response. I tried to map the logic from lucD's script to vsphere SDK for perl. It's working perfectly. Thanks for the suggestion.
Regards,
Pranesh