kw_foo
9th June 2002, 04:58
Can somebody tell me the exact steps and command to restart the licence daemon to get rid of the 'ghost' licences ? I tested with the following steps but receive error message when I restart the license daemon:
1. Shutdown the licence daemon using command: licmon6.1 -k
2. Restart the licence daemon using command: licd6.1
When we restart the licence daemon, the system prompt out the following error message and the licence daemon cannot be start until we restart the system.
Error msg:
licd6.1: TCP bind() to port 6003 failed, error 125
licd6.1: Can't start TCP listener for licence daemon, stop.
FYI: We are using Baan IVc4 in Unix (solaris) platform, login using user root.
Thanks in advance.
KW Foo
nizamudeen
9th June 2002, 08:40
try to kill the licd6.1
1. licd6.1 - k
2. then restart license daemon (licd6.1)
i am following this way and has no problem or errors
Regards
patvdv
9th June 2002, 12:43
KW_foo,
You have to wait a little while (2-3 minutes) between stopping and restarting the licence daemon to give your OS the time to free up the licd6 network port 6003. A restart of the system should not be necessary.
nizamudeen
9th June 2002, 13:01
Hi Pat
I have been using licd6.1 -k and restart the license the next second and i am not getting any errors.
but if i use licmon6.1 -k, then i get those errors related to TCP bind() to port 6003 failed
Regards
patvdv
9th June 2002, 13:23
Nizam,
Have you tried waiting when using licmon6.1 -k?
nizamudeen
9th June 2002, 13:29
Hi Pat,
what i mean to say is, if i use licmon6.1 -k, i have to wait 2,3 minutes before re starting license daemon.
but if i use, licd6.1 -k, i can restart the license immediately
patvdv
9th June 2002, 13:53
Nizam,
That could be true. But I also think licd6.1 -k is 'unsupported' way of stopping license daemon and might not work consistently across porting set versions. The cause for the difference in behaviour between licmon6.1 -k and licd6.1 -k I would not know.
Francesco
10th June 2002, 11:59
Here is a neat little script that does the job and actually tests for any connections to licd before restarting. Big advantage...you can run it unattended. (yesss)
#!/bin/ksh
# Restart the licd6.2
#
export BSE=[...your BSE setting]
export LICD_PORT=[...port # for licd (6002 for Triton, 6003 for Baan 4 and 6004 for Baan V]
export LICD_HOST=[...ip # of license host]
check_licd () {
test $(ps -ef | grep licd6.2 | grep -v grep | /usr/bin/nawk '{print $2}') && \
print "PID OF licd6.2: " "$(ps -ef | grep licd6.2 | grep -v grep | /usr/bin/nawk '{print $2}')"
}
check_port () {
test $(netstat -an | egrep "${LICD_HOST}\.${LICD_PORT} " | wc -l) -ne 0 && return 0
}
# Main
${BSE}/bin/licmon6.2 -k;
print "Checking ports every 20 seconds..."
while check_port
do
sleep 20
print "Number of connections: $(netstat -an | egrep "${LICD_HOST}\.${LICD_PORT} " | wc -l)"
done
print "Start the license daemon"
${BSE}/bin/licd6.2;
check_licd