betzki
22nd August 2002, 09:42
I' using NT4 and BaanIVc4. Users always logs in to the system twice or thrice and because of this i'm running out of license. Is there a way in NT, so as not to allow users to login twice or thrice.
Thanks,:cool:
hansbol
26th September 2002, 11:06
Just like on unix you can edit your ipc_info file so that you start an batch file in stead of starting the bshell6.1 directly.
In your batch file you can search for user processes or just search for entries in the output of the license6.1 -w output.
If the user exist in the output then disable starting the bshell6.1
Of not start the bshell6.1
Good luck.
Ravenscross
26th September 2002, 12:05
CloseIdle!
Yeah, this product pops up again and it works. Basically you can install this on the users machine and it can allow them to only load one version of Baan up at a time and even drop the users if they have been quiet for a length of time! This is a very quick way of saving licenses.
evertsen
26th September 2002, 14:00
A problem with CloseIdle is the need to install it on individual PC's. This is not ideal for large operations. The ipc_info solution should work well and is easily maintained in one location and... it's free.
betzki
27th September 2002, 02:05
Thanks for the info guys, but can you explain it more further. I already created a new entry in the ipc_info, whats next?:D
ashimvig
27th September 2002, 13:32
Please check out Solution No. 110908.
I found it very useful. I have very limited licenses. Earlier for most of the day I used to just monitor the licenses, but now I just don't have to check them
I have made a file in {/$BSE/lib/defaults} by the name "all" and put one line session_timeout:10 in it. Now any user not working for ten minutes gets BW connection snapped.
You can also do this manipulation for all / somne / specific users too.
Please check this solution for details.
Have a nice day
betzki
30th September 2002, 08:30
Hi Ashim,
I have already done this, and its very usefull for me. What i want to do is to limit the users from login in twice or thrice in the system. In unix, i can do this one but in NT i don't have any idea.
Thanks,
hsteenwi
30th September 2002, 10:53
Isn't it a solution to alter the maximum amount of processes in session ttaad2100m000 (form 2) to "1"? I think this should do the trick!
Henk.
victor_cleto
30th September 2002, 19:24
This "ammount of processes" is not to be used to limit the logins, since a user with one login can launch several processes.
I don't know of a way to get the user name from the current process and compare with another user owned processes on the server side, and I searched all kind's of ps and similar tools made available for WinOS'es...
I think you're stuck with a commercial app, and that's why most of the Sys. Admins. still like UX'es compared with Windows - too limited - unless someone out there an prove me wrong and there's a way to do it...
hansbol
1st October 2002, 12:00
I am not sure... but is it possible to create a batchfile that list all users via licmon6.1 into a textfile. Then in the same script you do a grep on the tekstfile and see if the user has allready a license.
If not : start bshell6.1
If so : do a bshcmd with a message sorry.... you are allready logged in?
I know that there is a grep utility for NT.
So it should be possible with a batch file.
Darren Phillips
1st October 2002, 12:55
baan solution 81271 says you cannot start a batch file from ipc_info only an executable because it uses Win API CreateProcess() function. you could perhaps write a batch file but run via a little vb program. the batch file below might help. It is for sendiing message to all logged in users but gives you a start
%$BSE%\bin\licmon -w > c:\users.txt
set mess=%1
for /f "skip=1 tokens=4 delims=. " %%i in (c:\users.txt) do %$BSE%\bin\bshcmd -M %mess% %%i
Markus Schmitz
1st October 2002, 13:30
Hi dear Ban on NT users,
Some time ago a Baan employee posted actaully a solution here on baanboard to this issue. Unfortunately I could not find the posting anymore.
Anyway, the solution was a small windows executable to replace the bshell entry in ipc_info.
The binary was called filterbgsb (or similar) and allowed restriction of users (even by group).
If you search the archive properly, then you should find it.
Regards
Markus
rishipal
21st September 2004, 09:57
Hi betzki
How can i restrict the users in Unix sothat user can't take more than one login. Can you explain me.
Regard
Rishi
vishbaan
28th October 2004, 14:22
Dear fnds,
I wanted to control no. of logins per user and no. of licenses per coy in one baan server. (B40c4 SP14 /Win2000).
I just wanted to try if replacing the bshell line with this exe if it works.
A)
Created a simple vb application with one button as connectButton and a Shell command to run the ntbshell.exe as below.
Private Sub ConnectCbt_Click()
Dim t
t = Shell("d:\baan\bin\ntbshell.exe", 1)
MsgBox ("Thank you for using BaaN")
End
End Sub
and created BaanLicChk.exe file from the above and placed it in d:\baan\bin folder of baan server.
B)
edited the ipc_info file in \baan\lib and replaced the following first line:
bshell s $BSE\bin\ntbshell.exe
with
bshell s $BSE\bin\BaanLicChk.exe
After this when we run bw.exe, the regular baan log-in screen comes and after user name / password entry and continuing the logon, I expected it to start my VB application; It does not; It just hangs at Baan start-up logo screen.
ANY CLUES, it will greatly help me.
wishes and best regards
VISH
Markus Schmitz
28th October 2004, 14:50
Hi vishbaan,
unfortunately you have the wrong concept in mind. Your approach assumes, that the ntbshell.exe is somehow transported to and executed on the client. But this is not what is happening!!
The ntbshell.exe is executed on the server and talks in a properiatry protocol with the GUI. You can use the wraper, but you can not pop up a message or a window or something. Your wrapper must be completely transperant. It can decide to start the actual ntbshell (maybe with special parameters) or not. That's it!!
regards
Markus
vishbaan
28th October 2004, 16:15
hi Mark
yeah you are right.
there is bw.exe Display Server ntbshell and sessions in baan though.
But I wanted to foloow as guys have done using VB and if the user login is allowed then calling the ntbshell from within VB. Now how to call ntbshell from VB.
I just used a bas module in VB without any form as below:
Sub Main()
Dim t
t = Shell("d:\baan\bin\ntbshell.exe", 0)
End Sub
=> BaanLicChk.exe... placed in ipc_info in place of ntbshell.exe
now I get a fatal error while logging-in and ntbshell not started.
The error is Connection with server lost;Boot failed for user xxx server '10.1.1.47!bshell' bse d:\baan boot 'd:\baan\bin\ipc_boot6.1'
can you tell me where i am going wrong.
how to call ntbshell from VB (I recollect in NT it seems batch files not supported in ipc_info)
thanks to you and everyone
VISH
Markus Schmitz
29th October 2004, 09:11
ok,
here some guidelines:
a) you are right, a batch will not work, you have to use a exe.
b) Your wrapper exe is not allowed to show any dialog or form
c) Your exe is not allowed to create any output at all
d) in the end you have to call ntbshell, but do not forget to pass any command line arguments given to your wrapper also to the ntbshell
e) now maybe a tricky bit, where I am not 100% sure, how it works in windows. In Unix the bshell and the GUI just communicate the via the normal input and output (stdin/stdout) mechanism. In windows you now have to make sure, that ntbshell "inherits" this input/output streams from your wrapper to be able to communicate.
Hope this helped,
Markus
pokitlok
20th March 2007, 10:39
Oh... I just tried the solution below but did not work. Does anybody know what vb program is like and how to call the ntbshell with parameters provided from client-side.
Indeed, I have read all the related posts on baanboard. however, I cannot the real solution. Anybody can help? :confused:
Thank a lot.
baan solution 81271 says you cannot start a batch file from ipc_info only an executable because it uses Win API CreateProcess() function. you could perhaps write a batch file but run via a little vb program. the batch file below might help. It is for sendiing message to all logged in users but gives you a start
%$BSE%\bin\licmon -w > c:\users.txt
set mess=%1
for /f "skip=1 tokens=4 delims=. " %%i in (c:\users.txt) do %$BSE%\bin\bshcmd -M %mess% %%i
george7a
20th March 2007, 13:18
Hi,
As I can see the solution you tried works for NT & you have UNIX.
Can you please post what exactly did you try?
- George
pokitlok
21st March 2007, 04:11
Oh.. Baan 4c running Windows 2000 + MS SQL 2000
Hi,
As I can see the solution you tried works for NT & you have UNIX.
Can you please post what exactly did you try?
- George
shiv_softengg
27th March 2007, 12:44
Just like on unix you can edit your ipc_info file so that you start an batch file in stead of starting the bshell6.1 directly.
In your batch file you can search for user processes or just search for entries in the output of the license6.1 -w output.
If the user exist in the output then disable starting the bshell6.1
Of not start the bshell6.1
Good luck.
how we come to know that who is trying to login ...means the way so i can have the user name who is trying to login
Hitesh Shah
21st April 2007, 15:50
U can get OS user with function get.resource$("unixuser") .
We actually have a table wherein user department quota are stored . Immediately on startup a 3 gl program runs , it runs the licmon with output redirected , program scans it , and kills all program under bshell if it exceeds his/her quota .