ltannous
4th February 2004, 17:26
We have an issue with an external appliction that requires one baan license to run. This external application will only use the license when the application sends data to baan. We have this application login using a specific user id. How can we keep one free licence always available for this extrenal application?
Currently, when there are no more licenses availble, the data sent is lost. It holds it in the buffer, but this accumulates too high that it crashes the external application.
Francesco
4th February 2004, 19:57
Check the Wiki for my recent addition on wrapper scripts in Baan.
In your case, you would direct all users to a script that references the licensedaemon and will start a bshell only if the number of available licenses > 1.
The other application can then be directed directly to the bshell, where there will always be a scrumptious license available for it to consume.
Of course the more obivous answer would be "add more licenses".
ltannous
5th February 2004, 03:51
How is the script executed? Does this happen as they try to login?
Francesco
5th February 2004, 18:11
Yes, ipcboot will start whatever script or executable is defined in ipc_info.
By not directing the connection to the bshell executable but to a custom script (say mybshell.ksh), you can run a series of test before an actual bshell is started.
In your case, the rough version would look like this:
#!/bin/ksh
# mybshell.ksh
# wrapper script to test available licenses
# this script is called by ipcboot
USEDLICS = $(licmon6.x -u)
AVAILLICS = $(licmon6.x -b)
# the above will not work, its just to give you the general idea!!
if (($USEDLICS < AVAILLICS - 1)) then
${BSE}/bin/bshell6.x $*
else
print "No more licenses available."
fi
I'm pretty sure there are already several other threads on this subject. Do a little searching for more ideas on how to tackle this problem.
Good luck!
ltannous
6th February 2004, 16:10
Thaks for your help
Andy..
9th February 2004, 19:52
Originally posted by Francesco
Check the Wiki for my recent addition on wrapper scripts in Baan.
In your case, you would direct all users to a script that references the licensedaemon and will start a bshell only if the number of available licenses > 1.
The other application can then be directed directly to the bshell, where there will always be a scrumptious license available for it to consume.
Of course the more obivous answer would be "add more licenses".
rather than paying for more licences, take a look at
www.closeidle.co.uk (http://www.closeidle.co.uk)
CloseIdle will help you make the most of the existing licences by timing-out idle users after a pre-defined time. It can also prevent multiple Baan logins per PC.