Name
  Hugo

Copyright
  Western Digital Corporation (c) 2014-2019

Description:
  HUGO is a CL tool used to perform maintenance functions on HGST devices. Any of the HUGO commands may be executed as a one time command from the terminal or from within the interactive session.
  Root authority is required to execute the HUGO CL tool.

Linux Install Instructions:
  RPM
      rpm -Uvh <hugo_package_name>.rpm

  Debian
      sudo dpkg -i <hugo_package_name>.deb

  Local
      tar xzvf <hugo_package_name>.tar.gz


Windows Install:
  Run the HUGO-6.x.x-win32.exe installer
  From the installed directory run hugo.exe with Administrator privileges

Usage:
  description
      With root authority, start the application by running one of the following:
      hugo   <---    launch interactive session
      hugo <command> [command options]   <---    run command

  Commands:
      a, abort
          Abort a running self test.

      e, erase
          Erase all or part of the device.

      do-not-operate
          Add a device to the list of do not operate devices.

      f, format
          Format a device.

      eula
          Show the End User License Agreement.

      h, help
          Show the command help output.

      l, logdump
          Dump logs from devices.

      q, quit
          Exit the CLI.

      s, show
          Show a list of connected devices. Also refreshes device list.

      sanitize
          Sanitize a device.

      t, test
          Run a drive self test.

      unmap
          Unmap all LBAs.

      u, update
          Update device Firmware.

      psid
          Send a PSID string to a device.

      v, version
          Show the version information.


Abort Command Usage:
  description
      abort {-s <serial number> | -m <model number> | -g <device path> | -a} [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-h]

  -s <serial number>, --serial <serial number>
      abort running DST on drive with the given serial number

  -m <model number>, --model <model number>
      abort running DST on all connected drives with the given model string

  -g <device path>, --target <device path>
      (accepted multiple times)(OR required)  Operate on targets with device handles specified by
      this option. See README for more detail.

  -a, --all
      abort running DST on all connected (not locked) devices

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -h, --help
      display command help text


Show Command Usage:
  description
      show [--device] [--customer-id] [--hgst-firmware] [-l] [-b] [-w] [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-g* <device path>] ... [-h]

  --device
      Show the drive device paths if available.

  --customer-id
      Show the customer ID and hgst internal firmware.

  --hgst-firmware
      show the HGST firmware revision for each device

  -l, --locked
      show locked devices

  -b, --block-size
      Show the block size of each device

  -w, --wwn
      show the world wide name of each device

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -g <device path>, --target <device path>
      Filter out devices target(s) NOT specified by this option.
      Adding device handles via this option will prevent other drives from being shown.
      For an example in Linux, "hugo s --target /dev/sg6 --target /dev/sg7" would only
      show up to two drives which matched those devices.
      Device handles can be acquired by running a standard show with the --device option
      and then using the first value given in the "Device handles" list for a drive.
      *This option is not available in interactive mode.

  -h, --help
      display command help text

  Columns displayed on the show command
      Manuf
          Manufacturer of the device

      Model
          Model number of the device

      Serial
          Serial number of the device

      Interface
          Communication protocol used by the device

      Capacity
          Size of the device in GB

      Type
          HDD or SSD

      Firmware
          Current firmware level on the device

  Additional information displayed if specified by a flag
      WWN
          World wide name of the device

      HGST Firmware
          The HGST firmware of the device, it may be different from the customer's firmware revision


Logdump Command Usage:
  description
      logdump {-s <serial number> ... | -m <model number> | -a | -g* <device path> ... } [-p <output file path>] [--threadPoolSize <num threads>] [--inc-max] [--inc-update] [--inc-start] [--archive] [--all-modes] [--partial-context] [--fly-height] [--p-list] [--ati] [--south-dump] [--short] [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-h]

  -s <serial number>, --serial <serial number>
      dumps logs on drive with the given serial number

  -m <model number>, --model <model number>
      dumps logs of all connected drives with the given model string

  -a, --all
      dump logs of all connected (not locked) devices

  -g <device path>, --target <device path>
      Target a device by device handle. This option can be invoked multiple times.
      Device handles can be acquired by running a standard show with the --device option
      and then using the first value given in the "Device handles" list for a drive.
      *This option is not available in interactive mode.

  -p <output file path>, --path <output file path>
      Directory where logs will be written to

  --threadPoolSize <num threads>
      Set the thread pool size for logdump

  --inc-max
      Collects incremental update log with a maximum number of log entries
      The number of log entries is specified in log page 0x1C, sub-page 0xE5

  --inc-update
      Collects incremental update log.

  --inc-start
      Collects incremental starting log.

  --archive
      Option for Pre-CCB SATA drives that can be used to create a zip file of all the logs.

  --all-modes
      Collects all available logs

  --partial-context
      Collects device partial context data

  --fly-height
      Collects device Fly-height data

  --p-list
      Collects device P-List data

  --ati
      Collects device Adjacent Track Interference (ATI) data

  --south-dump
      Collects debug information for SSDs only

  --short
      A small log for data-collection purposes

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -h, --help
      display command help text


