aboutsummaryrefslogtreecommitdiff
path: root/sbin/camcontrol/camcontrol.8
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/camcontrol/camcontrol.8')
-rw-r--r--sbin/camcontrol/camcontrol.835
1 files changed, 26 insertions, 9 deletions
diff --git a/sbin/camcontrol/camcontrol.8 b/sbin/camcontrol/camcontrol.8
index 3d65487cc60e..bdda1828abf5 100644
--- a/sbin/camcontrol/camcontrol.8
+++ b/sbin/camcontrol/camcontrol.8
@@ -25,9 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
-.Dd October 20, 2021
+.Dd December 28, 2023
.Dt CAMCONTROL 8
.Os
.Sh NAME
@@ -53,6 +51,12 @@
.Op device id
.Op generic args
.Nm
+.Ic sense
+.Op device id
+.Op generic args
+.Op Fl D
+.Op Fl x
+.Nm
.Ic inquiry
.Op device id
.Op generic args
@@ -377,9 +381,10 @@
.Sh DESCRIPTION
The
.Nm
-utility is designed to provide a way for users to access and control the
+utility allows users to access and control the
.Fx
-CAM subsystem.
+CAM subsystem described in
+.Xr cam 4 .
.Pp
The
.Nm
@@ -489,6 +494,15 @@ Send the SCSI test unit ready (0x00) command to the given device.
The
.Nm
utility will report whether the device is ready or not.
+.It Ic sense
+Send a SCSI REQUEST SENSE command (0x03) to a device.
+The decoded sense (or hexdump) is printed to stdout.
+.Bl -tag -width 4n
+.It Fl D
+Request descriptor sense instead of fixed sense.
+.It Fl x
+Do a hexdump of the returned sense data.
+.El
.It Ic inquiry
Send a SCSI inquiry command (0x12) to a device.
By default,
@@ -510,7 +524,7 @@ This is to aid in script writing.
Print out transfer rate information.
.El
.It Ic identify
-Send a ATA identify command (0xec) to a device.
+Send an ATA identify command (0xec) to a device.
.It Ic reportluns
Send the SCSI REPORT LUNS (0xA0) command to the given device.
By default,
@@ -746,7 +760,7 @@ Disable block descriptors for mode sense.
Display/edit block descriptors instead of mode page.
.It Fl L
Use long LBA block descriptors.
-Allows number of LBAs bigger then 2^^32.
+Allows number of LBAs bigger than 2^^32.
.It Fl b
Displays mode page data in binary format.
.It Fl e
@@ -763,7 +777,7 @@ The editor will be invoked if
detects that standard input is terminal.
.It Fl l
Lists all available mode pages.
-If specified more then once, also lists subpages.
+If specified more than once, also lists subpages.
.It Fl m Ar page[,subpage]
This specifies the number of the mode page and optionally subpage the user
would like to view and/or edit.
@@ -1686,6 +1700,8 @@ Tested with Constellation ES (ST32000444SS), ES.2 (ST33000651SS) and
ES.3 (ST1000NM0023) drives.
.It SmrtStor
Tested with 400GB Optimus SSDs (TXA2D20400GA6001).
+.It TOSHIBA
+Tested with 22TB MG10SFA22TE SAS drives.
.El
.Pp
.Em WARNING! WARNING! WARNING!
@@ -2314,7 +2330,7 @@ For the Report Zones command, specify a subset of zones to report.
.It all
Report all zones.
This is the default.
-.It emtpy
+.It empty
Report only empty zones.
.It imp_open
Report zones that are implicitly open.
@@ -2971,6 +2987,7 @@ that was created using this format string.
.Xr cam 4 ,
.Xr pass 4 ,
.Xr xpt 4 ,
+.Xr diskinfo 8 ,
.Xr trim 8 ,
.Xr zonectl 8
.Sh HISTORY