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

How to get currently-connected server?

This may be a really simple question, but I can't find where in the documentation it might be mentioned. How can I get the name of the server to which I'm connected?  In many cases, this would be just...

View Article


Error: Can't call method "macAddress" on unblessed reference

Hello. I am learning vSphere perl SDK and trying to udnerdstand how to use various furcntion before I start writting real-life scripts. I want to print the MAC address of all the VMs that are running...

View Article


Adding Metadata to vDC

I have an application that creates a vDC and then create a series of vApp's within the new vDC. I need to store some information (key value pairs) for future reference.I see how to get the meta data...

View Article

VICredStore Problems

OK, I've officially hit a wall here. Whenever I try to use the VMware::VICredStore I get an error: Use of inherited AUTOLOAD for non-method VICredStore::init() is deprecated at shutdownvms.pl line...

View Article

How to clone from Template without specifying a host?

Hello! I've been using the vSphere SDK for Perl to do automation. I have used until now, something like this to clone from templates:my @args = ("/root/vmware-vsphere-cli-distrib/apps/vm/vmclone.pl...

View Article


Finding the extents of a datastore?

I am trying to extract the name of the extents that each datastore has. When I use the Vsphere GUI Client, I can access it through clicking on a datastore and going to the configuration tab, so I know...

View Article

Trying to create a VMFS datastore

I can not figure out what I am doing wrong, a very unhelpful error "Undefined subroutine &VmfsDatastoreCreateSpec::type called at /usr/share/perl/5.14/VMware/VICommon.pm line 1501" is thrown when I...

View Article

Expected time to deply VM from template.

Dear All, We would like to know if the below is expected behavior. 1. We have created Linux template, having a scratch drive ( storage) attached to the machine, around 150GB2. We used the template to...

View Article


vShere SDK for Perl version 5.1

HiWe installed vSphere SDK for Perl version 5.1 to use perl modules(like VIRuntime, VILib etc..).This SDK registers all these perl modules to perl version 5.8.But in our systems we already have perl...

View Article


Image may be NSFW.
Clik here to view.

vMA winpower(IPPON UPS) problem is "Host of "NameOfHost" is not known"

Good day dear community. My name is Vadim.During my instalation of vMA and WinPower Software for automatic shutdown ESXI 5.1 I got alot's of problem's witch are soleved, but here I feel like I'm...

View Article

vdiskcreate.pl reports Can't call method "key" on an undefined value at...

Dear All, I want to add disk to VM, hence using the sample script provided. while executing it reports error can someone please help me what going wrong. ./vdiskcreate.pl --datacenter <data...

View Article

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

Automate Post addition of disk to make disk usable using Perl SDK.

Dear All, We have 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...

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

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


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

List VMs in DRS Group

In vSphere you can right click a Cluster, click "Edit Settings > DRS Groups Manager > (select a group), Edit" and see a list of virtual machines that are in the cluster. I am looking to get this...

View Article


How to avoid permission issue when deploying VM from template if user other...

Dear All, The script attached work fine when the user is having root access to deploy VM from template, we got this script from this fantastic forum. Since my user is having only permission to deploy...

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

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
Browsing all 1577 articles
Browse latest View live