This describes the wi_licenseusagebyusermart table and how each column of data arises from the FLEXLM_LICENSE_USAGE table.
The wi_licenseusagebyusermart get its data from the FLEXLM_LICENSE_USAGE table. The records from the FLEXLM_LICENSE_USAGE table are first aggregated for the same period with the grouping of "UserName", "Host", "Feature", "Vendor", "Server", "TimeDiff" and "Interval". The "Value" is summed together and the maximum of "Total" is found. The result is then aggregated across all the hosts again for the hour for the grouping of "User", "Feature", "Vendor", "Server" and "TimeDiff". The sum of the "Value" is added up. The number of records aggregated is counted. The maximum of the "Value" and the "Total" from the interval aggregation are found. The result is then record into this table.
This is the column description of each data column of WI_LICENSEUSAGEBYUSERMART and how each column is filled with data.
Column Name |
Description |
Key |
TIME_STAMP |
This is in GMT and is always end in the hour such as 02:00:00. This marks the time that this record is aggregated. For example, 02:00:00 means that all the records between 02:00:00 and 02:59:00 are aggregated into this record. |
Primary key |
LIC_SERVER_CODE |
This comes from the "LIC_SERVER_NAME" field in the FLEXLM_LICENSE_USAGE table. Once we get the license server, we then look it up in the wi_licservercode table to see if we have already has a record of it in there. If we do, then we'll get the code back, otherwise, we will insert it into the wi_licservercode table and generate the code. The code itself is a positive integer and each new code is equal to the maximum of the existing code+1. |
Primary key |
LIC_FEATURE_CODE |
This comes from the "LIC_FEATURE_NAME" field in the FLEXLM_LICENSE_USAGE table. Once we get the license feature, we then look it up in the wi_licfeaturecode table to see if we have already has a record of it in there. If we do, then we'll get the code back, otherwise, we will insert it into the wi_licfeaturecode table and generate the code. The code itself is a positive integer and each new code is equal to the maximum of the existing code+1. |
Primary key |
LIC_VENDOR_CODE |
This comes from the "LIC_VENDOR_NAME" field in the FLEXLM_LICENSE_USAGE table. Once we get the license vendor, we then look it up in the wi_licvendorcode table to see if we have already has a record of it in there. If we do, then we'll get the code back, otherwise, we will insert it into the wi_licvendorcode table and generate the code. The code itself is a positive integer and each new code is equal to the maximum of the existing code+1. |
Primary key |
LIC_SITE_NAME_CODE |
This comes from the "LIC_SITE_NAME_CODE" field in the WI_LIC_SITENAMECODE table. |
Primary key |
USER_CODE |
This comes from the "USER_NAME" field in the data file.FLEXLM_LICENSE_USAGE table. Once we get the user name, we then look it up in the wi_usercode table to see if we have already has a record of it in there. If we do, then we'll get the code back, otherwise, we will insert it into the wi_usercode table and generate the code. The code itself is a positive integer and each new code is equal to the maximum of the existing code+1. |
Primary key |
MAX_USAGE |
This is the maximum license usage for the hour for this user. |
|
SUM_USAGE |
This is the total license usage aggregated for the hour for this user. |
|
SAMPLING_COUNT |
This is the number of records being aggregated for the hour. |
|
TOTAL_AVAIL |
This is the maximum available license for this server for this hour. |
|
LOCAL_SERVERTIME |
This comes from the "Time_stamp" in this table. This is transformed into local server time. |
|
PLC_ID |
This is the plc instance id. |
|
INSERT_SEQ |
This is a system generated sequence number. For each new record inserted, a unique sequence number is being assigned to this column. |
|