Hi,
I want to collect info from a no. of servers whether there grub.conf contain "elevator" parameter or not.
What I want is
Code:
sudo cat /etc/grub.conf | grep -q "elevator=noop"; echo $?
If output is "0", I want name of that host in a file called "present"
if its not "0", I want that hostname in a file called "not-present".
Now, Password less key authentication is something I can not do as of now. I am okay with specifying password in script.
Can someone please help me achieving this?

3Likes
Reply With Quote
