sdparm is an open source, multiplatform and free command-line utility can be used by Linux users to collect and setup SCSI mode page fields on storage devices. It features support for several SCSI vendor-specific and transport mode pages. sdparm is written in the C programming language.
Can decode VPD pages and sends simple SCSI commands
The sdparm utility can also decode VPD (Vital Product Data) pages, as well as to send various simple SCSI (Small Computer System Interface) commands. The application was originally designed for Linux, but it was later ported to FreeBSD, Tru64, Solaris, and Microsoft Windows operating systems.
It features several command-line options, which, for example, allow users to view the number of blocks, as well as the block capacity and length, to stop the medium and ejects it, to load the medium, to view if the medium is ready for IO, as well as to view power condition information.
In addition, users will be able to spin up and down the medium, to list all known fields for a certain SCSI device, to clear field values, to perform a command, such as eject, on a given device, to set the DBD bit in mode sense cdb, or to report the number of mode page descriptors.
Getting started with sdparm
Installing sdparm in a GNU/Linux operating system is the easiest of tasks, as you will only have to run the ‘./configure && make’ command in a terminal emulator to compile the program and create an executable, which can be installed system wide by running the ‘make install’ command.
Run the ‘sdparm’ command to view to view available options and usage examples. Alternatively, you can use the program without installation directly from the /src directory after a successful compilation process by running the ‘./sdparm’ command.