You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Inability to query license server

If License Statistics cannot query the license server, the log will contain an error message such as the following:

  • License server is down or not responding
  • Problem occurred while running query_tool_name utility for license_server

If you see either of these errors, you should check for communication problems between the license server and License Statistics using the appropriate query tool for the license server (for example, lmxendutil for LM-X License Manager).

To do this, navigate from a command line to the directory that contains the query tool and follow the instructions below, depending on which license server you are checking. If there are errors in the communication between the license server and License Statistics, you will receive information about the errors. Otherwise, you will see normal statistics information for the indicated license server.

LM-X

For an LM-X license server, type the command:

lmxendutil -licstatxml [-host host -port port]

where host and port are the host and port appropriate for your license server. The host and port designations are optional. If the host information is omitted, the local host is used; if the port information is omitted, the default port is used.

FLEXlm/FlexNet

For a FLEXlm/FlexNet license server, type the command:

lmutil lmstat -a -c [port]@host [-S vendor]
lmutil lmdiag -n -c [port]@host

where port and host are the port and host appropriate for your license server, and vendor is the vendor daemon's name (this name is case-sensitive by FlexNet's default license server configuration). The port designation is optional; if it is omitted, the default port is used. Specifying the vendor is also optional.  

RLM

For an RLM license server, type the command:

rlmutil rlmstat -a -c [port]@host  

where port and host are the port and host appropriate for your license server. The port designation is optional; if it is omitted, the default port is used.

Sentinel LM/RMS

For a Sentinel LM/RMS license server, type the command:

lsmon [host]  

where host is the host appropriate for your license server. The host designation is optional; if it is omitted, the local host is used.

IBM LUM

For an IBM LUM license server, type the command, where host is the host appropriate for your license server:

i4blt -s -lc -k -n host
i4blt -s -lco -k -n host
i4blt -ll -k -n host

Or, for a cluster configuration:

i4blt -s -lc -k -n host1 host2 host3
i4blt -s -lco -k -n host1 host2 host3
i4blt -ll -k -n host1 host2 host3 

Dassault  

For a Dassault license server, you can get license or user information by following the procedures below.

To get license information: 

  1. Create a text file named file.txt.
     
  2. Add the following four lines to file.txt:

    c host port
    gli
    d
    q

    where host and port are the host and port appropriate for your license server.
     
  3. Run the command:

    dslicsrv -admin -i file.txt 

To get information about users who are using licenses:

  1. Create a text file named file2.txt.
     
  2. Add the following four lines to file2.txt:

    c host port
    glu -all
    d
    q

    where host and port are the host and port appropriate for your license server.
     
  3. Run the command: 

    dslicsrv -admin -i file2.txt

Realtime usage error

If a monitored license server is hosted on a different machine than License Statistics is installed on, the license server's response to License Statistics' query about its status may be delayed. In such cases, a warning such as the following occurs for each query that was delayed. 

[2012/05/10 08:00:00] WARNING: Capturing realtime usage for license server hostname was delayed xx seconds. This delay may cause loss of statistics! 

To resolve this problem, verify that the license server is responding properly as described above in "Inability to query license server."

Failure to find licenses for FlexNet license server

FlexNet vendor names are case-sensitive by default, so you may see the following error if the case is not correctly configured: 

[2012/05/10 08:00:00] ERROR: Unable to find any licenses served by the license server! 

Check that the vendor name entry in the xflicstat.cfg configuration file for that license server is specified in the correct case. You can verify the correctness of the configuration by querying the status of the server manually: 

lmutil.exe lmstat -a -c hostname -S VendorName 

Failure to gather data for FlexNet license server hosting multiple vendors   

If monitoring realtime data on a FlexNet license server fails with the error "This server hosts licenses from multiple vendors," the FlexNet server is not configured correctly in License Statistics.  

FlexNet license servers have hosted vendor daemons for each vendor. If all parameters provided to lmutil are correct, the output will include only the license usage for the specified vendor. If the output contains data for vendors other than the specified vendor, one or more lmutil arguments are incorrect. The most common incorrect argument is the port number. The same port cannot be provided for all vendors on one machine. The port used by the specific vendor daemon is configured in the license server's configuration or license. If the port is not set explicitly, the license server can select it automatically from free ports. 

To configure the FlexNet server correctly for multiple vendor daemons, specify each as a separate license server in the FLEXNET_SERVER setting in the License Statistics configuration file. For example, if you want to monitor vendor daemons "vendor1" and "vendor2" on "server1" you must use a FLEXNET_SERVER setting for each of them, as follows:

FLEXNET_SERVER = vendor1@port@server1
FLEXNET_SERVER =
 vendor2@port@server1

Or, for HAL (redundant) servers: 

FLEXNET_SERVER = vendor1@port@server1 vendor1@port@server2 vendor1@port@server3 
FLEXNET_SERVER =
 vendor2@port@server1 vendor2@port@server2 vendor2@port@server3  

Incomplete lmdiag output for FlexNet license server

If there is a problem with the output produced by the lmutil lmdiag command, you will see the following message in the log:

"Output of the lmutil lmdiag command is incomplete, which can cause incorrect or incomplete data in License Statistics. Please ensure that your license server is able to correctly print out the lmdiag output."

This error indicates that some or all features included in lmstat output are not described in lmdiag, so License Statistics data may be inaccurate. If a specific feature in the lmstat output does not have any users described and lmdiag does not contain any information about this feature, License Statistics creates the feature as both a floating and node-locked type. In addition, a feature that is not described in lmdiag has no expiration date set.

This error may occur because the vendor's configuration doesn't allow printing out required data. This error may be unresolvable if you are unable to change the license server configuration.

Unidentifiable usernames in lmutil output 

License Statistics identifies and displays usernames using data provided by the license server using a query tool (normally lmutil). If the license server does not provide valid usernames, License Statistics cannot use the data to display the username in the log or the web-based UI.

For example, if the lmutil output for CITRIX does not contain valid usernames for specific checkouts, it will use the syntax "string1 (string2)", where string1 is the value of the string stored in place of an actual username and string2 is an additional string to help distinguish users. This data is not recognizable by License Statistics.

Inaccurate statistics for HASP license server

HASP server logs often do not contain all the information necessary to obtain accurate statistics. If you notice problems with the data imported from the HASP server logfile, you can see some improvement by configuring the HASP server to run with OPEN_SESSIONS (see configuration below). However, this still does not ensure 100% accuracy, because the HASP logs may still lack some usage data even with this value set. 

License Statistics can handle HASP logs with or without the OPEN_SESSIONS value set. However, a single HASP server logfile cannot both include and exclude the OPEN_SESSIONS value, so you must import logfiles that include the OPEN_SESSIONS value separately from logfiles that do not include this value.

HASP server log configuration syntax

If the log configuration is not correct, you may see a message similar to the following in the License Statistics log, even though the HASP log contained denial data: "NOTICE: File.log has been imported successfully, but was empty (no denials found)." You should verify the configuration of the HASP server log if parsing fails. The HASP log configuration must be one of the following. Other formats are not currently supported. 

To run with OPEN_SESSIONS: 

{timestamp} {clientaddr}:{clientport} {clientid} {method} {url} {function}({functionparams}) open_sessions({sessioncount}) {newline}

To run without OPEN_SESSIONS:

{timestamp} {clientaddr}:{clientport} {clientid} {method} {url} {function}({functionparams}) {newline}
  • No labels