# phpman > man > sg_zone(8)

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



## NAME
       sg_zone - send a SCSI ZONE modifying command

## SYNOPSIS
       **sg**___**zone**  [_--all_]  [_--close_]  [_--count=ZC_] [_--element=EID_] [_--finish_] [_--help_] [_--open_] [_--re__‐
       _move_] [_--sequentialize_] [_--verbose_] [_--version_] [_--zone=ID_] _DEVICE_

## DESCRIPTION
       Sends a SCSI OPEN ZONE, CLOSE ZONE, FINISH ZONE, REMOVE ELEMENT AND MODIFY ZONES  or  SEQUEN‐
       TIALIZE  ZONE  command to the _DEVICE_. All but the last two are found in the ZBC standard (IN‐
       CITS 536-2016). The REMOVE ELEMENT AND MODIFY ZONES command was added in  zbc2r07  while  the
       SEQUENTIALIZE ZONE command was added in zbc2r01b.

       One  and  only one of the _--open_, _--close_, _--finish_, _--remove_ and _--sequentialize_ options can
       be chosen.

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

### -a --all
              sets the ALL field in the cdb.

### -c --close
              causes the CLOSE ZONE command to be sent to the _DEVICE_.

### -C --count
              ZC is placed in the Zone Count field in the cdb of all four commands supported by this
              utility. ZC should be a value from 0 to 65535 (0xffff) inclusive.

### -e --element
              where _EID_ is an element identifier which is a 32 bit unsigned integer starting at one.
              This field is used by the REMOVE ELEMENT AND MODIFY  ZONES  command  and  its  default
              value  is zero (which is invalid). So the user needs to supply a valid element identi‐
              fier when _--remove_ is used.

### -f --finish
              causes the FINISH ZONE command to be sent to the _DEVICE_.

### -h --help
              output the usage message then exit.

### -o --open
              causes the OPEN ZONE command to be sent to the _DEVICE_.

### -r --remove
              causes the REMOVE ELEMENT AND MODIFY ZONES command to be sent to the _DEVICE_. In  prac‐
              tice, _--element=EID_ needs to be also given.

### -S --sequentialize
              causes the SEQUENTIALIZE ZONE command to be sent to the _DEVICE_.

### -v --verbose
              increase the level of verbosity, (i.e. debug output).

### -V --version
              print the version string and then exit.

### -z --zone
              where _ID_ is placed in the cdb's ZONE ID field. A zone id is a zone start logical block
              address (LBA). The default value is 0. _ID_ is assumed to be in decimal unless  prefixed
              with '0x' or has a trailing 'h' which indicate hexadecimal.

## EXIT STATUS
       The  exit  status  of  sg_zone is 0 when it is successful. Otherwise see the [sg3_utils(8)](https://www.chedong.com/phpMan.php/man/sg3utils/8/markdown) man
       page.

## AUTHORS
       Written by Douglas Gilbert.

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

## COPYRIGHT
       Copyright © 2014-2021 Douglas Gilbert
       This software is distributed under a FreeBSD license. There is NO warranty; not even for MER‐
       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

## SEE ALSO
       **sg**___**rep**___**zones,sg**___**reset**___**wp(sg3**___**utils)**



sg3_utils-1.43                              January 2021                                  [SG_ZONE(8)](https://www.chedong.com/phpMan.php/man/SGZONE/8/markdown)
