VMware vSphere 5.5 Cookbook
上QQ阅读APP看书,第一时间看更新

Verifying the profile compliance of an ESXi host

Once you have the ESXi hosts associated (attached) with a Host Profile of your choice, the host can be checked for compliance. The compliance check is done in the vCenter server.

In this section, you will learn how to check an ESXi host for compliance against an associated Host Profile.

How to do it…

The following procedure will guide you through the steps required to check an ESXi host for compliance:

  1. Connect to the vCenter server using the vSphere Web Client.
  2. Go to the vCenter Inventory Home tab and navigate to Rules and Profiles | Host Profiles.
  3. Click on the Host Profile, to bring up the Host Profile specific page.
  4. Navigate to Monitor | Compliance to see a list of ESXi hosts attached to the profile and their compliance status. If the compliance status of a host is Unknown, then it means it hasn't been checked for compliance yet:
    How to do it…
  5. Select the host and click on the Check Host Profile Compliance icon, to start the compliance check:
    How to do it…
  6. You should see a Check Host Profile Compliance task completed successfully in the Recent Tasks pane and the Host Compliance column should now indicate whether the host is compliant or non-compliant.

How it works…

Checking a host for compliance against an associated Host Profile will compare the host configuration with the configuration settings in the Host Profile. If any of the configuration policy/settings in the Host Profile are not present on the host, the host is tagged as non-compliant. Non-compliant hosts can be remediated to meet the configuration requirements.

You could also create a scheduled task to periodically run a Host Profile's compliance check on the hosts or the cluster attached to a Host Profile. This is done by selecting a Host Profile and then navigating to the Manage | Scheduled Tasks tab and creating a new scheduled task as shown in the following screenshot:

How it works…