Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. IT Analytics Help
  3. Section IV. End user
  4. Work with the SQL template designer
  5. Example of a Table SQL Template: Host Group Membership List

Example of a Table SQL Template: Host Group Membership List

The following example reports on host group membership, in display name order.

  1. In the SQL Template Designer, check only Host Groups and Client Scope.

  2. In the Query window, enter the following select statement and click Validate Query:

    SELECT g.group_name, s.server_id, s.display_name client,
    s.hostname, s.ip_address
      FROM apt_v_group_member m, apt_v_group g, apt_v_server s
     WHERE g.group_id = m.group_id
       AND m.child_type = 2 --Server (excludes children that are host groups)
       AND m.child_id = s.server_id
       AND s.server_id IN (${hosts})
    ORDER BY s.display_name, g.group_name
    
  3. In the Formatting window, select the fields to be displayed. For this example, it makes sense to select all and display the report as a Table.

  4. Click Next, enter a report name and select a Menu Group. Then, click Finish.

  5. When you run this report, you can modify the scope to generate the report for a specific host group. The output will look something like this:

  6. Note that the column header "client" was substituted for the field name, as specified in the query. You can specify similar substitutions using the Formatting window in the SQL Template Designer.

  7. Since this query is ordered by display name and then group name, it may be more reasonable to display the output in a similar fashion. Use the Formatting tab to re-arrange the table columns (Move Up, Move Down).

    See Format the SQL Template Output.

Feedback

Was this page helpful?
Previous

Configure a Table in the SQL Template Designer

Next

Example of a Table SQL Template: Exposed Clients

Feedback

Was this page helpful?