fleadog
8th January 2002, 19:16
Does anyone know how to determine the number of users logged into Baan during a certain period of time?
victor_cleto
8th January 2002, 19:19
Which kind of data do you want specifically?
The highest value, the number of unique users, the total of users (even duplicates)?
Also, you're Baan installation runs on UNIX or NT (NT much more limited...)?
The best way to get full statistics statistics is to use a script that writes data into a common log regarding the user that is connecting and then starts the bshell, called by the ipc_info. Like this you can log any kind of data and later on run another script that extracts what you need from that log.
Other option would be to get the registerd/unregistered users from the log.licd6.1 and then get some stats from that.
NPRao
8th January 2002, 20:53
Also refer to
$BSE/bin/licmon6.2
options - stats, users
Hope it helps you out.
christopherj
9th January 2002, 02:41
if you're using UNIX then its easy but you would have to write a script like
while true; do; ps -ef|grep bshell|wc -l >> /tmp/count.lst ; time >> /tmp/count.lst; sleep 5; done
OR
your can use licmon6.1 and then user the users option.
srinivas
9th January 2002, 11:26
What in case the OS is NT???
Regards,
Srinivas
patvdv
9th January 2002, 11:42
With NT I think you are stuck with licmon which you can run from a DOS box. Possibly you could write a batch script to process these details but MS-DOS doesn't exactly provide the same flexibility as UNIX shell scripting.
Alternatively you could go for a commercial product that can provide you with these kind of reports, e.g. OST (http://www.ostusa.com) Frontline
Han Brinkman
9th January 2002, 15:03
I do agree that Unix is more flexible, however on NT you can use also the -u (usercount) option. Disadvantage is of course that 'hanging' licences are counted as well.
victor_cleto
9th January 2002, 16:12
Licmon does not really provide any good stats, since it only gives you the stats of the moment its run, so no comulative data.
On NT I would go for the data gathered thru the log.licd6.1 (or log.licd6.2). There are some good free unix utilities on the web that do grep and other similar stuff that allow you to implement a good "script" within a .bat file.
OR you can install cygwin (FREE, see www.cygwin.com (http://www.cygwin.com/)) that provides you with a UNIX layer on NT/2000 and since it includes 'bash', you can use the scripting capabilities to implement a real good UNIX script !