1. Navigate to Script Editor (Administration > Tooling > Script Console > Scripts tab):
- Click the Add button
- Paste in the attached groovy script in the Script box
- Change the Host value for the hostname you want to search (remember to check whether you will search with or without Fully qualified domain name):
def targetHostnames=["host"];
2. The output should return the following information:
A. Search Hosts By Names
B. Search Hosts By SystemIds
C. Println All match host. This option will retrieve all this information:
Host name
uniqueId
monitoringAgent
lastUpdated
effectiveStartDate
systemId
vmId
primaryIpAddress
monitoredHost
cpus
D. Agents. This option will show all agents where that host is configured.