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

Datastore search does not return all files

vSphere Server 4.1.0, SDK 4.1.0-254719 I'm running a Datastore search using SearchDatastoreSubFolders with a SeachSpec using a VmConfigFileQuery. For a given Datastore containing 9 virtual machines,...

View Article


What would cause an inaccessible datastore?

I am writing a script to import existing datastores and crawl thru them to add all VMs that it finds to the inventory.  I know I had this working on our production environment before.  Now I built a...

View Article


How to edit the port profile for a specific network adapter using Perl SDK?

I have been using VMWare vSphere Perl SDK 5.0 (Linux 64-bit) to perform some very basic operations like Creating / Deleting VM'sAdding network adapter and assigning a port profileHowever, I could not...

View Article

vdiskcreate.pl adds the disk to VM, But disk is not usable until we create...

Dear All, We used the vdiskcreate.pl script to add the a disk to newly deployed VM, But we could not see the partition, hence it requires reboot, then it requires us to create LVM and mount it some...

View Article

PowerCLI translation to Perl?

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


Soap fault on vmdk creation

I want to create a vmdk on my datastore so I attempted this sub atomicAddDisks{  # Getting the views  print"DEBUG : GETTING CONTENT\n";  my$content= Vim::get_service_content();  my$VDiskManager=...

View Article

How to remove a DRS rule?

Hi,    I tried to use the following code to remove a DRS rule but it did not work.       my $ruleinfo = ClusterRuleInfo->new(name => "testrule");      my $rules_spec =...

View Article

How do you query the alarms

I would like to get the alarms listed on the Alarms tab in vCenter programatically.  I have tried numerous ways to do it, but have never been able to do it.  Anyone got an example that I can look at...

View Article


Did I find an API bug? : Adding multiple disks soap error

I am able to add the disks linearly like below:  my $vmSpec = VirtualMachineConfigSpec->new(deviceChange => [$devSpecs[0]]);  $vmView->ReconfigVM(spec => $vmSpec);  my $vmSpec =...

View Article


What is causing "toolsNotInstalled"?

I'm using Perl VMware::VIRuntime module to create VMs. VM can be created, but upon "power on", toolsStatus shows "toolsNotInstalled". I'm stuck, not knowing what caused this problem. Advice is...

View Article

SDK needs admin/root privilledges to perform VM creation/deploy

Dear All, We need to know, Does vSphere SDK requires admin/root permission to perform VM deployment from template or create VM etc.? We see some permission denied issue when we perform such operation...

View Article

Datacenter Informations

i need a perl API script for getting these following informations about datacenter .Number of ESXi ServersNumber of Physical CPUsNumber of CoresAmount of Physical RamNumber of VMs Combined Datastore...

View Article

Getting a count of all VMs (with some filtering)

I'm trying to get a total count of VMs, excluding some vShield Edge devices and any VMs in a certain Resource Pool (System vDC). I'm starting with this: use strict;use warnings;use...

View Article


Find Number of core in VM or Host

Hi Friends,                Please help to find the number of core present in the datacenter or host or vm  using the perl api script  . Thanks in Advance . (No. Of CPU in vm= No. of core in  vm)  is it...

View Article

Configuring IP address, Domain etc to a VM after deploying from template

Dear All, We have a deployed the VM from template, But needs to bring the VM to network by assigning IP, bringing VM to domain  etc, How we can achieve this with vSphere SDK perl. if any pointer please...

View Article


how to get host and vm performance data?

Hi,Is it there any method to get host and vm performance data ,like cpu ,mem and io utilization ?  I am guessing data in vCenter server database ,But I don't know how to translate it .I want get these...

View Article

Failed to create DataStore

Hello I want to create datastore by using the SDK CreateVmfsDatastore, But when I run it I got the soap error :<SOAP-ENV:Envelope xmlns:ns0="urn:vim25"...

View Article


Linked clone gives "Cannot complete customization"

Dear All, This is very urgent and need immediate assistance. I tried to do Linked clone from snapshot but while customization step it report error and bailout with message as    SOAP...

View Article

how to define disk size with clone vm

Any one know how to define disk size when clone one vm ? following code doesn't work :  my $disk = VirtualDisk->new (capacityInKB => $size); my $devspec =...

View Article

Assign IP address to VM

Hi All, I am new to this community.  What I am trying to do is :1. Clone our one of the existing VM using vmclone.pl2. I am mounting an ISO image to it using vmISOManagement.pl...

View Article
Browsing all 1577 articles
Browse latest View live


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