I have tried so many ways but finally happy with this
#!/bin/bashfor i in localhost 127.0.01
do
ssh raja@$i 'uptime | grep -o load.*'
doneThe above script will produce load average from a remote system.
#!/bin/bashfor i in localhost 127.0.01
do
ssh raja@$i 'uptime | grep -o load.*'
doneThe above script will produce load average from a remote system.
0 comments:
Post a Comment