---
title: Verify indexes
description: Verify that PingDS directory indexes correspond to current data and contain no errors using the verify-index command.
component: pingds
version: 8
page_id: pingds:config-guide:idx-verify
canonical_url: https://docs.pingidentity.com/pingds/8.1/config-guide/idx-verify.html
llms_txt: https://docs.pingidentity.com/pingds/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2024-12-12T14:58:04Z
keywords: ["LDAP", "Troubleshooting"]
superseded_by: https://docs.pingidentity.com/pingds/8.1/config-guide/idx-verify.html
---

# Verify indexes

You can verify that indexes correspond to current directory data, and do not contain errors. Use the `verify-index` command.

The following example verifies the `cn` index. Optionally, stop the server before running the command:

```console
$ stop-ds
$ verify-index \
 --baseDN dc=example,dc=com \
 --index cn \
 --clean \
 --countErrors
```

The output indicates whether any errors are found in the index.
