Subversion Repositories sysadmin_scripts

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

Scans all hard drives on Unix systems, using smartctl to determine parameters
like make/model, serial number, hours uptime, etc...

Looks for file /etc/drive_bays and, if it exists, populates the physical bay
a drive in.

Looks for the following binaries and uses if they exist. Will not fail if the
binaries do not exist.

== FreeBSD
geom
glabel
== Linux
lsblk
mdadm
== All systems
zpool
smartctl

uses Perl library JSON if it is available

Tested on Devuan Linux and FreeBSD