Can't install vSphere SDK for Perl on Linux
I'm trying to install the SDK on a Dell Inspiron 9300 laptop with Ubuntu 9.10 Desktop as the operating system. This computer is not connected to the internet, it is on an internal network. I'm...
View ArticleSimple Perl code to get VM parent host
Hello, I am struggling with the object usage in perl; my goal is to pass a VM name as parameter and return some information of the ESXi parent host: use strict;use Data::Dumper;use VMware::VIRuntime;#...
View ArticlePerl SDK 6.5 and Vsphere
Hello,We are using a Perl script which querry the VCenter and collect the VM annotation property. But we want to change and collect the tags of the VM. But (thanks to this forum) apparently you can use...
View ArticleLicense of vSphere SDK for Perl
Dear all.I want to know what kind of license of vSphere SDK for Perl (for example: GNU, GPL ...), but I cannot find it anywhere in the Internet.Do anyone know where to get this information.Thank you
View ArticleRedhat 7.3 Perl SDK break python libs
Hello, after we are installing per sdk, ansible and other python related tools are broken. So you has to rm the file /usr/bin/six.pyc. I installed VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.tar.gz So...
View ArticleAdding a disk using SDRS
Hello, I'm trying to add a disk to a VM using SDRS. Here's my piece of code: my ($vm, $sp, $controllerKey, $unit, $disksize) = @_ my $disk_backing_info =...
View ArticlePerk SDK script returns nothing
I'm trying to configure Icinga to monitor my VMware environment and I've hit a wall. I am using Ubuntu 16.4 LTS as the base OS. I've installed all of the perl modules for the SDK and installed the SDK....
View ArticleAdd VM to DRS Rule
I am working on a script and a PowerCLI commandlet seems to already be written for it. The script adds an existing vm to an existing DRS Rule. Here is the code for the commandlet I would like to...
View ArticleHow vmware mob is implemented?
I need to redesign our existing perl code, currently we look for objects like VM and Hosts using the name then make vix call to get the object reference this approach is slow in some environments.We...
View ArticleHow to retrieve the value from a custom field
Hello @all. In my vCenter I've created a custom field "email". The value for this field is set to the e-mail address of the operator a VM belongs to. I like to retrieve these values in a perl script....
View ArticleVim::find_entity_view in vSphere 6.5
Hi folks, we have installed our first vCenter 6.5 appliance and now a script that ever worked without any problems doesn't work anymore.The PerlSDK is still on 6.0, but I can not believe that they did...
View ArticleProblem using vSphere™ SDK for Perl instead of VI Perl Toolkit 1.6
We are currently running VI Perl Toolkit 1.6 on SLES 10 SP1 64bit. When I run a test query using 1.6 I get the expected result. When I uninstall 1.6 and install vSphere SDK for Perl and run the same...
View Articlenew to perl SDK, can i use 6.0 sdk to contact and do things with esxi 6.5
Hell all, I am new to perl sdk, i am wondering if i can use sdk 6.0 with esxi version 6.5
View Articletrouble matching snapshot
I have these 2 subroutines:sub _remove_snap { my ( $vm ) = @_; # skip if no snapshots on vm unless ( defined $vm->snapshot ) { print $vm->name . " has no snapshots, skipping\n";...
View ArticleHow to remove permission for vm with perl script?
I can learn how to assign permission for vm from this post:https://communities.vmware.com/thread/247038But, i want to RemoveEntityPermission of vm for some user account, any idea? Thanks.
View ArticleAssign IP to a Windows VM via API
Hi, Can someone guide me on how we can assign ip to a Windows VM dynimically i.e., assigning IP later point of time after initial customization using API or any other alternate method? Thanks
View ArticleUnexpected arguments while elevating FolderOperations::CreateFolder subroutine
Hi! We have vCenter v6.0 installation and i'm trying to write a Perl script. One part of this script should create a folder. For example - called "123"Here is the perl code I wrote:$folder =...
View ArticleInstall VMWare Perl SDK on Debian 9
Dear All I try to install VMWare Perl SDK 5.5 and I also tried 6.5 on Debian9 so I'm able to monitor it over Nagios. But the installation always fails with:Openssl-devel is not installed on the...
View ArticleTutorial: Create inventory tree using vSphere SDK for Perl
Hi everyone, I wrote a short tutorial on obtaining vSphere inventory items in a tree-like structure using Perl SDK. It's not difficult, however I hadn't been able to find one so I felt like sharing it....
View ArticleTutorial: Get VM performance data using vSphere SDK for Perl
Hi, I turned one of my older scripts into another tutorial. This time it will be about querying and obtaining performance data using the Perl SDK....
View Article