--- title: "openfilesquery list-open-files" slug: "openfilesquery-list-open-files" tags: ["5.4"] updated: 2026-10-28T01:53:01Z published: 2026-10-28T01:53:01Z canonical: "docs.vastdata.com/openfilesquery-list-open-files" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # openfilesquery list-open-files This command runs an existing query to list open files for a certain path. **NOTE**: This command is available starting with VAST Cluster 5.4.1. ## Usage ```plaintext openfilesquery list-open-files --id ID                              [--page-size COUNT]                              [--page PAGE-NUMBER] ``` ## Required Parameters | `--id ID` | The ID of the query to display. The ID can be obtained with the `openfilesquery list` command. | | --- | --- | ## Options | `--page-size COUNT` | Sets the maximum number of entries in an output page. Valid values: 1-1000. Default: 100. | | --- | --- | | `--page PAGE-NUMBER` | Displays a particular output page. By default, page 1 is displayed. Using this option requires that the page size (`--page-size`) is specified. | ## Example To run an open file query with ID 15: ```plaintext vcli: admin> openfilesquery list-open-files --id 15 Last query was launched at 2025-10-31 21:31:24. Use `openfilesquery create` to refresh it. +----+-----------------------------------------+-----------+---------------------+-----------+ | ID | Path                                    | Tenant-id | Open-files-query-id | Has-locks | +----+-----------------------------------------+-----------+---------------------+-----------+ | 20 | /OWT-SMB-01/Test.Directory/Test.File-03 | 1         | 15                  | False     | | 21 | /OWT-SMB-01/Test.Directory/Test.File-01 | 1         | 15                  | False     | | 22 | /OWT-SMB-01/Test.Directory/Test.File-04 | 1         | 15                  | False     | | 23 | /OWT-SMB-01/Test.Directory/Test.File-05 | 1         | 15                  | False     | +----+-----------------------------------------+-----------+---------------------+-----------+ ```