mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
Add files via upload
This commit is contained in:
parent
e7e6f30f6e
commit
f3eb1971c3
@ -15,11 +15,18 @@ outf=/root/drivemap.txt
|
|||||||
# Use 'sort -k 3' if $9 $10 $11
|
# Use 'sort -k 3' if $9 $10 $11
|
||||||
ls -lR /dev/disk |grep -w /sd[a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
ls -lR /dev/disk |grep -w /sd[a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||||
>$outf
|
>$outf
|
||||||
|
ls -lR /dev/disk |grep -w /vd[a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||||
|
>>$outf
|
||||||
|
|
||||||
echo '========' >> $outf
|
echo '========' >> $outf
|
||||||
|
|
||||||
ls -lR /dev/disk |grep -w /sd[a-z][a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
ls -lR /dev/disk |grep -w /sd[a-z][a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||||
>>$outf
|
>>$outf
|
||||||
|
ls -lR /dev/disk |grep -w /vd[a-z][a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||||
|
>>$outf
|
||||||
|
|
||||||
|
ls -lR /dev/disk |grep -w /nvme.n. |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||||
|
>>$outf
|
||||||
|
|
||||||
echo '=====' >>$outf
|
echo '=====' >>$outf
|
||||||
lsscsi -s >>$outf
|
lsscsi -s >>$outf
|
||||||
@ -37,6 +44,7 @@ function hdps () {
|
|||||||
|
|
||||||
hdps |sort -k 2 >>$outf
|
hdps |sort -k 2 >>$outf
|
||||||
|
|
||||||
|
cp -v $outf /tmp/
|
||||||
ls -l $outf
|
ls -l $outf
|
||||||
|
|
||||||
# To search outfile:
|
# To search outfile:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user