Quantcast
Channel: VMware Communities : Unanswered Discussions - Sample Exchange
Browsing all 70 articles
Browse latest View live

Looking for java code to retrieve virtual disk info on a VM.

 Hi,   I am looking for some sample code to retrieve virtual disk info on a VM.I need to list total capacity of the virtual disk and free (or used) capacity of the disk.  I have gotten far enough to...

View Article



Sample code for accessing a VM

 I'm looking for a basic java class that will access a vm through a vcenter server using the VMware APIs.  Something as simple as one function to give the amount of memory for a VM.  Does anyone have...

View Article

VAAI for vsphere api users

Hi all I'm triying to find an answer to a simple question: I'm a programmer that is using the vsphere api in order to create an internal "cloud" with some features, including snapshot of the virtual...

View Article

how to check if vib install failed on esx host

Hi, ManagedObjectReference t = VIM_PORT.installHostPatchV2_Task(patchManager, null, null, vibUrl, null);TaskInfoState tis = null;do {     TaskInfo ti = (TaskInfo) getManagedObjectProperty(t, "info");...

View Article

sample code for queryHostPatch_Task

Hi,Can I get reference to using result of queryHostPatch_Task in java code Thanks

View Article


how to find new lun inside the guest OS through VI SDK API

Hi, My applicaiton is currently sitting inside Virtual machine (Guest OS). With that application I can able to create a RDM lun but I want to map that RDM lun on windows host, so we are going ahead...

View Article

How to increase speed get-vm get-view

 Hi, I'm new in PowerCLI.I'm using next script to obtain Virtual Machine Inventory:  $outputFileVM = 'D:\PowerShell_scripts\Inventory.csv' $VMReport = @() get-vm | sort name | %{ $VM = Get-View $_.ID...

View Article

Pre-requirements vmware scripting

 I am a bit confused. I have installed PowerCLi 4.1 and Powershell 1 and 2.     I still can not get some scripts especially the HealthCheck script... do I still need to install the vmware toolkit and...

View Article


Aligning Windows XP VMs

Hi All, I have to align 425 vmdks from 425 desktops. Nowdays, it is 3x ESXi 4.1 HA Clusters.I wanna create a very simple program using vSphere APIs to make this task.Looking for the API, I believe that...

View Article


Adding CIM Framework functionality or classes to VMWare

Thi is related to my other question about where to check the memory/hard drive usage through CIM/SMASH. I THINK this is not possible because VMWare did not implement/populate the classes required to do...

View Article

Failed to execute sample code using java command line. Pls help.

Hi there, We are trying to execute a sample in VMware-vSphere-SDK-5.1.0-774886 built with JDK 1.6b22, but it failed with the following exception. Pls help to solve it. Thanks in advance! Br,Sharnbo...

View Article

How to increase speed get-vm get-view

 Hi, I'm new in PowerCLI.I'm using next script to obtain Virtual Machine Inventory:  $outputFileVM = 'D:\PowerShell_scripts\Inventory.csv' $VMReport = @() get-vm | sort name | %{ $VM = Get-View $_.ID...

View Article

Pre-requirements vmware scripting

 I am a bit confused. I have installed PowerCLi 4.1 and Powershell 1 and 2.     I still can not get some scripts especially the HealthCheck script... do I still need to install the vmware toolkit and...

View Article


Looking for java code to retrieve virtual disk info on a VM.

 Hi,   I am looking for some sample code to retrieve virtual disk info on a VM.I need to list total capacity of the virtual disk and free (or used) capacity of the disk.  I have gotten far enough to...

View Article

Sample code for accessing a VM

 I'm looking for a basic java class that will access a vm through a vcenter server using the VMware APIs.  Something as simple as one function to give the amount of memory for a VM.  Does anyone have...

View Article


VAAI for vsphere api users

Hi all I'm triying to find an answer to a simple question: I'm a programmer that is using the vsphere api in order to create an internal "cloud" with some features, including snapshot of the virtual...

View Article

Aligning Windows XP VMs

Hi All, I have to align 425 vmdks from 425 desktops. Nowdays, it is 3x ESXi 4.1 HA Clusters.I wanna create a very simple program using vSphere APIs to make this task.Looking for the API, I believe that...

View Article


how to check if vib install failed on esx host

Hi, ManagedObjectReference t = VIM_PORT.installHostPatchV2_Task(patchManager, null, null, vibUrl, null);TaskInfoState tis = null;do {     TaskInfo ti = (TaskInfo) getManagedObjectProperty(t, "info");...

View Article

sample code for queryHostPatch_Task

Hi,Can I get reference to using result of queryHostPatch_Task in java code Thanks

View Article

Adding CIM Framework functionality or classes to VMWare

Thi is related to my other question about where to check the memory/hard drive usage through CIM/SMASH. I THINK this is not possible because VMWare did not implement/populate the classes required to do...

View Article
Browsing all 70 articles
Browse latest View live




Latest Images