XCENA Debugging Helper CLI Guide
xcena_cli is the XCENA command-line interface (CLI). Use it to query device state and manage firmware.
With independent SDK containers, perform firmware changes, resets and other state-changing device administration only after stopping the tenants and following the guide’s maintenance procedure.
xcena_clicannot open the devices while/etc/pxl-coordinator/enabledexists. Use hostpxltoporpxl-coordinator-statusto monitor shared reservations.
Installation Requirements
The SDK includes xcena_cli; no separate Python package installation is required.
Getting Started
To run the CLI, execute the xcena_cli file as follows:
user@linux-pc:~$ xcena_cli
Basic Options
--help: Displays command usage and descriptions.
Usage: xcena_cli [OPTIONS] COMMAND [ARGS]...
XCENA Debugging Helper
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
device-info <device_id>
fw-info <device_id>
fw-switch <device_id> <slot_id>
fw-update <device_id> <slot_id> <firmware_path>
num-device
read-log <device_id> <sub_id> <clst_id> <mu_id> <thread_id>
telemetry <device_id>: collect the device's diagnostic dump
Command List
num-device
- Displays the number of currently connected devices.
# Input example
user@linux-pc:~$ xcena_cli num-device
# Output example
Number of devices : 1
device-info
- Queries information about a specific device.
# Input example
# device-info <device_id>
user@linux-pc:~$ xcena_cli device-info 0
# Output example
[Device 0]
Target : mx1p # Device target
BDF : 0000:95:00.0 # PCIe Bus:Device.Function
CXL Memory : 233GiB # Total CXL memory capacity
Computable : Yes # Whether the device supports compute
MU Cores : 3,072 (24 Subsystem × 4 Cluster × 32 MU Core) # Total MU Cores with topology breakdown
read-log
- Reads the log buffer of a specific Slave MU thread.
This command can fail with
Invalid log metawhen the firmware reports inconsistent log-buffer dimensions. If it does, collect troubleshooting logs and share them with the XCENA support team.
# Input example
# read-log <device_id> <sub_id> <clst_id> <mu_id> <thread_id> [--mode char|hex] [--length N] [--endian little|big]
user@linux-pc:~$ xcena_cli read-log 0 0 0 0 0
telemetry
- Collects a diagnostic dump by running the firmware’s system-information, crash-context, log, PCU and CXL diagnostic steps.
A telemetry error can mean that an individual diagnostic step failed; it does not by itself mean the firmware lacks the command. If it fails, run
device-infoseparately to inspect device state.
# Input example
# telemetry <device_id>
user@linux-pc:~$ xcena_cli telemetry 0
fw-info
- Displays CXL firmware/device information for the specified device.
- Requires root privileges.
# Input example
# fw-info <device_id>
user@linux-pc:~$ sudo xcena_cli fw-info 0
# Output example
Device Information for 0000:11:00.0:
Firmware Revision: xcena-1.0.0
Total Capacity: 4,294,967,296 bytes
FW Slots Supported: 4
Active Slot: 1
Staged Slot: 0
Online Activation: No
Slot Revisions:
SLOT1: 1.0
SLOT2: 1.1
SLOT3: 1.2
SLOT4: 1.3
fw-update
- Updates CXL firmware for the specified device via mailbox. Arguments are positional:
<device_id> <slot_id> <firmware_path>. - For physical devices; requires root privileges.
# Input example
# fw-update <device_id> <slot_id> <firmware_path> [--timeout SECONDS]
user@linux-pc:~$ sudo xcena_cli fw-update 0 2 fw.bin
# Output example
Transfer progress: 21% (100/456)
Transfer progress: 43% (200/456)
Transfer progress: 65% (300/456)
Transfer progress: 87% (400/456)
Firmware update completed successfully!
Slot 2 is staged for the next cold reset.
slot_idmust not be the active slot; writing to the active slot is refused.
fw-switch
- Switches the active firmware slot on a CXL device. Automatically detects online activation support and selects the appropriate activation method.
- For physical devices; requires root privileges.
# Input example
# fw-switch <device_id> <slot_id>
user@linux-pc:~$ sudo xcena_cli fw-switch 0 3
# Output example (cold reset device)
Current active slot: 2
Target slot: 3 (revision: 1.0.1)
Activating firmware in slot 3...
Firmware slot 3 staged. Cold reset required to apply.
# Output example (online activation device)
Current active slot: 2
Target slot: 3 (revision: 1.0.1)
Activating firmware in slot 3...
Firmware activation completed. Active slot switched to 3.
# Edge cases
# Already active slot
user@linux-pc:~$ sudo xcena_cli fw-switch 0 3
Slot 3 is already the active slot.
# Empty slot
user@linux-pc:~$ sudo xcena_cli fw-switch 0 2
Error: Slot 2 is empty. Cannot activate an empty firmware slot.