Abaqus licenses are shared among CCR users as well as UB students taking courses. Coursework must take precedence over CCR usage, so CCR users must be careful not to exhaust available Abaqus licenses. This article provides some convenient bash commands that can be used to check the current Abaqus license usage.


As a first step, you must load the abaqus module:

module load abaqus


Having loaded the module, you can query abaqus license usage using the lmstat command and pointing it to the location of the Abaqus license server (tyche):

lmstat -c 27008@tyche.sens.buffalo.edu -a


If you combine the above command with a simple grep, as shown below, you can filter out the current usage of "standard" licenses:

lmstat -c 27008@tyche.sens.buffalo.edu -a | grep 'Users of standard'


The above command will result in something like the following:

Users of standard: (Total of 350 licenses issued; Total of 5 licenses in use)


Additional processing with awk can turn results like the above into a count of the remaining licenses:

lmstat -c 27008@tyche.sens.buffalo.edu -a | grep 'Users of standard' | awk '{ printf("%d\n", $6-$11); }'


The above command will result in something like the following:

345


To avoid interfering with student coursework, CCR users should ensure that their jobs will leave at least 50 licenses remaining at all times.