add script for querying the status of machines