Configure Proxy settings for VSAN Health-Check Plugin(CLI)

VSAN Health-Check

This post will be quite short.

As you may know the VSAN health-check plugin has a possibility to automatically download HCL and compare your configuration against it.

While in some environments it can be normal to provide internet access to vCenter server machine, in most enterprises vCenter servers are placed in a secured private network with no internet access at all.

In such situation there are 2 ways to proceed.

You can either proceed with downloading the offline HCL file form internet ad feeding it to vCenter manually. This approach is very well covered by William Lam in this blogpost.

Another way is to configure proxy server for VSAN health plugin. The way to do it is either CLI or from vSphere WEB client by navigating to General settings of VSAN on your Clsuter.

Initially i was thinking that configuring proxy server on vCenter appliance will work. But after i did it I discovered that VSAN health-check plugin ignores those settings. And while the easi way it to do it from GUI, I started looking ofr an alternative way. I started digging and found this great document from Cormac Hogan

I spent some time reading it and here is how you configure Proxy server for VSAN health-plugin using CLI..

As with many other advanced configurations, you will need to do it using RVC. So login to you vCenter appliance using SSH, run rvc agains your vcenter server IP, once asked for password use your SSO admin user, in my case its [email protected]

I will not go deep in RVC, it’s a very strong tool and quite well documented. You can run help or –help and see available options for all commands.

So, I will just show how to configure the proxy.

You need to run the configuration agains VSAN cluster. Theoretically, if you have several VSAN clusters under same vCenter you need to run agains each. But HCL is downloaded once and saved on vCenter, so when i configured proxy for one cluster HCL became available on all others.

Here is how you configure proxy for one cluster:

You will just need to replace the following:

  • VCENTER: IP or hostname of your vCenter, the one you used when launching rvc.
  • DATACENTER: Name of the datacenter you use in vCenter inventory.
  • CLUSTER: Cluster name
  • IPOFPROXYSERVER: IP of Proxy server.
  • PORT: Port number used by Proxy server

In my case the command looked like this:

Thats it, as simple as that.

Hope this helps.

 

 

The following two tabs change content below.
Aram Avetisyan is an IT specialist with more than 15 years experience. He has rich background in various IT related fields like Cloud, Virtualization, SDN, Disaster Recovery, and so on. He holds several industry level certifications including but not limited to VCIX6-DCV, VCIX6-NV, VCAP-CIA. As VCI Aram is delivering VMware authorised courses. For his contribution to the community, he was recognised as vEXPERT in years 2014, 2015 and 2016.

About Aram Avetisyan

Aram Avetisyan is an IT specialist with more than 15 years experience. He has rich background in various IT related fields like Cloud, Virtualization, SDN, Disaster Recovery, and so on. He holds several industry level certifications including but not limited to VCIX6-DCV, VCIX6-NV, VCAP-CIA. As VCI Aram is delivering VMware authorised courses. For his contribution to the community, he was recognised as vEXPERT in years 2014, 2015 and 2016.

Bookmark the permalink.

Comments are closed