From owner-freebsd-emulation Mon May 6 4:15:38 2002 Delivered-To: freebsd-emulation@freebsd.org Received: from ikos.com (pobox.ikos.com [149.172.204.200]) by hub.freebsd.org (Postfix) with ESMTP id A862337B403 for ; Mon, 6 May 2002 04:15:31 -0700 (PDT) Received: from [149.172.170.100] (HELO ganga.ikos.com) by ikos.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 1521902 for freebsd-emulation@freebsd.org; Mon, 06 May 2002 04:15:24 -0700 Received: from ikos.com (moose.ikos.com [149.172.170.174]) by ganga.ikos.com (8.10.2/8.10.2) with ESMTP id g46BFDr03461 for ; Mon, 6 May 2002 16:45:15 +0530 (IST) Message-ID: <3CD665C0.714B383F@ikos.com> Date: Mon, 06 May 2002 16:45:12 +0530 From: Chandra Prakash Jain X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Automatic heartbeat in flexlm are not being generated Content-Type: multipart/mixed; boundary="------------A2E55B14C1A4E85920447B4E" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 #include #include 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" <