Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Browsing all 1577 articles
Browse latest View live

Simple 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 Article


Perl 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 Article


Image may be NSFW.
Clik here to view.

License 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 Article

Redhat 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 Article

Image may be NSFW.
Clik here to view.

Adding 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 Article


Image may be NSFW.
Clik here to view.

Perk 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 Article

Image may be NSFW.
Clik here to view.

Add 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 Article

1111111111111

111111111111111111111111

View Article


Image may be NSFW.
Clik here to view.

How 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 Article


Change VM's serial number

Hi guys, I have to deploy an automated VMware infrastructure. To made this, Y use SDK library with perl to attack my ESXis servers and create VMs. I need to use the serial number of VMs to identify...

View Article

Image may be NSFW.
Clik here to view.

Vim::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 Article

Image may be NSFW.
Clik here to view.

How to retrieve the network information (NIC) for each VM (perl vim)

Hi,I have this simple code to retrieve the name of all VirtualMachines in my infrastructure (filtered for datacenter) [...other code...] use VMware::VILib;    Opts::add_options(%opts);...

View Article

Locking VMs to specific hosts to prevent migration.

Obviously the forums don't like chrome, had most of this typed then it locked up. Couldn't even do a copy/paste. New at using perl SDK and deal with VMWare. I'm trying to lock down a subset of VMs to...

View Article


Could not connect vcenter ipv6 with perl sdk

I am trying to connect a vcenter which is hosted on ipv6 network through perl sdk but the connect.pl script could not make a connection to the vcenter.I have also tried using the hostname of the...

View Article

Install VMware Tools with VMware Sphere SDK

Can we install VMware tools with VMware Sphere SDK?In vSphere API/SDK Documentation writes follows:  VirtualMachine includes three methods for automating installation and upgrade of VMware...

View Article


remove ghost datastores (contrib script)

using commvault/snapprotect we have very nice backups but more often than not there remain inaccessible nas datastores behind and I got tired of removing them from the esxi cli. So I found the...

View Article

Possible precedence issue with control flow operator at...

this is just a warning, but it is quite irritating. How can we get rid if it?It appears to be in this piece of code: sub get_session_loaded {    my $self = shift;    my $user_agent =...

View Article


createrole.pl

on the forum I found the createrole.pl script (https://developercenter.vmware.com/forums?id=3088#245019) but it does not work: perl createRole.pl --server esxxxx --username root --password xxxxx...

View Article

Globalization - creating non-english language VM

Hi,I am trying to create a VM with French language words.vSphere Client allowing and creating fine, but I am getting below error with Perl API call.Failed to Create virtual machine "fenêtres" due to...

View Article

How can I build my own ViPerlToolKit from the "Perl SDK for vsphere" we can...

Hi there, Did you have any experience on how to build the VIPerlToolKit from the resource here please? What I want to do is to let people get the new APIs in SDK 6.0 by run "ppm install viperltoolkit",...

View Article
Browsing all 1577 articles
Browse latest View live