Skip to content

Instantly share code, notes, and snippets.

@TomyLobo
Created January 16, 2018 10:08
Show Gist options
  • Save TomyLobo/415c95a8f616870109e8cb80204d390f to your computer and use it in GitHub Desktop.
Save TomyLobo/415c95a8f616870109e8cb80204d390f to your computer and use it in GitHub Desktop.
How to scan all SCSI hosts
for host in /sys/class/scsi_host/*; do echo "- - -" > "$host"/scan; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment