• Home
Name Date Size #Lines LOC

..--

40-usb-blacklist.rulesD06-Sep-2024458 1511

54-before-scsi-sg3_id.rulesD06-Sep-20242.3 KiB5639

55-scsi-sg3_id.rulesD06-Sep-20246.2 KiB11089

58-scsi-sg3_symlink.rulesD06-Sep-20242.8 KiB3934

59-fc-wwpn-id.rulesD06-Sep-2024624 1813

59-scsi-cciss_id.rulesD06-Sep-2024732 1913

Makefile.amD06-Sep-2024159 43

Makefile.inD06-Sep-202414.9 KiB519450

READMED06-Sep-20242.3 KiB5647

cciss_idD06-Sep-20241.7 KiB6738

fc_wwpn_idD06-Sep-20241.1 KiB5234

lunmask.serviceD06-Sep-2024238 129

rescan-scsi-bus.shD06-Sep-202439 KiB1,4371,210

scsi-enable-target-scan.shD06-Sep-2024395 1610

scsi_logging_levelD06-Sep-20248.4 KiB269226

scsi_mandatD06-Sep-20243.5 KiB13497

scsi_readcapD06-Sep-20241.3 KiB5843

scsi_readyD06-Sep-20241.1 KiB5741

scsi_satlD06-Sep-20243.7 KiB13591

scsi_startD06-Sep-20241.3 KiB5634

scsi_stopD06-Sep-20241.4 KiB5934

scsi_temperatureD06-Sep-2024936 4732

README

1                      README for sg3_utils/scripts
2                      ============================
3Introduction
4============
5This directory contains bash shell scripts. Most of them call one or
6more utilities from the sg3_utils package. They assume the sg3_utils
7package utilities are on the PATH of the user.
8
9rescan-scsi-bus.sh is written by Kurt Garloff (formerly from Suse Labs)
10with patches from Hannes Reinecke (Suse) and Redhat.
11
12scsi_logging_level is written by Andreas Herrmann <aherrman at de dot ibm
13dot com>. It sets the logging level of the SCSI subsystem in the Linux
142.6 series kernels. See that file for more information.
15
16The other scripts are written by the author. Some do testing while others
17do bulk tasks (e.g. stopping multiple disks).
18
19Details
20=======
21Each script supplies more information, typically by supplying a '-h'
22or '--help' option. The script source often contains explanatory
23information. Following is a usage summary with a one line description:
24   rescan-scsi-bus.sh [OPTIONS]
25        - see the output of 'rescan-scsi-bus.sh --help'
26   scsi_logging_level [OPTIONS]
27        - set Linux SCSI subsystem logging level
28   scsi_mandat [-h] [-L] [-q] <device>
29        - check for mandatory SCSI command support
30   scsi_readcap [-b] [-h] [-v] <device>+
31        - fetch capacity/size information for each <device>
32   scsi_ready [-h] [-v] <device>+
33        - check the media ready status on each <device>
34   scsi_satl [-h] [-L] [-q] [-v] <device>
35        - check <device> for SCSI to ATA Translation Layer (SATL)
36   scsi_start [-h] [-v] [-w] <device>+
37        - start media (i.e. spin up) in each <device>
38   scsi_stop [-h] [-v] [-w] <device>+
39        - stop media (i.e. spin down) in each <device>
40   scsi_temperature [-h] [-v] <device>+
41        - check temperature in each <device>
42
43These scripts assume that the main sg3_utils utilities are installed
44and are on the user's PATH.
45
46This directory, prior to sg3_utils-1.28, contained the sas_disk_blink
47script. Since it depends on the sdparm utility it has been moved to
48the sdparm package in its scripts directory.
49
5059-scsi-sg3_utils.rules is a Linux specific file for udev. These rules use
51'sg_inq --export' to help udev create identifying device nodes, for example
52/dev/disk/by-id/wwn-0x5001501234567890-part1.
53
54Douglas Gilbert
554th October 2021
56