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 Articlevm 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 ArticleDelete 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 ArticleRetrieve 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 Articlelisting the VM Templates
is ter any perl api(script) for listing the VM Templates in a vcenter web client...
View Articlegetting 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 ArticleUpload 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 ArticleHelp 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 Articlecatch 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 Articleconverting 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 ArticleQuickly 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 Articlehow 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 ArticleHow 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 Articlerunning 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 ArticleRemoving 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 ArticleConfused 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 Articleovf 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 ArticleAdd 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 ArticleScript 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 ArticleUnexpected 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