Linux Disk Usage Report
Shows usage of real file systems and lists those above 90% full separately.
- Windows18
- macOS5
- Linux5
- Network3
- Disk and storage4
- Inventory4
- Security9
- Updates4
- Maintenance4
Script
#!/bin/bash
df -hT -x tmpfs -x devtmpfs -x squashfs -x overlay
echo
echo "Above 90%:"
df -P -x tmpfs -x devtmpfs -x squashfs -x overlay | awk 'NR>1 { gsub("%","",$5); if ($5+0 > 90) print $6" "$5"%" }'Run it on every device with Moftgate
- 01
Add the script
In the Moftgate console, open Scripts > New script and paste the code.
- 02
Select the OS
Select Linux as the target operating system.
- 03
Test it
Run it on one test device first and read the output.
- 04
Roll out
Send it to all targets by group, profile or tag. Each device result is recorded separately.
These may help too
Windows Disk Space Report
Lists size, free space and free percent for all local disks. Flags disks below 10% free.
Windows · PowerShellClean Up Temporary Files on Windows
Deletes files older than 7 days in the Windows Temp folder and every user's Temp folder. Reports the space recovered.
Windows · PowerShellFind the 20 Largest Files on Windows
Lists the 20 largest files under C:\Users with path and size. Use it to find why a disk is full.
Manage scripts from one console
Target selection, a confirmation step, per-device output and an audit log. The first 200 endpoints are free for a year.