{
    "mode": "man",
    "parameter": "SCSI_LOGGING_LEVEL",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/SCSI_LOGGING_LEVEL/8/json",
    "generated": "2026-06-15T14:23:55Z",
    "synopsis": "scsilogginglevel  [--all=LEV]  [--create]  [--error=LEV] [--get] [--help] [--highlevel=LEV]\n[--hlcomplete=LEV]   [--hlqueue=LEV]   [--ioctl=LEV]    [--llcomplete=LEV]    [--llqueue=LEV]\n[--lowlevel=LEV]  [--midlevel=LEV]  [--mlcomplete=LEV]  [--mlqueue=LEV]  [--scan=LEV] [--set]\n[--timeout=LEV] [--version]",
    "sections": {
        "NAME": {
            "content": "scsilogginglevel - access Linux SCSI logging level information\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "scsilogginglevel  [--all=LEV]  [--create]  [--error=LEV] [--get] [--help] [--highlevel=LEV]\n[--hlcomplete=LEV]   [--hlqueue=LEV]   [--ioctl=LEV]    [--llcomplete=LEV]    [--llqueue=LEV]\n[--lowlevel=LEV]  [--midlevel=LEV]  [--mlcomplete=LEV]  [--mlqueue=LEV]  [--scan=LEV] [--set]\n[--timeout=LEV] [--version]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This bash shell script accesses the Linux SCSI subsystem logging level.  The  current  values\ncan be shown (e.g. with --get) or changed (e.g. with --set). Superuser permissions will typi‐\ncally be required to set the logging level.\n\nOne of these options: --create, --get or --set is required. Only one of them can be given.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Arguments to long options are mandatory for short options as well.\n",
            "subsections": [
                {
                    "name": "-a --all",
                    "content": "LEV is used for all SCSILOG fields.\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-c --create",
                    "content": "Options are parsed and placed in internal fields that are  displayed  but  no  logging\nlevels are changed within the Linux kernel.\n",
                    "flag": "-c",
                    "long": "--create"
                },
                {
                    "name": "-E --error",
                    "content": "LEV is placed in the SCSILOGERROR field.\n",
                    "flag": "-E",
                    "long": "--error"
                },
                {
                    "name": "-g --get",
                    "content": "Fetches the current SCSI logging levels from the Linux kernel and displays them.\n",
                    "flag": "-g",
                    "long": "--get"
                },
                {
                    "name": "-h --help",
                    "content": "print out the usage message then exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-H --highlevel",
                    "content": "LEV is placed in the SCSILOGHLQUEUE and SCSILOGHLCOMPLETE fields.\n\n--hlcomplete=LEV\nLEV is placed in the SCSILOGHLCOMPLETE field.\n\n--hlqueue=LEV\nLEV is placed in the SCSILOGHLQUEUE field.\n",
                    "flag": "-H",
                    "long": "--highlevel"
                },
                {
                    "name": "-I --ioctl",
                    "content": "LEV is placed in the SCSILOGIOCTL field.\n\n--llcomplete=LEV\nLEV is placed in the SCSILOGLLCOMPLETE field.\n\n--llqueue=LEV\nLEV is placed in the SCSILOGLLQUEUE field.\n",
                    "flag": "-I",
                    "long": "--ioctl"
                },
                {
                    "name": "-L --lowlevel",
                    "content": "LEV is placed in the SCSILOGLLQUEUE and SCSILOGLLCOMPLETE fields.\n",
                    "flag": "-L",
                    "long": "--lowlevel"
                },
                {
                    "name": "-M --midlevel",
                    "content": "LEV is placed in the SCSILOGMLQUEUE and SCSILOGMLCOMPLETE fields.\n\n--mlcomplete=LEV\nLEV is placed in the SCSILOGMLCOMPLETE field.\n\n--mlqueue=LEV\nLEV is placed in the SCSILOGMLQUEUE field.\n",
                    "flag": "-M",
                    "long": "--midlevel"
                },
                {
                    "name": "-S --scan",
                    "content": "LEV is placed in the SCSILOGSCAN field.\n",
                    "flag": "-S",
                    "long": "--scan"
                },
                {
                    "name": "-s --set",
                    "content": "Uses  the fields specified in this command's options and attempts to apply them to the\nLinux SCSI subsystem logging levels. Typically superuser permissions will be  required\nto do this.\n",
                    "flag": "-s",
                    "long": "--set"
                },
                {
                    "name": "-T --timeout",
                    "content": "LEV is placed in the SCSILOGTIMEOUT field.\n",
                    "flag": "-T",
                    "long": "--timeout"
                },
                {
                    "name": "-v --version",
                    "content": "Outputs the version information and then exits.\n",
                    "flag": "-v",
                    "long": "--version"
                }
            ]
        },
        "NOTES": {
            "content": "The --get and --set options access the /proc/sys/dev/scsi/logginglevel pseudo file.\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "The  exit  status  of this script is 0 when it is successful. Any other exit status indicates\nthat an error has occurred.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "The following will set SCSILOGERROR to level 5 in the Linux kernel. It requires  root  per‐\nmissions:\n\nscsilogginglevel -s -E 5\n\nSo as to not interfere with other SCSI subsystem upper level drivers (ULDs) which most likely\nwill be active at the same time, the Linux sg driver uses SCSILOGTIMEOUT for  logging  pur‐\nposes. To see full debugging and trace from the sg driver use:\n\nscsilogginglevel -s -T 7\n\nThe  output  from the sg driver caused by this will go to the system logs (e.g. /var/log/sys‐\nlog). To reduce the amount of output use a number lower than 7. Using 0  will  turn  off  the\ntracing and debug.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Written by IBM. Small alterations by Douglas Gilbert.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <dgilbert at interlog dot com>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © IBM Corp. 2006\nThis software is distributed under the GPL version 2. There is NO warranty; not even for MER‐\nCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\nThe software was obtained from an IBM package called s390-tools-1.6.2 found on that company's\n\"developerworks\" site. The most recent version of that package at this time is 1.8.3 .\n\n\n\nsg3utils-1.45                             September 2018                      SCSILOGGINGLEVEL(8)",
            "subsections": []
        }
    },
    "summary": "scsilogginglevel - access Linux SCSI logging level information",
    "flags": [
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "LEV is used for all SCSILOG fields."
        },
        {
            "flag": "-c",
            "long": "--create",
            "arg": null,
            "description": "Options are parsed and placed in internal fields that are displayed but no logging levels are changed within the Linux kernel."
        },
        {
            "flag": "-E",
            "long": "--error",
            "arg": null,
            "description": "LEV is placed in the SCSILOGERROR field."
        },
        {
            "flag": "-g",
            "long": "--get",
            "arg": null,
            "description": "Fetches the current SCSI logging levels from the Linux kernel and displays them."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "print out the usage message then exit."
        },
        {
            "flag": "-H",
            "long": "--highlevel",
            "arg": null,
            "description": "LEV is placed in the SCSILOGHLQUEUE and SCSILOGHLCOMPLETE fields. --hlcomplete=LEV LEV is placed in the SCSILOGHLCOMPLETE field. --hlqueue=LEV LEV is placed in the SCSILOGHLQUEUE field."
        },
        {
            "flag": "-I",
            "long": "--ioctl",
            "arg": null,
            "description": "LEV is placed in the SCSILOGIOCTL field. --llcomplete=LEV LEV is placed in the SCSILOGLLCOMPLETE field. --llqueue=LEV LEV is placed in the SCSILOGLLQUEUE field."
        },
        {
            "flag": "-L",
            "long": "--lowlevel",
            "arg": null,
            "description": "LEV is placed in the SCSILOGLLQUEUE and SCSILOGLLCOMPLETE fields."
        },
        {
            "flag": "-M",
            "long": "--midlevel",
            "arg": null,
            "description": "LEV is placed in the SCSILOGMLQUEUE and SCSILOGMLCOMPLETE fields. --mlcomplete=LEV LEV is placed in the SCSILOGMLCOMPLETE field. --mlqueue=LEV LEV is placed in the SCSILOGMLQUEUE field."
        },
        {
            "flag": "-S",
            "long": "--scan",
            "arg": null,
            "description": "LEV is placed in the SCSILOGSCAN field."
        },
        {
            "flag": "-s",
            "long": "--set",
            "arg": null,
            "description": "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."
        },
        {
            "flag": "-T",
            "long": "--timeout",
            "arg": null,
            "description": "LEV is placed in the SCSILOGTIMEOUT field."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Outputs the version information and then exits."
        }
    ],
    "examples": [
        "The following will set SCSILOGERROR to level 5 in the Linux kernel. It requires  root  per‐",
        "missions:",
        "scsilogginglevel -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 SCSILOGTIMEOUT for  logging  pur‐",
        "poses. To see full debugging and trace from the sg driver use:",
        "scsilogginglevel -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."
    ],
    "see_also": []
}