1. A method of querying operating system states of multiple hosts in a cluster, comprising receiving a Structure Query Language (SQL) query to determine the operating system states of the multiple hosts in the cluster; aggregating, from each of the multiple hosts, operating system state information in response to receiving the SQL query; creating a temporary database for storing the operating system state information; and executing the SQL query on the temporary database to obtain as results the operating system states of the multiple hosts.