Is there a way to Restart the Management Agents in ESXi from a cmd-let or SDK method?
Afaik the vmware-vpxa service is the VMware vCenter Agent. The management agents are the mgmt-vmware service which you can't restart (yet) with PowerCLI.
Regards, Robert
you can access whith SSH and run services.sh restart
Enabling SSH www.vm-help.com/esx/esx3i/ESXi_enable_SSH.php
if you preffer a basic method http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100349...
*If you found this information useful, please consider awarding points for "Correct" or "Helpful"*
No, the question was using the APIs/SDKs and the answer to that is yes there is a way and should be the method unless it does not work, then you would use TSM
I wrote a blog post using vSphere SDK for Perl script - http://www.virtuallyghetto.com/2010/07/new-way-of-enabling-and-disabling.html but I'm sure there is a PowerCLI cmdlet to do exactly the same.
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at:
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
I know how to restart the services available on ESX and ESXi through powershell. But i would like to know how to "Restart Management Agents", this option available only from the console.
I don't see the management agenst inside the services on ESXi. I need to do this, because i am replacing the certificates during my postinstallation.
Hi Rob,
Isn't that just
Get-vmhost <hostname> | Get-VMHostService | where {$_.Key -eq "vmware-vpxa"} | Restart-VMHostService -Confirm:$false
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
Is it that service? I will test it tomorrow.
The ESXi servers are not add to vCenter when i replace the certificates.
If it works i go for the next challenge, that is enableling the Authentication Services
Yes, it is a service that can be controlled, this is also mentioned in my blog post.
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at:
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Yes, see also the screenshot on William's blog post.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Afaik the vmware-vpxa service is the VMware vCenter Agent. The management agents are the mgmt-vmware service which you can't restart (yet) with PowerCLI.
Regards, Robert
I think, i will just reboot the server and wait until it's back.
Restarting the ESXi server is a way to restart the management agents you can do from PowerCLI .
I think it is a nice feature request to make it available through the API.
I had a brainwave this morning. I can upload the new certificates through:
I can enable the SSH service, execute /sbin/services.sh restart.
The login backup in with connect-viserver and disable ssh. It may be quick and dirty, but it saves me a reboot.