Hi
i need to understand what "errpt -s 0328000014" will do in script.
will this only capture data for 28th march at 00:00 hrs. if issue happen it is ok else nothing
or for 28th march and onwords it will run and and check every day at 00:00 hrs for issue to occur
below is the snippet taken from script
#!/bin/ksh
while true
do
for i in ds51tp1 ds55tp1 ds59tp1 ds63tp1
do
rsh $i errpt -s 0917000013 > $i.out
grep 'SOFTWARE PROGRAM ABNORMALLY TERMINATED' $i.out
if [ $? = 0 ];then
rsh $i "cp -p /node/alarms.out.?? /work/"
rsh $i "cp -p err/node/*core /work/"
rsh $i "gzip /work/alarms.out.?? /work/*core*"
echo capture alarms files on $i
exit
fi
done | tee -a collectErrptLogs.out.$$
sleep 180
done
thx in advance and sorry if my question looks vague.
Scriptor