steventay
11th May 2009, 03:12
How to lockout all users from baan server command prompt
peturba
11th May 2009, 11:10
Hi,
AFAIK you can use the bshcmd command (or bshcmd6.x on Unix) to kill all bshell prozesses. On LN it should be "bshcmd -e". You can check out the command details using "bshcmd -?"...
Regs
pet
steventay
11th May 2009, 14:54
i enter bshcmd -e
nothing happen.
i am using BaanIVc4.
D:\baan\bin>bshcmd -?
bshcmd: illegal option -- ?
Usage: bshcmd [options] <bshell_pid>
-v : Print version
-p : Show process list
-m : Show memory usage
-d <dbglvl> : Set DEBUG_LEVEL to (octal) <dbglvl>
-k <pid> : Kill bshell process id <pid>
-e : Kill all bshell processes
-M "message" : Send "message" to bshell
-s : Show entire contents of logfile (if accessable)
-l : Print logfile name of bshell (for later examination)
-T "cmdstr" : Modify BDB_DEBUG or TT_SQL_TRACE (bshell) and DBSLOG,
TT_SQL_TRACE, {DBMS}PROF or {DBMS}STAT (drivers) tracing
variables.
"cmdstr" may contain multiple commands of the form:
<trace variable>=<value>: set variable to value
<trace variable>+<value>: add bits to variable
<trace variable>-<value>: remove bits from variable
Examples:
Print the bshell internal process list:
bshcmd -p <bshell_pid>
Print memory usage to file and show file being used:
bshcmd -m -l <bshell_pid>
Set DEBUG_LEVEL to 02000:
bshcmd -d 02000 <bshell_pid>
Kill a bshell process with pid <pid>:
bshcmd -k <pid> <bshell_pid>
Set TT_SQL_TRACE to log interface calls:
bshcmd -T "TT_SQL_TRACE+02000" <bshell_pid>
Unix-specific options (-W, -w and -u) are silently ignored.
D:\baan\bin>
peturba
11th May 2009, 15:30
Hmm. It seems that it doesn't work as easy as it seems to. The bshcmd needs an bshell process id (bshel_pid) to work. So the command can only be used this way to kill all running baan sessions of an user and not all users...
Maybe there is a way to run it within a script to kill all bshell processes?
Regs
pet
sushil
12th May 2009, 08:15
Hi,
if you want to login as single user , then try these.
http://www.baanboard.com/baanboard/showthread.php?t=55456
rgds,
Sushil Kumar Mudaliar