Date: Mon, 06 May 2002 16:45:12 +0530 From: Chandra Prakash Jain <cpjain@ikos.com> To: freebsd-emulation@freebsd.org Subject: Automatic heartbeat in flexlm are not being generated Message-ID: <3CD665C0.714B383F@ikos.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------A2E55B14C1A4E85920447B4E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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; } --------------A2E55B14C1A4E85920447B4E Content-Type: text/x-vcard; charset=us-ascii; name="cpjain.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Chandra Prakash Jain Content-Disposition: attachment; filename="cpjain.vcf" begin:vcard n:Jain;Chandra Prakash x-mozilla-html:FALSE org:IKOS India Pvt. Ltd.;VOYAGER adr:;;;;;; version:2.1 email;internet:cpjain@ikos.com title:Senior Software Engineer x-mozilla-cpt:;0 fn:Chandra Prakash Jain end:vcard --------------A2E55B14C1A4E85920447B4E-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CD665C0.714B383F>