tcgdiskstat

command
v0.8.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

README

tcgdiskstat

Utility like blkid or lsscsi meant to be used to display state of disks supporting TCG Storage standards.

It is read-only and does not authenticate or open sessions against the drive.

Example usage:

$ tcgdisksstat
DEVICE         MODEL                    SERIAL                 FIRMWARE   PROTOCOL   SSC        STATE
/dev/nvme0n1   Sabrent Rocket 4.0 2TB   A0D6070C1EA788206263   RKT401.3   NVMe       Pyrite 1   lP

You can also use the JSON output together with example jq:

# Select a specific device
$ tcgdiskstat --output json | jq '.[] | select(.Device == "/dev/nvme0n1")'

# Grab specific properties for all devices
$ tcgdiskstat --output json | jq -r '. | map(.Device, .Identity.Model, .Level0.Locking.LockingSupported)'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL