PDA

View Full Version : token model log entries



jiOeyji
09-22-2010, 04:16 AM
Hi,
Currently i am facing some conceptual problem to understand license token entries in FlexLm log files. For example the following log entries come in log file;

OUT: "Product1" Occupant1@Computer1 (200 licenses)
OUT: "Product1" Occupant1@Computer1 (400 licenses)
OUT: "Product1" Occupant1@Computer1 (400 licenses)

IN: "Product1" Occupant1@Computer1 (400 licenses)
IN: "Product1" Occupant1@Computer1 (400 licenses)
IN: "Product1" Occupant1@Computer1 (200 licenses)

In above scenario, I have some question in my mind as;

Question 1: How much token FlexLm utilize (or saved) when second OUT entry comes with more token then previous one? Is it 200 or 400 or 600?

Question 2: If Product1 is with DupGroup option, then is there any token limitation for Occupant to utilize that product?

Question 3: As shown in above example last IN event is actually correspond to first OUT event. So how FlexLM handles this situation; I mean is he distinguish and relate exact IN with exact OUT or some thing else?

Please help me to find out answer of above queries.
Thank you!
regards,
jiOeyji

RobertDickau
09-22-2010, 12:19 PM
Leaving aside token license models for the moment, the description of lc_checkout in the C/C++ Function Reference (fnp_FuncRef-c.pdf) describes the normal behavior: By default, one call to lc_checkout with a count of 100 followed by another call to lc_checkout for 100 results in a total checked-out count of 100.

To have the second call to lc_checkout obtain an additional 100 licenses, you can set unique "checkout data" with lc_set_attr and LM_A_CHECKOUT_DATA for each checkout; the description of LM_A_CHECKOUT_DATA in the same document describes the process, including how it interacts with duplicate grouping.

jiOeyji
09-28-2010, 08:05 AM
Hi,
So, first of all thank you very much for your response; What I have understood from your answer, I explain it to you and if you find me wrong then please correct me with your professional knowledge.

Suppose we have one feature in our license file such as;

FEATURE P1 demo 1.0 30-sep-2011 1500 \
VENDOR_STRING="ABC" DUP_GROUP=UH SIGN=CD518

1. First call from O1 on C1 with 100 counts:
Total checked-out is 100 and remaining available licenses are 1400. In log file, entry will like “OUT: "P1" O1@C1 (100 licenses)”.
2. Second call from O1 on C1 with 100 counts:
Total checked-out is 100 and remaining available licenses are 1400. In log file, entry will like “OUT: "P1" O1@C1 (100 licenses)”.
3. Third call from O2 on C2 with 100 counts:
Total checked-out is 200 and remaining available licenses are 1300. In log file, entry will like “OUT: "P1" O2@C1 (100 licenses)”.
4. Fourth call from O2 on C2 with 100 counts:
Total checked-out is 200 and remaining available licenses are 1300. In log file, entry will like “OUT: "P1" O2@C2 (100 licenses)”.
5. Fifth call from O2 on C2 with 200 counts:
Total checked-out is 300 and remaining available licenses are 1200. In log file, entry will like “OUT: "P1" O2@C2 (200 licenses)”.
6. Sixth call from O3 on C3 with 500 counts:
Total checked-out is 800 and remaining available licenses are 700. In log file, entry will like “OUT: "P1" O3@C3 (500 licenses)”.
7. Seventh call from O3 on C3 with 500 counts:
Total checked-out is 800 and remaining available licenses are 700. In log file, entry will like “OUT: "P1" O3@C3 (500 licenses)”.


The same things happening when Occupant release the license.


1. First Release from O1 on C1 with 100 counts:
Total checked-out is 800 and remaining available licenses are 700. In log file, entry will like “IN: "P1" O1@C1 (100 licenses)”.
2. Second Release from O1 on C1 with 100 counts:
Total checked-out is 700 and remaining available licenses are 800. In log file, entry will like “IN: "P1" O1@C1 (100 licenses)”.
3. Third Release from O2 on C2 with 100 counts:
Total checked-out is 700 and remaining available licenses are 800. In log file, entry will like “IN: "P1" O2@C1 (100 licenses)”.
4. Fourth Release from O2 on C2 with 100 counts:
Total checked-out is 700 and remaining available licenses are 800. In log file, entry will like “IN: "P1" O2@C2 (100 licenses)”.
5. Fifth Release from O2 on C2 with 200 counts:
Total checked-out is 500 and remaining available licenses are 1000. In log file, entry will like “IN: "P1" O2@C2 (200 licenses)”.
6. Sixth Release from O3 on C3 with 500 counts:
Total checked-out is 500 and remaining available licenses are 1000. In log file, entry will like “IN: "P1" O3@C3 (500 licenses)”.
7. Seventh Release from O3 on C3 with 500 counts:
Total checked-out is 0 and remaining available licenses are 1500. In log file, entry will like “IN: "P1" O3@C3 (500 licenses)”.

Please give some minutes from your precious time to confirm my understanding.
Thank you

Regards,
JiOji

RobertDickau
09-28-2010, 01:57 PM
Correct: my understanding (and a quick test) matches your explanation.

Robert

jiOeyji
09-29-2010, 07:27 AM
Hi Robert,
I would like to say Thank you very much for your support.:)
JiOji