For Crestron Developer Use. The sample code demonstrates that get the Model Name, FW version and Serial No. of Transcend NVMe SSD.
Build Guide
-
compile the executable file
$g++ -static nvme_sn_tool.cpp nvme_util.cpp -o nvme_sn_tool
-
use <chmod +x> for sure you have proper right to execute the executable file
$chmod +x nvme_sn_tool
-
Usage
$sudo ./nvme_sn_tool /dev/nvmeX
show specific information of the NVMe device