Automations
All questions related to Workflow Automation, AutomationEngine, and EdgeConnect, as well as integrations with various tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

use builtin: formula to get list of host and their properties in that management zone

ushag
Visitor

How can I use a builtin: query to list all my host and their IP 

 

builtin:pgi.availability.state:filter(in("dt.entity.host",entitySelector("type(~"HOST~"), tag(~"[Environment]IP:~")")))

1 REPLY 1

anuj-jain08
Participant

Hello @ushag,

You can use below DQL:

smartscapeNodes "HOST"
| filter matchesValue(name,"<your management Zone>")
| fieldsAdd managementZone = name
| fields
    managementZone,
    id,
    host.name,
    os.type,
    os.version,
    cloud.provider,
    aws.region,
    azure.location,
    host.logical.cpu.cores,
    host.physical.memory,
    host.ip_addresses
| fieldsAdd memory_gb = round(toDouble(host.physical.memory) / 1024 / 1024 / 1024, decimals: 1)
| sort host.name asc

 

Featured Posts