I am a Linux System Administrator , Who started my carrier in Jan 2014. I am writing this blog with issues,requirements etc things of a Linux System Administrator.
I hope it will help you and Please contact me if you want to write.
Monday, 26 January 2015
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.
No comments:
Post a Comment