If you do not have permanent licenses for your Cadence software, and if you are not using the automatic update service, then you need to track your license expiration dates. The worst way to find out about expired licenses is when the software returns a fatal error. There are several methods for checking your licenses ahead of time.
-
Server Model License Expiration Notification
Use the lmCheckExpiration.cds script to periodically check all your licenses.The
lmCheckExpiration.cdsscript is supported on Linux only.
- Client Model License Expiration Notification
Use the CDS_LIC_EXPIRE environment variable to tell so-equipped Cadence software to report license expiration warnings upon startup.
Note: Contact your Cadence Sales representative to order new licenses at least 10 days in advance of the expiration date.
Server Model License Expiration Notification
The lmCheckExpiration.cds script checks all licenses in the specified license file. You can schedule the script to run periodically on your system (using cron on UNIX) to notify you when licenses are close to expiring.
The tool has the following format:
lmCheckExpiration.cds (UNIX)
[-c license_file] [-d days_to_expire] [-m email_address] [features]
Where:
|
parameter |
description |
|
-c license_file |
Use the specified license file. You can specify a path to the license file, or port@host, or both as a concatenated, colon-separated list. The default is to look for and check the CDS_LIC_FILE, the clients file, or the LM_LICENSE_FILE, in that order. |
|
-d days_to_expire |
Include only those licenses expiring within the specified number of days. The default is to return only those licenses expiring today. |
|
-m email_address |
Send the expiration report to the specified address. The report is also written to the standard output (stdout.) |
|
features |
Specify a list of features (products) to check. If you do not specify any features, the default is to return information for all licenses served by the license server(s). |
The tool returns 0 for success, 1 if it cannot connect to any of the license servers, and 2 for an invalid argument.
If a license is going to expire within the specified number of days, the script writes a warning message to the stdout of the terminal from which it was started, and optionally sends mail to a specified user. The message includes the license name, version, expiration date, and the number of days before expiration.
For example, to check the status of licenses for cpe and feature 34500:
- Show a message only if the licenses are expiring today:
lmCheckExpiration.cds
-c 5280@cds11574:/cds/share/license/license.dat
-cpe 34500
- Show and send a message if the licenses are expiring within 30 days:
lmCheckExpiration.cds
-c 5280@cds11574:/cds/share/license/license.dat
-d 30 -m user@company.com
-cpe 34500
This may generate the following message:
Warning: The following feature(s) are expiring soon:
cpe 4.4 24-apr-2015 14 days
34500 4.4 09-may-2015 25 days
Client Model License Expiration Notification
Cadence applications can notify you when licenses are nearing their expiration dates.
To use this feature, set the CDS_LIC_EXPIRE environment variable and specify a number of days. Each time you start your Cadence tool, it will notify you if any of the licenses it checks out are expiring within that specified number of days.
Use the following formats to set the variable:
- C-shell:
setenv CDS_LIC_EXPIRE <days>
- Bourne and Korn shells:
CDS_LIC_EXPIRE=<days>; export CDS_LIC_EXPIRE
- MS-DOS Window:
set CDS_LIC_EXPIRE=<days>
If a license is going to expire within the specified number of days, the tool writes a warning message to the stdout of the terminal from which it was started. The message includes the license name, version, expiration date, and the number of days before expiration.
For example:
- Show a message only if the license is expiring today:
setenv CDS_LIC_EXPIRE 0
- Show a message if the license is expiring within 30 days:
setenv CDS_LIC_EXPIRE 30
This may generate the following message:
Warning: The following feature(s) are expiring soon:
cpe 4.4 24-apr-2015 14 days
34500 4.4 09-may-2015 25 days
