MATLAB: Do lmstat, lmver, and other FLEXlm scripts not work correctly, or return blank information

MATLAB

When I run the lmstat command, it returns the following:
./lmstat -a
——————————————————————
./lmstat: /Applications/MATLAB6p5/etc/mac/lmstat: Permission denied
——————————————————————
In lmdebug,out, the following appears:
Output of lmstat -a :
——————————————————-
------------------------------------------------------------------
Other license manager scripts also return blank information.

Best Answer

This problem may be caused by permissions that are incorrectly set on these license manager scripts.
To fix this, all network license manager scripts in the $MATLAB/etc/$ARCH directory (where $MATLAB is your main MATLAB directory, and $ARCH reflects the architecture of your machine) must be executable.
For example, if you are on a Macintosh, the directory /Applications/MATLAB6p5/etc/mac should appear as follows:
drwxrwxrwx 2 pkemble users 4096 Aug 30 2002 ./
drwxrwxrwx 14 pkemble users 8192 Mar 7 10:55 ../
-rwxrwxrwx 1 pkemble users 648876 Apr 7 2002 MLM*
lrwxrwxrwx 1 pkemble users 6 Aug 30 2002 lmdiag -> lmutil*
lrwxrwxrwx 1 pkemble users 6 Aug 30 2002 lmdown -> lmutil*
-rwxrwxrwx 1 pkemble users 435192 Apr 7 2002 lmgrd*
lrwxrwxrwx 1 pkemble users 6 Aug 30 2002 lmhostid -> lmuti
lrwxrwxrwx 1 pkemble users 6 Aug 30 2002 lmremove -> lmuti
lrwxrwxrwx 1 pkemble users 6 Aug 30 2002 lmreread -> lmuti
lrwxrwxrwx 1 pkemble users 6 Aug 30 2002 lmstat -> lmutil*
lrwxrwxrwx 1 pkemble users 6 Aug 30 2002 lmswitchr -> lmut
-rwxrwxrwx 1 pkemble users 454776 Apr 7 2002 lmutil*
lrwxrwxrwx 1 pkemble users 6 Aug 30 2002 lmver -> lmutil*
(NOTE: Prior to R2011a the MLM process was named 'lm_matlab')
In the example above, owner, user, and group have executable permissions. If for instance the listing for lmgrd looked as follows:
-rw-r--r-- 1 pkemble users 435192 Apr 7 2002 lmgrd*
You would change it by passing the following command:
chmod 755 ./lmgrd
After the permissions are properly set, you should be able to run the license manager scripts and start the license manager properly.