Tracing Target Resets

This DTrace command traces target resets and paths to where the resets are sent:

# dtrace -n 'scsi:::tmf-request
    /(args[1] == SCSI_TMF_TARGET_RESET) &&
     (args[0]->addr_path != "NULL")/ {
          printf("Target Reset sent to %s", args[0]->addr_path);}'