Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Browsing all 1860 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

When I set intervalId other 20 in PerfQuerySpec api and execute api...

I am executing following piece of code to get the performance metrics. When I set intervalId other 20 in PerfQuerySpec api and execute api QueryPerf(querySpec => [$perfQuerySpec]) i get error -A...

View Article


Image may be NSFW.
Clik here to view.

C# Get VM Guest Session Status

Hi there,I'm attempting to use the C# vSphere API (VMWare.vim.dll v6.3) to gather some basic information about our VMs here. One thing I am trying to collect is the session status in the guest OS (Such...

View Article


The current virtual disk format of the template is “Thin provision” and It...

Hi all, Recently I have developed a VMware automation tool deploying Virtual Machine from a template through vSphere SDKThe current virtual disk format of the template is “Thin provision” and It must...

View Article

InitiateFileTransferToGuest copies file filled with NULL to vm

Hi,I am using pyvmomi to automate some of our testing activities. There are several threads which read a single configuration file(ending with py), make some changes and then write this file with...

View Article

Image may be NSFW.
Clik here to view.

在当前状况下不允许执行此操作。

Hello, I am searching for the proper API to find the absolute path to a Virtual Machines vmdk file.Let’s say inputting the minimum amount of information (ideally just the Virtual machines        name)...

View Article


vcenter Host HA configuration

we are trying to configure 2 hosts in HA mode setup in a cluster.one of the hosts has 10 virtual machines and the other one has no vms.Should we do anything specific in configuring HA for the...

View Article

Image may be NSFW.
Clik here to view.

Multi-Threading in Java API

Does the vSphere management SDK support multi threading. I try to realize a pool of service instance objects to be reused, because my application needs many of them and I do not want to recreate them...

View Article

Can I use the vim25.jar in an open source project to develop vm specific...

I downloaded vim25.jar as part of SDK.zip. Can I use the vim25.jar in an open source project to develop vm specific operations?

View Article


Image may be NSFW.
Clik here to view.

Can I force the VMware Web Service to encode in UTF-8 before sending to my...

I've run into an axis problem where the axis client (as used in the vSphere Web Services SDK) expects the response from the server to be utf-8 encoded, but that is not always the case.  In my example,...

View Article


API returns higher memorySize values for host

I am pulling hardware data from vCenter via <HostSystem.hardware.memorySize> for a particular host.  The value returned is 137,280,806,912 or 137 gb.  If I open the vSphere Client the value is...

View Article

Image may be NSFW.
Clik here to view.

How to use OpenInventoryViewFolder?

I have searched and searched and have yet to understand how to use the InventoryView construct. Let's say I wanted to monitor every cluster, resource pool, host, and VM in the inventory. I want to know...

View Article

'The operation is not allowed in the current state.' (c# StartProgramInGuest)...

I'm automating some VM configuration beyond a firewall, by leveraging the VMtools (or rather the StartProgramInGuest method) - My changes can come from any number of 'Configuration' Hosts - each of...

View Article

Image may be NSFW.
Clik here to view.

C# - shipping vmware.vim.dll with the .exe

Hi,this may be a .net specific problem, but maybe someone has some hints for me.I wrote a little program in c# (vs2010) which is able to do some poweroperations (just like the example in the sdk doc...

View Article


Image may be NSFW.
Clik here to view.

Default value of the config.vmacore.soap.sessionTimeout

Hi, On vcenter v6 I have faced with the situation when opened vcenter soap session failed after period of idleness with the soap error:<?xml version="1.0"?><NotAuthenticatedFault...

View Article

Image may be NSFW.
Clik here to view.

How to check if VirtualApp is started

Hi there, I'm pretty new to the VIM API and am trying to evaluate if a vApp is started or not. I've found the VirtualAppVAppState enum but can't seem to figure out how to test it.I've included a C#...

View Article


Image may be NSFW.
Clik here to view.

Can anyone advise on support of RHEL 7 guest OS Customization in vCenter...

Hi I need to change NIC configuration through guest os customization but I have a problem using RHEL 7.0 guest os customization in vCenter Version 6.0 and ESXi 6.0  Can anyone advise on support of RHEL...

View Article

How to start a VM?

Good morning everybody! Really quick simple question, strange that I can't find any info elsewhere, but here goes: How do I start a virtual machine using the web API? I know my VMWare hypervisor web...

View Article


How to retrieve a HostSystem via vmware.vim?

I am trying to use the C# vmware sdk to retrieve a host represented as a HostSystem object. I have no datacenter and no cluster, only the single host I am connected to. How do I retrieve a HostSystem...

View Article

How do I check for a licensed feature on a ESXi host? Getting: "The operation...

This code is C# public bool CheckLicenseFeature(string featureName, string hostName = "") {  HostSystem host = null;  if (String.IsNullOrEmpty(hostName)) {  host = GetHostSystems().FirstOrDefault();  }...

View Article

How do I use a local ticket acquired via VMware.Vim?

Object vSphereClient is already established and logged in. using VMware.Vim; private SessionManager GetSessionManager() {  SessionManager sessionManager = null;  try {  ManagedObjectReference _svcRef =...

View Article
Browsing all 1860 articles
Browse latest View live


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