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

GuestDiskInfo is empty for xfs formatted filesystems (tested on RHEL7)

hi everyone, I made a nice script that reports OS disk usage for certain vm's which is working just fine, except for machines that have xfs filesystem, as I found out for our RHEL7 systems where xfs is...

View Article


Perl SDK on RHEL /CENTOS 7.0

Has anyone been successful installing "vSphere SDK for Perl 5.5 Update 2" on RHEL 7.0?  We have it working on RHEL 6.5 but when I installed on RHEL 7.0 it does not work.  After the username/password...

View Article


Fetching the IP Address of a new VM created from template.

Is it possible to get the IP address of a VM created from template using the vsphere sdk? I intend to use perl for this. Some pointers would be helpful. The idea is to run ansible playbooks inside the...

View Article

VSphere API - Launch Template inside a esxi host of choice

I wish to launch VM's from a template on a esxi host of choice. Am doing this using pysphere. Is there a VSphere API documentation somewhere which talks about this. It would be like 'recommendation'...

View Article

The object has already been deleted or has not been completely created

Hello, I am getting this error when removing a datastore from a host. What I noticed is that this happens when another datastore (on a different datastore) removal is happening at the same time on the...

View Article


DRS cluster - evacuate all VMs on a host and enter maintenance mode

Hi,  I am looking to script evacuating all VMs on a host to other hosts in  a DRS cluster, and enter maintenance mode just like the vsphere client does. I  have looked at hostops.pl and...

View Article

i am not able to add rdm SAN lun to a linux VM with the below command when...

i am trying through script to add the RDM lun to Linux VM but same script is working for ESXi5.5 and not working for ESXi6.0 . I have give the pseudo code below.$cmd = 'vmkfstools -r...

View Article

Where find information about POOL configuration?

Hello all, I need to create a script that reports all the pools configuration.I can list all pools and VMs in, but I can't find where is the configuration of each pool.I try to see the number of VM max...

View Article


Perl SDK - return list of clusters for DC

I am new to using Perl and the SDK. I am having an issue with a task that was simple with PowerCLI, but for some reason I am having an issue. I am building and interactive tool for deploying VMs from...

View Article


Run Commands in Guest OS

I am running my Perl SDK scripts from within a Linux VM on vSphere 5.5.  My goal is to run commands from this VM on other guest Linux VMs on the same vSphere host.  I have read that so long as the...

View Article

vmcreate.pl - ESXI5.1/5.5 - HW Version Control

     I'll start off by saying Perl is not one of my strong scripting langs.  The following is using bash wrappers around perl to create guests via vmcreate.pl: Has anyone found a way to pass the HW...

View Article

List VMs alarm list with description

Hi All,            I have the script to fetch all alarm information like (alarm key, time, ack, alarm state etc). but I am not able to list its alarm description . So can you let me know the API script...

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


vSphere Perl SDK - Query for current Alarm States

I'm trying to leverage William Lam's fantastic alarmManagement.pl (see attached) script to poll vCenter for the current status of any active alarms.  I've modified it to add the timestamps and that is...

View Article

snapshotmanager.pl –operation list --vmname Wildcard Search?

Using snapshotmanager.pl –operation list --vmname vmname01 works fine but I am trying to find a way to return a list of All vm's and their respective snapshots and output that to a csv file. Tried a...

View Article


SOAP error with VMware-vSphere-Perl-SDK-5.5.0

When I try to use the Perl SDK v5.5 I get SOAP request errors (using Net::HTTP 6.06): ./script.pl --vmname <blah> --server <my server>SOAP request error - possibly a protocol issue:...

View Article

PowerCLI vs Perl SDK

On the PowerCLI side, I can execute: set-template -template <name> -tovm ...which will convert a template to a VM. On the Perl SDK side, I found the MarkAsVirtualMachine call which appears to do...

View Article


vmreconfig Throws XPathContext Error

I installed the VMTools via the VMware-vsphere-Perl-SDK-5.5.0 tar.  I also verified XPathContext.pm is installed; however, when I attempt to run vmreconfig.pl I get an error.  #> ./vmreconfig.pl...

View Article

Extend vmfs datastore

Hi All,             How to Increase/Extend the vmfs datastore using vsphere perl sdk? . please let know the any sample script or any useful link Thanks in Advance.

View Article

Modify vApp Options from an existing vm

Hello developers,I'm trying to change the "vApp Options" of an existing vm (deployed from an OVF file) through a perl script (SDK v5.5). With PowerCLI this could be done like...

View Article
Browsing all 1577 articles
Browse latest View live


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