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

Check guest OS completely started

Hi all, How to check that my guest operating system are completely started after this code: my $vm_view = Vim::find_entity_view( view_type => 'VirtualMachine',...

View Article


vm creation and connect to vds port group perl script ??

Hello everyon, Does anyone have a perl script that creates a vm and also connects it to a virtual distributed switch port group ?  Thanks, JL

View Article


Delete Portgroup out of VirtualDistributedSwitch

Hello, I've got a script which creates new Ports-Groups (VLANs) in VirtualDistributedSwitches: ################## (...) my $DatacenterView = Vim::find_entity_view(      'view_type' => 'Datacenter',...

View Article

Image may be NSFW.
Clik here to view.

Retrieve Power status

Hi there, I am currently using the marvelous listVMByFolder script (http://communities.vmware.com/docs/DOC-10059), and I would like to know how I can retrieve the power status of each VM I list. I have...

View Article

listing the VM Templates

is ter any perl api(script) for listing the VM Templates in a vcenter web client...

View Article


getting filer name or IP , path of datastore

hi friends,                can you help in getting the informations of datastore's filer name or IP , path .

View Article

Upload VMDK file from workstation and "mount it"

Hi there, I would like to create a script allowing to upload a local VDMK file to my remote server (the one containing the ESXi's), and then, "mount" the uploaded VDMK file. I just read about...

View Article

Help with a script that tries to gather info

Hi, I have this piece of code:  my $vm_view = Vim::find_entity_views(view_type => 'VirtualMachine');my $vnic_name;my $vnic_device;foreach(@$vm_view) {        my $vm_name =...

View Article


catch fault exeption on UpgradeTools_Task

hi all, I'm trying to automate update/install of vmware tool in virtual machine but this simple test code aren't work.I can see error in VSphere console but i can't handle fault my $vm_view =...

View Article


converting a VM to a template (clone to template)

Hi, I am trying to write a wrapper using the perl sdk that can clone multiple active VM's into corresponding templates and also have the capability to deploy a bunch of templates as VM's on a specified...

View Article

Quickly access to a view by giving full route

Hi, I'd like to know if it was possible to retrieve a view from vsphere by giving it it's "full route". Actually, to be sure to get the right view, because, for example, 2 VMs of the same name can...

View Article

how to create or clone vm without VC

Hi,I want to clone vm with perl sdk ,but we don't have VC .We just use esxi ,could someone tell how to clone or create vm ?

View Article

How to disconnect and reconnect to a new server.

Hi all. I'm looking to iterate through a number of vsphere servers to pull out certain bits of configuration data from each of the vsphere servers. I've already stored the credentials via...

View Article


running hostinfo.pl with vcenter with large number of hosts fails

While trying to run hostinfo.pl (vmware-vsphere-cli-distrib/apps/host/hostinfo.pl) with a vcenter that has ~350 esxi hosts - fails. The only message shows up as "killed".With vcetner with around 150...

View Article

Removing ESXi host from vCenter

Hi All, Im using a perl script to remove an ESXi in lockdown state from a vCenter. My problem is that after i'm done & and the host was removed i can still see on the host itself that it is...

View Article


Confused about dealing with ManagedObjectReference

Hi, I ma trying to a simple taask ofl isting all the datastore and the hosts they are connected to in a given Datacenter:I have managed to write below code and not sure how to proceed further:...

View Article

ovf deploying from url

Hi all, I have got a problem in understanding a steps to deploy ovf vm from URL. I read some example in java where ovf was uploaded from local machine. What object/methods should I use to call vsphere...

View Article


Add annotations when creating a linked clone

Hello everyone, I am currently struggling with a script which should be able to add an annotation to a linked-clone after its creation. To create a linked-clone, I am using the vmlinkedclone.pl script...

View Article

Script crashing randomly

I have a Perl script I use to reboot provisioned desktops. http://pastebin.com/bpUG1wLR Unfortunately it only works half the time, and I can't figure out why.  One day it'll go through all the...

View Article

Unexpected behaviour of a script

Hello everyone, I am currently having a problem with my modified version of the ManagePower script, which normally takes the name of the VM as a parameter and then performs the power operation...

View Article
Browsing all 1577 articles
Browse latest View live


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