vRanger Pro Powershell: Could not connect to http://localhost:2480/VAPIHost.svc

I recently compiled a number of powershell scripts (https://deangrant.wordpress.com/2013/10/01/report-job-status-from-vranger-to-nagios/)  with the vRanger Pro Powershell snap-in which queried the job status, using the Get-JobTemplate cmdlet.

I have since noticed I have received an error message on a number of occasions where the status is failed to be retrieved with the following:

Get-JobTemplate : Could not connect to http://localhost:2480/VAPIHost.svc. TCP

In order to resolve this issue and have the status information be returned, I made the following change to the configuration file ‘C:\Program Files (x86)\Quest Software\vRanger\PowerShell\vRanger.API.PowerShell.dll.config’ to increase the openTimeout value from the original configuration of 00:01:00 to 00:03:00 and restarted the vRanger API service and the cmdlet to retrieve the job status no seems to be more stable.

openTimeout="00:03:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s