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

vMA to restart VMs

Hi All,        Does any one have a perl script that restarts VMs on a particular host ( a host that is different from the original host or the source host). I do not want to use vMotion, but want to...

View Article


List VM name and the cluster it is running on into a CSV

Hi, I want to have a CSV created which will conaitn 2 fields: vm_name, vm_custerMeaning, i want to list the VM's name and the cluster it is running on in a CSV. here the code i hve written:...

View Article


creatClusterEx fails with "A specified parameter was not correct"

Hi All, I am trying to create a new cluster on a vCenter using the creatCluster method. The commands fails with "A specified parameter was not correct" error message.I call the method like...

View Article

VMware:VmaTargetLib asking for username and password

Greetings, My sys info: Running vCenter v5.0 and using the Perl SDK on a vMA v5.0.0.2 vApp server. I am trying to modify a perl script to automatically connect to our vCenter server instead of having...

View Article

Problems cloning with the VMWare SDK Perl scripts

I am new to the SDK. I loaded the 5.0 version of the SDK Perl scripts. I am trying to clone a VM but I want it to clone to another datacenter and esxihost. I can get it to clone locally if I do not...

View Article


manage drs rule groups

Hi, I want to manage my drs rule groups via perl api.Has somebody sample code to add a new rule group and to add a vm to the rule group? Here my code for listing the rule groups for a given cluster:...

View Article

To create multiple NICs

In order to create multiple NICs for the same VM for Data Object "VirtualDevice" (this URL http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.vm.device.VirtualDevice.html#key),...

View Article

Change Nic state (connect/disconnect) for VM in perl

Hi, can anyonone give some hints, how to change following nic states of a vm. - connect / disconnect - connect on start I have written following but have no success  sub net_state {  my $vnic_device;...

View Article


why host not found

1.# perl connect.pl --url  https://192.168.16.154/sdk/vimService  --username rootEnter password: Connection SuccessfulServer Time : 2012-08-07T12:41:27.765895Z 2.#perl viperformance.pl --url...

View Article


vSphere SDK for Perl support

If we use vSphere 4.1U2, which release of vSphere SDK for Perl should be used in this case? I could surely use vSphere SDK for Perl release 4.1, but is it better to use the latest release 5.0 update 1...

View Article

Difference between API customizationSpec xml and VIClient's

Hi folks.There's something i might understand wrong. I exported a guest customization specification file from vSphere Client (4.1) as an xml file, and now i'm trying to use it to perform a vmclone.pl....

View Article

can not show vms

I am wanna to connect my Vcenter to show one cluster all vms ,but it report error :Can't call method "serialize" on unblessed reference at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 2435. I want to...

View Article

[help]how to show performance data ?

Hi ,I am planning to extract performance data(cpu,net,storage,ram) of all vms and host and push to mysql ,but I don't how to do it .Anyone can guide me ?I appreciate . following is my code ,only can...

View Article


How to import OVF using vSphere API using perl

Hello all, i am newbie in writing script for invoking vsphere API using perl...I have written some basic programming like create VM, clone VM etc. and got good Understanding of  Vmware Views. I am...

View Article

List all the VMs with more than 2 Virtual disks

Hello.I want to list all the VMs in a vCenter Datacenter which has got more than 2 Virtual disks. Here is the flow I am trying to work on: 1. Get the Datacenter View2. Get the Cluster view with...

View Article


How to import ova file to vcenter or a host using perl VI SDK

I am currently trying this : =================================================$ovfMgr=Vim::get_view(mo_ref => $sc_view->ovfManager);$pdresult=$ovfMgr->ParseDescriptor('C:/test.ova');print...

View Article

extra unused vmdk created by CreateVM?

Whenever I create a new VM using the CreateVM method on a folder and extra unused vmdk file is created.  Below is a copy of VM config spec that I am passing to CreateVM.  In it the only devices I am...

View Article


List of VMs with IOPS-Limit in a specific Cluster

Hello, I want to list all VMs in a specific cluster which doesn't have an IOPS-Limit set on any of there disks. My virtualisation environment looks like: DATASTORE- Cluster x- Cluster y  * Ressource...

View Article

Filtering Virtual Machine view with the name of the Host

Hi, I'm trying to get a specific Virtual Machine view from an hypervisor. Basically I tried to reuse an idea found on the cdromdisconnect.pl script, an addressed in...

View Article

Image may be NSFW.
Clik here to view.

Check if a connection is opened toward a vcenter or an esxi instance

Hi, For the sake of my scripts, I'd like to check if a connection is already open toward a vcenter or an esxi instance, and if not to call Util::connect() to create a new connection,  Any idea of how...

View Article
Browsing all 1577 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>