// Commands to gather OS level (Alpine Linux) data // Collect Linux processes and system real-time information with top. This command includes the // -b flag for batch (needed to redirect to a file) and the -n flag to specify the number of iterations. // This command will run for 18 seconds, and send the output to the specified file top -b -n 5 > top-output.txt // Check memory usage free -ht // Check file system disk space usage df -h // Check open tcp connections netstat -tlpn > netstat-output.txt // Check for open files. lsof is usually installed in Alpine Linux; // there is no tidy equivalent. lsof -p $(pgrep vault) > lsof-vault-output.txt