mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
11 lines
261 B
Bash
11 lines
261 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# REF: https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c03113986
|
||
|
|
||
|
echo "$(date) - Rescanning scsi bus"
|
||
|
for hba in $(ls -1 /sys/class/scsi_host); do
|
||
|
echo -e -n "$hba \r"
|
||
|
echo "- - -" > /sys/class/scsi_host/${hba}/scan
|
||
|
done
|
||
|
echo ''
|