Skip to content

Commit

Permalink
[baseimage]: Add nvme-cli tool in both baseimage and pmon (#18967)
Browse files Browse the repository at this point in the history
Add nvme-cli utility tool for platforms using NVMe

How to verify it
root@str-D10-U32:~# nvme version
nvme version 2.3 (git 2.3)
libnvme version 1.3 (git 1.3)
root@str-D10-U32:~# 

root@str-D10-U32:~# nvme smart-log /dev/nvme0
Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning                        : 0
temperature                             : 43°C (316 Kelvin)
available_spare                         : 100%
available_spare_threshold               : 10%
percentage_used                         : 0%
endurance group critical warning summary: 0
Data Units Read                         : 4,421,218 (2.26 TB)
Data Units Written                      : 2,590,713 (1.33 TB)
host_read_commands                      : 26,514,410
host_write_commands                     : 30,359,625
controller_busy_time                    : 555
power_cycles                            : 222
power_on_hours                          : 2,528
unsafe_shutdowns                        : 219
media_errors                            : 0
num_err_log_entries                     : 0
Warning Temperature Time                : 18
Critical Composite Temperature Time     : 0
Temperature Sensor 2           : 43°C (316 Kelvin)
Temperature Sensor 3           : 30°C (303 Kelvin)
Temperature Sensor 6           : 43°C (316 Kelvin)
Thermal Management T1 Trans Count       : 4
Thermal Management T2 Trans Count       : 0
Thermal Management T1 Total Time        : 1337
Thermal Management T2 Total Time        : 0
root@str-D10-U32:~#
  • Loading branch information
prgeor authored May 16, 2024
1 parent b952caa commit 98fefc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
sysstat \
xxd \
wireless-regdb \
zstd
zstd \
nvme-cli

# Have systemd create the auditd log directory
sudo mkdir -p ${FILESYSTEM_ROOT}/etc/systemd/system/auditd.service.d
Expand Down
1 change: 1 addition & 0 deletions dockers/docker-platform-monitor/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN apt-get update && \
libpci3 \
iputils-ping \
pciutils \
nvme-cli \
ethtool && \
# smartmontools version should match the installed smartmontools in sonic_debian_extension build template
apt-get install -y -t bookworm-backports \
Expand Down

0 comments on commit 98fefc6

Please sign in to comment.