Format Command Usages:
  description
      format {-m <model number> ... | -s <serial number>...  | -g <device path>... } [--danger-zone] [--simple-progress] [--hide-progress] [-p <protection type>] [--fastformat] [--media-compatibility-check] [--merge] [-n <number of blocks>] [-b <block size>] [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-h]

  -m <model number>, --model <model number>
      Format all devices of specified model number

  -s <serial number>, --serial <serial number>
      Format device specified by serial number

  -g <device path>, --target <device path>
      (accepted multiple times)(OR required)  Operate on targets with device handles specified by
      this option. See README for more detail.

  --danger-zone
      Flag tells the application that you know you are going to destroy your
      data with this command and will not prompt the user.

  --simple-progress
      Prevent the display of the progress bar screen, useful when running
      commands from a script.

  --hide-progress
      Prevent the display of the progress bar screen, useful when running
      commands from a script.

  -p <protection type>,  --protection <protection type>
      Specify a type of Protection Information (0,1,2,3)

  --fastformat
      Set Fast Format flag

  -c, --media-compatibility-check
      Set media compatibility check flag

  --merge
      Set Merge G-List and P-List flag

  -n <number of blocks>, --numblocks <number of blocks>
      Specify number of blocks to Format. Default: Current size. Specifying
      'max' will format to maximum number of blocks supported by the device.

  -b <block size>, --blocksize <block size>
      Format the device to a specified Block size (512, 4096).
      Additional special case sizes include: 520, 528, 4112, 4160, and 4224.
      Special cases may not be supported by your specific firmware

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -h, --help
      Displays usage information and exits.


Test Command Usage:
  description
      test {-q | -l | --status} {-s <serial number> | -m <model number> | -g <device path> | -a} [-f] [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-h]

  -q, --quick
      Run a quick self test

  -l, --long
      Run a long self test

  --status
      Generate a report of the most recent self-test status

  -s <serial number>, --serial <serial number>
      Execute DST on drive with the given serial number

  -m <model number>, --model <model number>
      Execute DST on all connected drives with the given model string

  -g <device path>, --target <device path>
      (accepted multiple times)(OR required)  Operate on targets with device handles specified by
      this option. See README for more detail.

  -a, --all
      Execute DST on all connected (not locked) devices

  -f, --foreground
      Execute DST in the foreground, job progress will be displayed in
      the terminal window. All other commands will be blocked until all
      running tests are completed or aborted

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -h, --help
      Display command help text


Update Command Usage:
  description
      update {-s <serial number> ... | -m <model number> | -g* <device path> ...} [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-a] [-d] [-f <fw file path>] [-h]

  -s <serial number>, --serial <serial number>
      Update firmware for drive with the given serial number

  -m <model number>, --model <model number>
      Update firmware of all connected drives with the given model string

  -g <device path>, --target <device path>
      Target a device by device handle. This option can be invoked multiple times.
      Device handles can be acquired by running a standard show with the --device option
      and then using the first value given in the "Device handles" list for a drive.
      *This option is not available in interactive mode.

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -a, --activate
      Activate a deferred firmware

  -d, --defer
      Perform a deferred update

  -f, --firmware
      Firmware update file

  -h, --help
      Display command help text


