witcharat
29th August 2005, 10:46
Dear All
i want to create script for get log files to count user that logon baan .
Please advice me.

Thank in advance.

Pierre
9th September 2005, 16:30
Hi,

On Unix you can create a script similar to this one below.

But there are other possibilities, like executing licmon6.1 -u and grepping the TOTAL

Regards, Pierre


LOGFILE=/tmp/count_lic.txt
INTERVAL=900
( exec
while true
do
# Initialise the wanted date
now=`date "+%m/%d/%y %H:%M:%S"`
countusr=`ps -aef | grep bshell | grep -v grep | grep -v adp | wc -l`
# Write to the logfile
echo "$now $counthq" >> $LOGFILE
# Sleep a while
sleep $INTERVAL
done
)&
exit 0

jroberts
9th September 2005, 17:00
The Event log in Windows Server contains login and logout events.
In the login event it tells you how many licences are used at that time.

Dumping the log file, you can parse out the data you are looking for.

John