I have a windows 2003 master server that I need to generate a open file report from daily. I have the following script woring, but it is ugly to read.
bperror -all -hoursago 24 | qgrep -e "can't open file"
1139194045 1 4 8 server1.com 133787 133787 0 Server1 bpbrm from client server1: WRN - can't open file: C:\WINNT\test.log (WIN32 32: The process cannot access the file because it is being used by another process. )
Is there a way to eliminate all but the client name and open file path? Server1 C:\WINNT\test.log
Thanks in advanced..
TS
bperror -all -hoursago 24 | qgrep -e "can't open file"
1139194045 1 4 8 server1.com 133787 133787 0 Server1 bpbrm from client server1: WRN - can't open file: C:\WINNT\test.log (WIN32 32: The process cannot access the file because it is being used by another process. )
Is there a way to eliminate all but the client name and open file path? Server1 C:\WINNT\test.log
Thanks in advanced..
TS