# phpman > man > SCSI_LOGGING_LEVEL(8)

[SCSI_LOGGING_LEVEL(8)](https://www.chedong.com/phpMan.php/man/SCSILOGGINGLEVEL/8/markdown)                         SG3_UTILS                        [SCSI_LOGGING_LEVEL(8)](https://www.chedong.com/phpMan.php/man/SCSILOGGINGLEVEL/8/markdown)



## NAME
       scsi_logging_level - access Linux SCSI logging level information

## SYNOPSIS
       **scsi**___**logging**___**level**  [_--all=LEV_]  [_--create_]  [_--error=LEV_] [_--get_] [_--help_] [_--highlevel=LEV_]
       [_--hlcomplete=LEV_]   [_--hlqueue=LEV_]   [_--ioctl=LEV_]    [_--llcomplete=LEV_]    [_--llqueue=LEV_]
       [_--lowlevel=LEV_]  [_--midlevel=LEV_]  [_--mlcomplete=LEV_]  [_--mlqueue=LEV_]  [_--scan=LEV_] [_--set_]
       [_--timeout=LEV_] [_--version_]

## DESCRIPTION
       This bash shell script accesses the Linux SCSI subsystem logging level.  The  current  values
       can be shown (e.g. with _--get_) or changed (e.g. with _--set_). Superuser permissions will typi‐
       cally be required to set the logging level.

       One of these options: _--create_, _--get_ or _--set_ is required. Only one of them can be given.

## OPTIONS
       Arguments to long options are mandatory for short options as well.

### -a --all
              _LEV_ is used for all SCSI_LOG fields.

### -c --create
              Options are parsed and placed in internal fields that are  displayed  but  no  logging
              levels are changed within the Linux kernel.

### -E --error
              _LEV_ is placed in the SCSI_LOG_ERROR field.

### -g --get
              Fetches the current SCSI logging levels from the Linux kernel and displays them.

### -h --help
              print out the usage message then exit.

### -H --highlevel
              _LEV_ is placed in the SCSI_LOG_HLQUEUE and SCSI_LOG_HLCOMPLETE fields.

       **--hlcomplete**=_LEV_
              _LEV_ is placed in the SCSI_LOG_HLCOMPLETE field.

       **--hlqueue**=_LEV_
              _LEV_ is placed in the SCSI_LOG_HLQUEUE field.

### -I --ioctl
              _LEV_ is placed in the SCSI_LOG_IOCTL field.

       **--llcomplete**=_LEV_
              _LEV_ is placed in the SCSI_LOG_LLCOMPLETE field.

       **--llqueue**=_LEV_
              _LEV_ is placed in the SCSI_LOG_LLQUEUE field.

### -L --lowlevel
              _LEV_ is placed in the SCSI_LOG_LLQUEUE and SCSI_LOG_LLCOMPLETE fields.

### -M --midlevel
              _LEV_ is placed in the SCSI_LOG_MLQUEUE and SCSI_LOG_MLCOMPLETE fields.

       **--mlcomplete**=_LEV_
              _LEV_ is placed in the SCSI_LOG_MLCOMPLETE field.

       **--mlqueue**=_LEV_
              _LEV_ is placed in the SCSI_LOG_MLQUEUE field.

### -S --scan
              _LEV_ is placed in the SCSI_LOG_SCAN field.

### -s --set
              Uses  the fields specified in this command's options and attempts to apply them to the
              Linux SCSI subsystem logging levels. Typically superuser permissions will be  required
              to do this.

### -T --timeout
              _LEV_ is placed in the SCSI_LOG_TIMEOUT field.

### -v --version
              Outputs the version information and then exits.

## NOTES
       The _--get_ and _--set_ options access the /proc/sys/dev/scsi/logging_level pseudo file.

## EXIT STATUS
       The  exit  status  of this script is 0 when it is successful. Any other exit status indicates
       that an error has occurred.

## EXAMPLES
       The following will set SCSI_LOG_ERROR to level 5 in the Linux kernel. It requires  root  per‐
       missions:

         scsi_logging_level -s -E 5

       So as to not interfere with other SCSI subsystem upper level drivers (ULDs) which most likely
       will be active at the same time, the Linux sg driver uses SCSI_LOG_TIMEOUT for  logging  pur‐
       poses. To see full debugging and trace from the sg driver use:

         scsi_logging_level -s -T 7

       The  output  from the sg driver caused by this will go to the system logs (e.g. /var/log/sys‐
       log). To reduce the amount of output use a number lower than 7. Using 0  will  turn  off  the
       tracing and debug.

## AUTHORS
       Written by IBM. Small alterations by Douglas Gilbert.

## REPORTING BUGS
       Report bugs to <dgilbert at interlog dot com>.

## COPYRIGHT
       Copyright © IBM Corp. 2006
       This software is distributed under the GPL version 2. There is NO warranty; not even for MER‐
       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

       The software was obtained from an IBM package called s390-tools-1.6.2 found on that company's
       "developerworks" site. The most recent version of that package at this time is 1.8.3 .



sg3_utils-1.45                             September 2018                      [SCSI_LOGGING_LEVEL(8)](https://www.chedong.com/phpMan.php/man/SCSILOGGINGLEVEL/8/markdown)
