Table of Contents

Hardware Tools & Commands

sg3_utils

Homepage: http://sg.danny.cz/sg/sg3_utils.html

“The sg3_utils package contains utilities that send SCSI commands to devices.”

sg_inq

#sg_inq /dev/sda
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  version=0x06  [SPC-4]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=0  3PC=0  Protect=0  [BQue=0]
  EncServ=0  MultiP=0  [MChngr=0]  [ACKREQQ=0]  Addr16=0
  [RelAdr=0]  WBus16=1  Sync=1  Linked=0  [TranDis=0]  CmdQue=1
    length=36 (0x24)   Peripheral device type: disk
 Vendor identification: VMware
 Product identification: Virtual disk
 Product revision level: 2.0

sginfo

#sginfo -i /dev/sda
INQUIRY response (cmd: 0x12)
----------------------------
Device Type                        0
Peripheral Qualifier               0
Removable                          0
Version                            6
NormACA                            0
HiSup                              0
Response Data Format               2
SCCS                               0
ACC                                0
ALUA                               0
3PC                                0
Protect                            0
BQue                               0
EncServ                            0
MultiP                             0
MChngr                             0
Addr16                             0
Relative Address                   0
Wide bus 16                        1
Synchronous neg.                   1
Linked Commands                    0
Command Queueing                   1
Vendor:                    VMware
Product:                   Virtual disk
Revision level:            2.0

lsblk

Homepage: https://github.com/karelzak/util-linux

Wiki: https://de.wikipedia.org/wiki/Util-linux

Lsblk use the filesystem /sys and udev to show details of block devices (e.g. sda).

#lsblk --noheadings --nodeps --include 8 --output name
sda

nvtop

github: https://github.com/Syllo/nvtop

htop

github: https://github.com/htop-dev/htop

[b|bash|bpy]top

github: https://github.com/aristocratos?tab=repositories



Authors:
  • Jochen Schnuerle