Hi All,
I have around 15 servers.
I need to check for the error in /var/adm/messages in 15 servers of current date everyday and log it in one server.
rsh is configured in all servers.
The command I am using to accomplish this in shell script is
rsh <remote sever> grep 'Jun 17' /var/adm/messages >> <file>
it is showing error :
grep: can't open 17
rsh <remote sever> grep 'Jun 17' /var/adm/messages|grep -i error>><file>
rsh <remote server> grep 'Jun 17' /var/adm/messages|grep -i error>><file>---obviously not working..
Please suggest for solution.
Thanks in advance.