#/bin/csh
rm calldata
grep "$1" syslog | egrep 'Connection | IPCP Active | Port Logout' | colrm 1 7 | colrm 6 8 | awk '{print $1" " $9" " $10}' | sed 's/Startup/login/' | sed 's/Connection established/login/' | sed 's/Port Logout/logout/' | sed 's/Connection terminated/logout/' > calldata
useage | xgraph -bar -t "$1 Bluebox Useage" -x "Time of Day" -fg white -bg black -ly 0,100 -y "% Ports Used"
