IBM Support

Running 'lmutil lmstat' results in "cannot find license file -1,359" error

Troubleshooting


Problem

Attempts to verify license status on Windows 2008 by running the command 'lmutil lmstat' results in the error "cannot find license file -1,359" when using IBM Rational Common License 8.1.3.

Symptom

The full error message is as follows:

# lmutil lmstat
[Detecting lmgrd processes...]
Error getting status: Cannot find license file. (-1,359:2 "No such file or directory")

# lmutil lmpath -status
lmutil - Copyright (c) 1989-2009 Flexera Software, Inc. All Rights Reserved.
Other Vendors:
C:\flexlm\license.dat

Cause

Windows Registry Virtualization as part of User Account Control (UAC) might cause this error.

Diagnosing The Problem

Verify if the following command works on the host:
lmutil lmstat -a -c <<port number@license server host name>>

Example: lmutil lmstat -a -c 27000@host1;27000@host2;27000@host3

Resolving The Problem

Resolve the error by applying one of the following solutions:

  • Run lmutil command as Administrator

    Procedure:
    1. Open a Windows command prompt with the run as administrator option.
    2. Run the lmutil lmstat command

  • Add OS system environment variable LM_LICENSE_FILE

    Procedure:
    1. Open Control Panel > System > Advanced system settings to open system properties

    2. Click Environment Variables > Click New in the System variables

    3. Type Environment variable name LM_LICENSE_FILE in the variable name

    4. Type the location of license file in the variable value field.

      For example: C:\Program
      Files\IBM\RationalRLKS\common\rational_server_perm.dat


    5. Open a command prompt

    6. Run the command lmutil lmstat

[{"Product":{"code":"SSTMW6","label":"Rational License Key Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Command Line Tools","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.1.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21619413