Questions tagged [vcenter]

VMware vCenter Server is a datacenter management server to manage VMware ESXi host system

VMware vCenter Server is a centralised management application to orchestrate vSphere. It can be used to monitor, operate, manage resource and performance evaluation of vSphere components.

267 questions
3
votes
5 answers

vCenter Server Appliance 6.0 : 503 Service Unavailable

503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http16LocalServiceSpecE:0x7fc8bad2f810] _serverNamespace = /vsphere-client _isRedirect = false _port = 9090) This is the error i'm constantly getting when trying to connect to the…
mdahhani
  • 84
  • 1
  • 1
  • 8
3
votes
2 answers

Getting vCenter info for a VM using powershell

I need to get VMs' vCenter information, or at least just the vCenter name, I've looked online at vmware help and all they have is connect to the vCenter to get the VM info, exactly the opposite of what i'm trying to achieve. Is it even possible ?…
DuckStalker
  • 58
  • 1
  • 8
2
votes
2 answers

Encrypting password in powershell before calling to vcenter connect server

Issue is while running power shell scripts vcenter passwords is capturing in event logs. So I am trying yo encrypt before we call vcenter. I am able to encrypt the password using below $Pass = "P@ssword1" | ConvertTo-SecureString -AsPlainText…
Neha Jain
  • 21
  • 3
2
votes
2 answers

What are the steps to export a VM using the vmware vcenter 7 rest api

I'm attempting to build some custom automation to handle the import / export of VM's to / from an on-prem vmware cluster. So far I have authenticated the rest api, can get a VM's info, but I cannot work out how to approach exporting the selected…
user2295457
  • 101
  • 11
2
votes
1 answer

failed to import VM as AMI due to ClientError: Disk validation failed [OVF file parsing error]

I need to run vsca 6.7 (for a small project, regarding the vCenter itself, and not really needing to insall any VM on it). I tried to install VCSA6.7 as a VM on my VMworkstation, but my home computer lacks the needed resources for it to run…
2
votes
3 answers

Connecting to VCenter with PHP using REST API authentication error

I followed the instructions in the official vsphere site to get info from the server and from the answer of another user here . From what I have understood, firstly I have to get the session id (cis id), but I got "null" as a result. I tried…
alessiow
  • 29
  • 6
2
votes
1 answer

Is there a vmware ansible module that can give all VMs in a specific Data Center with its folder structure too?

I'm trying to write an ansible code that would fetch VMs from a particular datacenter using vmware modules retaining their folder structure. Imagine going through the VMs and Templates view in Vcenter. First we fix a data center and the first folder…
kash27
  • 21
  • 2
2
votes
1 answer

How to find ESXi host serial number using pyvmomi?

Previously for VCenter software version 6.0.0 I was using vim.host.SystemIdentificationInfo which was giving me the desired value inside identifierValue But for VCenter software version 6.5.0 vim.host.SystemIdentificationInfo is returning me an…
niladri chakrabarty
  • 503
  • 1
  • 7
  • 15
2
votes
1 answer

Vsphere API Script for getting Information

I am playing with the vSphere API and it worked good over the Web Interface, now I would like to write a Python Script that communicates with the API and give me some answers to my question like how many VM´s do I have in my Environment or which VM…
2
votes
3 answers

Connection to vCenter REST API with PHP

I am trying to get VM information from VMware vCenter v6.5 with PHP 7. I am receiving error code 400 from curl_getinfo. I copied the code for this from this post: VCenter ReST API authentication I've tried this from command line and am able get a…
SuperDogStar
  • 21
  • 1
  • 3
2
votes
1 answer

Get current CPU usage using PowerCLI

On the vSphere client host summary page, current CPU usage stats are displayed: CPU Free: 76.38 GHz Used: 4.02 GHz Capacity: 80.4 GHz I am trying to retrieve this information using PowerCLI, so far I have discovered this…
LightningWar
  • 915
  • 1
  • 19
  • 35
2
votes
1 answer

enable SSH on host via PyVim / PyVmomi API

Is there a way to enable SSH on an ESXi host? I have looked around but have found nothing. I am writing a script that needs to be able to enable and disable SSH on a host.
MJonny
  • 21
  • 2
  • 4
2
votes
1 answer

AngularJS UI Rendering issue in custom plugin of vSphere web client

We are developing user custom for vmware's vSphere web client with the help of vSphere client SDK 6.0. We have use html-bridge (AngularJS) to develop a UI for plugin and we are facing rendering issue of UI for one specific scenario. Image 1: This…
Mayur Bhokase
  • 377
  • 4
  • 19
2
votes
2 answers

Detect current user has admin rights or not in vSphere client SDK with Java

I am using vim25 library to established connection with vCenter and I am able to login with following code, vimport.login(serviceContent.getSessionManager(), username, password, null); Now, I want to check whether this user has admin privileges or…
Mayur Bhokase
  • 377
  • 4
  • 19
2
votes
1 answer

PowerCLI: Work with VMs on multiple vCenter servers

I have a script that will power off and DeletePermanently all VMs that match a certain prefix. I use this when testing other automation tools to make it easy to reset the lab. The script connects to multiple, pre-defined vCenter servers and then…
McKenning
  • 631
  • 4
  • 20
  • 32
1
2
3
17 18