How to get hardware/software from vms
Hello,How to get hardware/software from vms.How can i do what? thanks ralf
View Articleremove datastore role
hi,i created a a vcenter role that can remove datastores. Then at the root of vcenter I added a permission to an AD user and coupled it to this role and it propagates.When I run my script I get this...
View Articlehelp with datetimeinfo
hi,this is probably a simple question but I do not seem to get it right.With this code:# get all esx hosts in Datacentermy $esxhost_view = Vim::find_entity_views( view_type => 'HostSystem',...
View Articleretreiving datastore latest usage...
I am trying to retrieve datastore usage, I did, my $perfmgr = Vim::get_service_content()->perfManager;my $perfmgr_view = Vim::get_view( mo_ref => $perfmgr);my $counters = counters(perfmgr_view...
View Articlescript failing with Can't load class 'HostSriovInfo' error
Hi all,We just upgraded from RHEL5 to RHEL6 and attempted to load the SDK v6. *SOME* of our standard perl scripts that gather inventory data from assorted vCenter servers are failing with the...
View ArticleHow to find which user created snapshot?
Hi I am a newbie in VMware Perl SDK. I am trying list all snapshots of a vm with description, time and user who created the snapshot. So far with the VMware provided sample snapshotmanager.pl, I can...
View Articlewhy my machine on Supend status ?
Hello,Workiing With Esxi 5.1,many time i found one of my machine on "supend" status and i need ti power on the machine.Please Tell my why and how can i fix it.Thanks.
View ArticleHow to retrieve the value from a custom field
Hello @all. In my vCenter I've created a custom field "email". The value for this field is set to the e-mail address of the operator a VM belongs to. I like to retrieve these values in a perl script....
View Articledatacenter of datastores...
I am wondering, if I have a reference to a datastore, how can I find the reference to datacenter that contains this datastore? Also, another question, is it possible that a given datastore is nested...
View ArticleDeploy template via Command line
Hi to all, Is possible deply a template via command line and set hostname and network? Thanks for your help PS: Remember donate for ghetto script repository
View ArticleVM snapshot Info
Hi All , I need perl sdk sciript to collect all VM snapshot information like (Snapshot Name, Id, Size ...& all his attributes). Can you please let me know the script or any useful links...
View ArticleHow 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 ArticleExporting VM to OVA with additional fields.
Hi,We have a script that unpacks an OVA and then does some black magic on the .ova file to edit and add additional information below, is there a way this information can be added at the time of...
View Article"Possible precedence issue with control flow operator"
Hi guys I have following Problem:Yesterday I made a distribution update from debian wheezy to debian jessie.Since then I got a problem with a plugin which I'm using for Icinga a monitoring system.When...
View Articlecompletely removing a VM
Hi, I'm looking for a way to completely remove a VM without leaving an orphaned entry in vSphere or the leaving the VM on disk. I have looked at the scripts in vSphere 6.0 Documentation Center but I...
View ArticleCustomize virtual serial port while cloning from template VM
Hey Folks, I have a template VM that has a serial interface. Part of the template vmx file looks like below,serial0.fileType = "network"serial0.fileName =...
View ArticleCreating datastore of specific size say 2.5 TB using Vmware perl API...
How do I create datastore of specific size say 2.5 TB using Vmware perl API CreateVmfsDatastore ? I have used following block of code, where i am passing $dataStoreSize as the argument - my...
View ArticleSSL_verify_mode of SSL_VERIFY_NONE for client is depreciated!
Hi All I having trouble using the below command: using VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64VI_SERVER=10.10.10.1 VI_CREDSTORE=/etc/vicredentials.xml /usr/lib/vmware-vcli/apps/vm/vmcontrol.pl...
View ArticlePossible Bug: check_vmware_api and CPU metrics.
Good afternoon,I believe I may have come across a bug with the check_vmware_api in the 5.5.0-2043780 of vSphere Perl SDK. When I query CPU information (at the guest level) it returns the correct CPU...
View ArticlePerl script for deploying a vm from template
Am looking for a perl script for deploying VM's from existing templates on Vsphere. Until now i have managed to provision vm's. I saw that there is a utility called new-vm on the powershell. I am...
View Article