Erase Command Usage:
  description
      erase {-t | -f} {-m <model number> | -s <serial number> | -g <device path>} [--force] [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-h]

  -t, --table
      Erase the partition table

  -f, --full
      Write 0's to the entire device, if it fails or is cancelled a manual
      restart of the command is required and it will start back at the beginning
      of the drive. This command will go into the foreground mode and prevent
      any other Hugo command from executing.

  -m <model number>, --model <model number>
      Erase drives that have the specified model number

  -s <serial number>, --serial <serial number>
      Erase the drive with the specified serial number

  -g <device path>, --target <device path>
      (accepted multiple times)(OR required)  Operate on targets with device handles specified by
      this option. See README for more detail.

  --force
      Used to bypass any user prompted questions, this is useful for scripting mode

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -h, --help
      Display command help text


Sanitize Command Usage:
  description
      sanitize {-c | -o <overwrite count> | -b | --show-sanitize-support | --show-progress} {-m <model number> | -s <serial number> | -g <device path>} {-p <pattern> | -f <file name>} 
                [-l <length>] [--invert] [--simple-progress] [--hide-progress] [--danger-zone] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-h]

  -c, --crypto
      Perform Sanitize cryptographic erase operation

  -o <overwrite count>, --overwrite <overwrite count>
      Perform Sanitize overwrite operation. Count (1-31) required.
      Specifies the number of overwrite passes to be performed

  -b, --block
      Perform Sanitize block erase operation

  --show-sanitize-support
      Print the sanitize operation(s) supported by the target drive(s)

  --show-progress
      Show the progress of an in-progress sanitize operation if one exists

  -m <model number>, --model <model number>
      Sanitize all devices of specified model number

  -s <serial number>, --serial <serial number>
      Sanitize device specified by serial number

  -g <device path>, --target <device path>
      (accepted multiple times)(OR required)  Operate on targets with device handles specified by
      this option. See README for more detail.

  -p <pattern>, --pattern <pattern>
      Specifies the pattern that will be used for the
      overwrite sanitize operation. Not valid if --file option is also
      specified. To specify length of pattern in bytes, use --length option.
      Valid lengths are 1-4 and default is 4 bytes.

  -f <file name>, --file <file name>
      Specifies the path to a file containing a binary
      pattern that will be written to all user data blocks during an
      overwrite operation. Not valid if --pattern is also specified

  -l <length>,  --length <length>
      Specifies the length of the pattern (1-4) in bytes. This argument is
      only valid for overwrite sanitize. If not specified, default is 4.

  --invert
      Flag only valid for overwrite sanitize command. Invert flag indicates
      that the --pattern option or the value within the filename specified
      by the --file option should be inverted each time it is written. The
      --file or --pattern options must also be specified.

  --danger-zone
      Flag tells the application that you know you are going to destroy
      your data with this command and will not prompt the user.

  --simple-progress
      Prevent the display of the progress bar screen, useful when running
      commands from a script.

  --hide-progress
      Prevent the display of the progress bar screen, useful when running
      commands from a script.

  --no-progress
      Prevent all output of sanitize progress

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -h, --help
      Displays usage information and exits.


Do-Not-Operate Command Usage:
  description
      do-not-operate {-d | -s <serial number> | -c} [-h]

  -d, --display
      Print a list of all devices from Do Not Operate list.

  -s <serial number>, --serial <serial number>
      Add this device to the Do Not Operate list.

  -c, --clear
      Clear all devices from Do Not Operate list

  -h, --help
      Displays usage information and exits.


PSID Command Usage:
  description
      psid [--skip-status] [-s <serial number>] [-p <>] [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-h]

  --skip-status
      Pass the PSID regardless of the state of the device.
      Hugo will try to detect whether the PSID is enabled and already sent and not resend in that case.
      Passing this parameter will skip that check.

  -s <serial number>, --serial <serial number>
      Pass a PSID to a device specified by the given serial number

  -p, --psid
      PSID for the targeted drive. The 20 character PSID is on the drive label if enabled.

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -h, --help
      Displays usage information and exits.


Unmap Command Usage:
  description
      unmap {-m <model number> | -s <serial number>} [--danger-zone] [--no-apti] [--no-spti] [--no-sg] [--no-ad] [--no-mr] [--no-serial] [-h]

  -m <model number>, --model <model number>
      Unmap all LBAs for all devices of specified model number

  -s <serial number>, --serial <serial number>
      Unmap all LBAs on device specified by serial number

  --danger-zone
      Flag tells the application that you know you are going to destroy
      your data with this command and will not prompt the user.

  --no-apti
      Do not use the APTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-spti
      Do not use the SPTI driver (Windows Only)
      This option is not available in interactive mode.

  --no-sg
      Do not use the SG driver.
      This option is not available in interactive mode.

  --no-ad
      Do not use the AD driver.
      This option is not available in interactive mode.

  --no-mr
      Do not use the MR driver.
      This option is not available in interactive mode.

  --no-serial
      Do not use the serial driver
      This option is not available in interactive mode.

  -h, --help
      Displays usage information and exits.


