Getting load information via SSH

I have tried so many ways but finally happy with this

#!/bin/bash
for i in localhost 127.0.01
do
ssh raja@$i 'uptime | grep -o load.*'
done
The above script will produce load average from a remote system.

Comments

Popular posts from this blog

grep: unknown device method

How to find outgoing IP in Linux ?

Uploading files to FTP/SFTP using CURL