← script library

Check Linux Uptime and Disk Usage over SSH

System AdministrationAugust 17, 2026

A short bash script that reports hostname, uptime and root filesystem usage, and then writes a line through the same log marker the PowerShell scripts use. It is the smoke test for the Linux execution path: the same run history, the same logging convention, over SSH instead of WinRM.

bash
#!/bin/bash
# Test script for the new Linux automation path
echo "Hostname: $(hostname)"
echo "Uptime:"
uptime
df -h /
echo "<WRITE-LOG = \"*Linux test script completed on $(hostname)*\">"

Run it across your fleet

This script runs as-is on a single host. Paste it into ServerEngine to schedule it, run it on a whole server group in parallel, and keep the credentials out of the file — see the scripts documentation and the credential store.

Ready when you are.

Try ServerEngine free for 7 days.