Command examples: 
  Print command help
      Interactive:
          help
      Command Line:
          hugo help

  Print or refresh the list of attached devices and device status:
      Interactive:
          show
      Command Line:
          hugo show

  Print a list of devices that are locked:
      Interactive:
          show -l
      Command Line:
          hugo show -l

  Format a device to max size:
      Interactive:
          format --serial <serial_number> -n max
      Command Line:
          hugo format --serial <serial_number> -n max

  Format a device to max size, setting block size to 4k:
      Interactive:
          format --serial <serial_number> -n max -b 4096
      Command Line:
          hugo format --serial <serial_number> -n max -b 4096

  Dump device logs of all devices to a given directory:
      Interactive:
          logdump -a -p /path/to/logs/
      Command Line:
          hugo logdump -a -p /path/to/logs/

  Dump device logs of a single device specified by serial number: (run the show command to find a serial number)
      Interactive:
          logdump -s 2HV001AB -p /path/to/logs/
      Command Line:
          hugo logdump -s 2HV001AB -p /path/to/logs/

  Dump device logs of all devices of the same model number: (run the show command to find a model number)
      Interactive:
          logdump -m HUS001001ABCD400 -p /path/to/logs/
      Command Line:
          hugo logdump -m HUS001001ABCD400

  Run a long DST on all devices in the foreground:
      Interactive:
          test -l -a -f
      Command Line:
          hugo test -l -a -f

  Run a quick DST on all devices of the same model number in the background: (run the show command to find a model number)
      Interactive:
          test -q -m HUS001001ABCD400
      Command Line:
          hugo test -q -m HUS001001ABCD400

  Abort running tests on all devices:
      Interactive:
          abort -a
      Command Line:
          hugo abort -a

  Abort a running test on a single device specified by a serial number: (run the show command to find a serial number)
      Interactive:
          abort -s 2HV001AB
      Command Line:
          hugo abort -s 2HV001AB

  Load new Firmware on a single device specified by serial number: (run the show command to find a serial number)
      Interactive:
          update -f /path/to/file/<firmware_file_name> -s 2HV001AB
      Command Line:
          hugo update -f /path/to/file/<firmware_file_name> -s 2HV001AB

  Load new Firmware on all devices of the same model number: (run the show command to find a model number)
      Interactive:
          update -f /path/to/file/<firmware_file_name> -m HUS001001ABCD400
      Command Line:
          hugo update -f /path/to/file/<firmware_file_name> -m HUS001001ABCD400

  Erase the partition table from a device:
      Interactive:
          erase -t -s 2HV001AB
      Command Line:
          hugo erase -t -s 2HV001AB --force

  Do a full drive erase, write zeroes to the entire drive:
      Interactive:
          erase -f -s 2HV001AB
      Command Line:
          hugo erase -f -s 2HV001AB --force

  Do a cryptographic sanitize erase operation on a single device specified by serial number: (run the show command to find a serial number)
      Interactive:
          sanitize -c -s 2HV001AB
      Command Line:
          hugo sanitize -c -s 2HV001AB --force

  Do a block sanitize erase operation on all drives of the same model number: (run the show command to find a model number)
      Interactive:
          sanitize -b -m HUS001001ABCD400
      Command Line:
          hugo sanitize -b -m HUS001001ABCD400 --force

  Check the drives currently on the do-not-operate list:
      Interactive:
          do-not-operate -d

  Clear the do-not-operate list to return all of the hidden drives to the show command:
      Interactive:
          do-not-operate -c

  Add a drive to the do-not-operate list:
      Interactive:
          do-not-operate -s 2HV001AB

  Unmap all LBAs from serial number 7PHELZLC:
      Interactive:
          unmap -s 7PHELZLC
      Command Line:
          hugo unmap -s 7PHELZLC

  Exit the application:
      Interactive:
          q
          quit
          exit

