Hi
I found Virtual Center service stopping from time to time . although I setup the service recovery to restart the service for the first and second failure , but that's never happen , every time I have to start it manually . do you know what could be the reason for that ? also I want to know how can I stop and start the VC service from the command line I really don't know the service name , I just want to use net stat or stop to control the service.
Thanks
the virtualcenter service could stop if the server loses connection to the database. I have my database seperate from the virtualcenter server. It's in a cluster and and sometimes people fail the resources over to another node in the cluster. when you fail resources in a cluster over the database goes offline momentarily while it moves so the virtualcenter server loses connection to the database and the service stops. you could do a net start vpxd or use a vbscript like the one below, althoug I'm not a vbscript expert
'==========================================================================
'LANG : VBScript
'Name :
'Author :
'Date :
'Description : Start VMware VirtualCenter Server
'Comment :
'Keywords : WMIService - Query a service, Show a service, Stop / Start a service
'==========================================================================
'==========================================================================
'Variable Declarations
'On Error Resume Next
dim objSWbemLocator, objWMIService, strComputer, strService, objShare
dim oAnswer, objShareState, strUser, strDomain
strService = "'vpxd'"
strUser = "username"
strPassword = "password"
strDomain = "domain"
strComputer = "virtualcenter server"
Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
' Connect and Authenticate to strComputer
Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _
"root\CIMV2", _
strUser, _
strPassword, _
"MS_409", _
"ntlmdomain:" + strDomain)
' Message confirmation to Start VMware VirtualCenter Server service
oAnswer = MsgBox("Start VMware VirtualCenter Server?", vbYesNo , "VMware VirtualCenter Server")
If oAnswer = vbYes Then
Set objShare = objWMIService.ExecMethod("Win32_Service.Name=" & strService, "StartService")
wscript.echo "ReturnValue: " & objShare.ReturnValue & " (ReturnValue of 0 is a successful execution of StartService)"
Else
WScript.Quit
End If
the virtualcenter service could stop if the server loses connection to the database. I have my database seperate from the virtualcenter server. It's in a cluster and and sometimes people fail the resources over to another node in the cluster. when you fail resources in a cluster over the database goes offline momentarily while it moves so the virtualcenter server loses connection to the database and the service stops. you could do a net start vpxd or use a vbscript like the one below, althoug I'm not a vbscript expert
'==========================================================================
'LANG : VBScript
'Name :
'Author :
'Date :
'Description : Start VMware VirtualCenter Server
'Comment :
'Keywords : WMIService - Query a service, Show a service, Stop / Start a service
'==========================================================================
'==========================================================================
'Variable Declarations
'On Error Resume Next
dim objSWbemLocator, objWMIService, strComputer, strService, objShare
dim oAnswer, objShareState, strUser, strDomain
strService = "'vpxd'"
strUser = "username"
strPassword = "password"
strDomain = "domain"
strComputer = "virtualcenter server"
Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
' Connect and Authenticate to strComputer
Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _
"root\CIMV2", _
strUser, _
strPassword, _
"MS_409", _
"ntlmdomain:" + strDomain)
' Message confirmation to Start VMware VirtualCenter Server service
oAnswer = MsgBox("Start VMware VirtualCenter Server?", vbYesNo , "VMware VirtualCenter Server")
If oAnswer = vbYes Then
Set objShare = objWMIService.ExecMethod("Win32_Service.Name=" & strService, "StartService")
wscript.echo "ReturnValue: " & objShare.ReturnValue & " (ReturnValue of 0 is a successful execution of StartService)"
Else
WScript.Quit
End If