Cheat Sheets

System - USB Drives

Description

On server systems USB disk devices are not normal. So you might want to know about all of them.

Check Script: system-usb-drives.sh

#!/bin/bash

disks=$(ls /dev/disk/by-id/usb* 2>/dev/null) if [ "$disks" == "" ]; then result_ok else result_warning "USB disk devices found: $disks" fi
Comment on Disqus