# cxl-read-labels(1)

## NAME&#x20;

cxl-read-labels - read out the label area on a CXL memdev

## SYNOPSIS&#x20;

cxl read-labels \<mem0> \[\<mem1>..\<memN>] \[\<options>]

## DESCRIPTION&#x20;

The region label area is a small persistent partition of capacity available on some CXL memory devices. The label area is used to and configure or determine the set of memory devices participating in different interleave sets. This command dumps the raw binary data in a memdev’s label area to stdout or a file. In the multi-memdev case the data is concatenated.

## OPTIONS&#x20;

\<memory device(s)>&#x20;

&#x20;   A memX device name, or a memdev id number. Restrict the operation to the specified memdev(s). The keyword all can be specified to indicate the lack of any restriction.

-s, --size=&#x20;

&#x20;   Limit the operation to the given number of bytes. A size of 0 indicates to operate over the entire label capacity.

-O, --offset=&#x20;

&#x20;   Begin the operation at the given offset into the label area.

-v&#x20;

&#x20;   Turn on verbose debug messages in the library (if libcxl was built with logging and debug enabled).

-o, --output&#x20;

&#x20;   output file

## COPYRIGHT&#x20;

Copyright © 2016 - 2020, Intel Corporation. License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

## SEE ALSO&#x20;

[cxl-write-labels(1)](/ndctl-user-guide/v72.1/cxl-man-pages/cxl-write-labels-1.md), [cxl-zero-labels(1)](/ndctl-user-guide/v72.1/cxl-man-pages/cxl-zero-labels-1.md), CXL-2.0 9.13.2


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pmem.io/ndctl-user-guide/v72.1/cxl-man-pages/cxl-read-labels-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
