Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 7797e488db
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (22 sloc) 0.581 kB
#!/bin/bash
sipx_log_cut=sipx-log-cut
regLog=/var/log/sipxpbx/sipregistrar.log
#regLog=test.log
regLogLength=`wc -l <${regLog}`
startTime=""
backlinesPrev=0
for (( backlines=2000 ; ${backlinesPrev} < ${regLogLength} && ! ${#startTime} ;
backlines*=2 ))
do
startTime=` \
tail -n ${backlines} ${regLog} \
| grep '>>>> STARTED' \
| tail -n 1 \
| cut -c 2-20 \
`
backlinesPrev=${backlines}
done
echo "Started at: '${startTime}'"
echo ""
${sipx_log_cut} -i ${regLog} -s ${startTime} -t 2> /dev/null \
| grep -e '\(update numbering synchronized\|Incompatible\)'
Jump to Line
Something went wrong with that request. Please try again.