mirror of
https://github.com/kneutron/ansitest.git
synced 2025-02-06 05:08:25 +08:00
Add files via upload
This commit is contained in:
parent
aa574f17f2
commit
541cd0de8c
11
OSX/disks-osx.sh
Normal file
11
OSX/disks-osx.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# NOTE osx does not seem to have a concept of wwn anywhere that I can find (smartctl, diskutil, dev/*)
|
||||||
|
|
||||||
|
DBI=/var/run/disk/by-id
|
||||||
|
DBP=/var/run/disk/by-path
|
||||||
|
DBS=/var/run/disk/by-serial
|
||||||
|
|
||||||
|
ls -l $DBI $DBP $DBS |egrep -v 'var/|s[0-9]|total' |column -t |sort -k 11 |awk '{ print $11" "$10" "$9 }'
|
||||||
|
|
||||||
|
diskutil list |grep -A 2 physical
|
10
OSX/findmedia-osx.sh
Normal file
10
OSX/findmedia-osx.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DBI=/var/run/disk/by-id
|
||||||
|
DBP=/var/run/disk/by-path
|
||||||
|
DBS=/var/run/disk/by-serial
|
||||||
|
|
||||||
|
# 2019.0430 by-path is kinda useless, but re-enable if needed
|
||||||
|
#ls -lR $DBI $DBP $DBS |grep $1
|
||||||
|
ls -lR $DBI $DBS |grep $1 |awk '{ print $11" "$10" "$9 }' |column -t
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user