[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-emulation
Subject: Automatic heartbeat in flexlm are not being generated
From: Chandra Prakash Jain <cpjain () ikos ! com>
Date: 2002-05-06 11:27:12
[Download RAW message or body]
Hi,
I am using flexlm to generate automatic heartbeats every 60 Secs.
Things seems to have been smoothly started as there is no error in log
file whatsoever and also FLEXLM_DIGNOSTICS level 3 does not give any
error.
I am using default time out to be 5 minutes. License gets checked in
after 5 mins. giving
a hint that heartbeats are not being generated to keep the license up.
I am setting LM_A_USER_PERIODIC_COUNT and LM_A_PERIODIC_CALL attributes
but nothing seems to have been working.
I am attaching a small program on which I am testing this thing.
Any help in this regard will be highly appreciated.
Thanks in advance.
Regards,
-Chandra P.
#include <iostream.h>
#include <unistd.h>
#include <flexlm_package.h>
int DisplayStatus()
{
cout << "Inside DisplayStatus()" << endl;
return 0;
}
static LM_HANDLE *lm_VHDL_job_id = 0;
LM_CODE(vhdlcode, ENCRYPTION_SEED1, ENCRYPTION_SEED2, VENDOR_KEY1,
VENDOR_KEY2, VENDOR_KEY3, VENDOR_KEY4, VENDOR_KEY5);
int main()
{
if(lc_init(lm_VHDL_job_id, VENDOR_NAME, &vhdlcode, &lm_VHDL_job_id))
cout << "license not initialized" << endl;
if(lc_set_attr(lm_VHDL_job_id, LM_A_TCP_TIMEOUT,
(LM_A_VAL_TYPE)60*5))
cout << "Default checkin not set" << endl;
if(lc_set_attr(lm_VHDL_job_id, LM_A_CHECK_INTERVAL,
(LM_A_VAL_TYPE)60))
cout << "Heartbeat not started" << endl;
if(lc_set_attr(lm_VHDL_job_id, LM_A_RETRY_COUNT,
(LM_A_VAL_TYPE)2000))
cout << "Retry count not set" << endl;
if(lc_set_attr(lm_VHDL_job_id, LM_A_CRYPT_CASE_SENSITIVE,
(LM_A_VAL_TYPE)0))
cout << "Crypt not set" << endl;
//if(lc_set_attr(lm_VHDL_job_id, LM_A_NORMAL_HOSTID,
(LM_A_VAL_TYPE)1))
//cout << "Normal Host not set" <<endl;
if(lc_set_attr(lm_VHDL_job_id, LM_A_CONN_TIMEOUT,
(LM_A_VAL_TYPE)60))
cout << "Connection timeout not set" << endl;
if(lc_set_attr(lm_VHDL_job_id, LM_A_PERIODIC_COUNT,
(LM_A_VAL_TYPE)2))
cout << "Periodic count not set" << endl;
if(lc_set_attr(lm_VHDL_job_id, LM_A_PERIODIC_CALL,
(LM_A_VAL_TYPE)DisplaySta
tus))
cout << "Periodic function call not set" << endl;
if(lc_checkout(lm_VHDL_job_id, "VHDL_SIMULATOR", "1.0", 1,
LM_CO_NOWAIT, &vh
dlcode,LM_DUP_NONE))
cout << "LICENSE COULD NOT BE CHECKED OUT" << endl;
while(1)
{
sleep(5);
cout<< "running" << endl;
}
return 0;
}
["cpjain.vcf" (text/x-vcard)]
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic