System Administrator Guide (Windows)
System Administrator Guide (Windows)
TM
Worldwide Offices
Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599,
Canada (Calgary) 403 274 9391, Canada (Ottawa) 613 233 5949, Canada (Qubec) 450 510 3055,
Canada (Toronto) 905 785 0085, Canada (Vancouver) 514 685 7530, China 86 21 6555 7838,
Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 385 0 9 725 725 11,
France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, Greece 30 2 10 42 96 427, India 91 80 51190000,
Israel 972 0 3 6393737, Italy 39 02 413091, Japan 81 3 5472 2970, Korea 82 02 3451 3400,
Malaysia 603 9131 0918, Mexico 001 800 010 0793, Netherlands 31 0 348 433 466,
New Zealand 0800 553 322, Norway 47 0 66 90 76 60, Poland 48 22 3390150, Portugal 351 210 311 210,
Russia 7 095 783 68 51, Singapore 65 6226 5886, Slovenia 386 3 425 4200, South Africa 27 0 11 805 8197,
Spain 34 91 640 0085, Sweden 46 0 8 587 895 00, Switzerland 41 56 200 51 51, Taiwan 886 2 2528 7227,
Thailand 662 992 7519, United Kingdom 44 0 1635 523545
For further support information, refer to the Technical Support and Professional Services appendix. To comment
on the documentation, send email to [email protected].
Warranty
The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defects
in materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. National
Instruments will, at its option, repair or replace software media that do not execute programming instructions if National Instruments receives
notice of such defects during the warranty period. National Instruments does not warrant that the operation of the software shall be
uninterrupted or error free.
A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of the package before
any equipment will be accepted for warranty work. National Instruments will pay the shipping costs of returning to the owner parts which are
covered by warranty.
National Instruments believes that the information in this document is accurate. The document has been carefully reviewed for technical
accuracy. In the event that technical or typographical errors exist, National Instruments reserves the right to make changes to subsequent
editions of this document without prior notice to holders of this edition. The reader should consult National Instruments if errors are suspected.
In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it.
EXCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF
NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER. NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR
DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY
THEREOF. This limitation of the liability of National Instruments will apply regardless of the form of action, whether in contract or tort, including
negligence. Any action against National Instruments must be brought within one year after the cause of action accrues. National Instruments
shall not be liable for any delay in performance due to causes beyond its reasonable control. The warranty provided herein does not cover
damages, defects, malfunctions, or service failures caused by owners failure to follow the National Instruments installation, operation, or
maintenance instructions; owners modification of the product; owners abuse, misuse, or negligent acts; and power failure or surges, fire,
flood, accident, actions of third parties, or other events outside reasonable control.
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying,
recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National
Instruments Corporation.
Trademarks
AutoCode, DocumentIt, MATRIXx, National Instruments, NI, ni.com, SystemBuild, and Xmath are trademarks of
National Instruments Corporation.
Product and company names mentioned herein are trademarks or trade names of their respective companies.
Patents
For patents covering National Instruments products, refer to the appropriate location: HelpPatents in your software, the patents.txt file
on your CD, or ni.com/patents.
Chapter 1
Installation Overview and Platform Requirements
Installation Overview.....................................................................................................1-1
Platform Requirements ..................................................................................................1-1
Hardware Requirements ..................................................................................1-2
Software Requirements ...................................................................................1-2
Compatible Compilers and Operating System Versions .................................1-3
Minimum Disk Space Requirements ................................................1-3
Installation Configurations ............................................................................................1-4
Standard Installation........................................................................................1-4
Server Installation............................................................................................1-5
Client Installation ............................................................................................1-5
Licensing........................................................................................................................1-5
Troubleshooting Information .........................................................................................1-5
Chapter 2
Software Structure
Planning Options............................................................................................................2-1
Directory Structure ........................................................................................................2-1
Chapter 3
Licensing and Terminology
Licensing Overview .......................................................................................................3-1
Floating and Node-Locked Licenses ...............................................................3-1
Redundant License Servers .............................................................................3-1
Flexible License Checkout ..............................................................................3-2
Chapter 4
Installation and Related Tasks
Version 7.x Installation ................................................................................................. 4-1
Requirements .................................................................................................. 4-1
Installation Procedure ..................................................................................... 4-1
License Installation ......................................................................................... 4-4
Installing Other Components......................................................................................... 4-6
Installing Altia Design Animation .................................................................. 4-6
Installing Altia FacePlate ................................................................................ 4-7
Installing the Standalone License Manager .................................................... 4-7
Installation Procedure ....................................................................... 4-8
Installing Redundant License Servers............................................................. 4-8
Updating a License File................................................................................................. 4-9
Using Online Help......................................................................................................... 4-9
Printing Files ................................................................................................... 4-9
Installation-Related Tasks ............................................................................................. 4-9
Setting Up a User Environment for Printing................................................... 4-9
Running Multiple MATRIXx Versions .......................................................... 4-10
Recording Your Reference Number ............................................................... 4-10
Moving the MTXHOME Directory Tree to Another Directory ..................... 4-10
Configuration Management Tasks .................................................................. 4-10
Troubleshooting Your Installation .................................................................. 4-11
Virus Scanners and Utility Software ................................................ 4-11
Temp Directory Usage During Install .............................................. 4-12
License Servers................................................................................. 4-12
Uninstalling Version 7.x................................................................................................ 4-13
Chapter 5
FLEXlm Licensing Tools
FLEXlm Utilities ...........................................................................................................5-1
lmgrd................................................................................................................5-1
lmstat ...............................................................................................................5-2
lmreread...........................................................................................................5-3
lmhostid ...........................................................................................................5-3
lmdiag ..............................................................................................................5-4
lmver................................................................................................................5-4
lmborrow .........................................................................................................5-4
Initiating Borrowing..........................................................................5-5
Clearing the Borrowed License Setting ............................................5-6
Determining Borrowed License Status .............................................5-6
Returning a Borrowed License Early................................................5-6
lmutil................................................................................................................5-7
lmtools .............................................................................................................5-7
Configuration Using License File .....................................................5-8
Configuration Useing Services .........................................................5-8
Resolving Problems .......................................................................................................5-8
General Debugging Tips..................................................................................5-8
Support Issues..................................................................................................5-9
Troubleshooting License Manager Problems ................................................................5-10
Host ID Problems ............................................................................................5-10
Connection Problems.......................................................................................5-11
Other Client Problems .....................................................................................5-12
Other Server Problems ....................................................................................5-12
Daemon Log File ...........................................................................................................5-14
Informational Messages...................................................................................5-14
Configuration Problem Messages....................................................................5-16
Daemon Software Error Messages ..................................................................5-17
Appendix A
Technical Support and Professional Services
This manual tells how to install MATRIXx product family version 7.x.
Organization
This manual includes the following:
Chapter 1, Installation Overview and Platform Requirements, defines
the version 7.x installation and platform requirements.
Chapter 2, Software Structure, describes the MATRIXx Product
Family directory structure and planning options.
Chapter 3, Licensing and Terminology, describes licensing-related
terminology and tasks.
Chapter 4, Installation and Related Tasks, gives a detailed explanation
of the version 7.x installation procedure and related tasks.
Chapter 5, FLEXlm Licensing Tools, discusses the version 7.x license
manager utilities, license manager debugging, and daemon log file.
Conventions
The following conventions appear in this manual:
The symbol leads you through nested menu items and dialog box options
to a final action. The sequence FilePage SetupOptions directs you to
pull down the File menu, select the Page Setup item, and select Options
from the last dialog box.
bold Bold text denotes items that you must select or click in the software, such
as menu items and dialog box options. Bold text also denotes parameter
names.
monospace Text in this font denotes text or characters that you should enter from the
keyboard, sections of code, programming examples, and syntax examples.
This font is also used for the proper names of disk drives, paths, directories,
programs, subprograms, subroutines, device names, functions, operations,
variables, filenames, and extensions.
monospace bold Bold text in this font denotes the messages and responses that the computer
automatically prints to the screen. This font also emphasizes lines of code
that are different from the other examples.
monospace italic Italic text in this font denotes text that is a placeholder for a word or value
that you must supply.
Platform Text in this font denotes a specific platform and indicates that the text
following it applies only to that platform.
Format Conventions
Code Examples or Program Output
This manual uses a special formatting convention to present code examples
or screen output from the installation program. The example format has a
numbered heading followed by a line; the end of the example is also
followed by a line.
Symbol Conventions
Environment Variables
This manual uses the % character to denote environment variables. For
example, %SystemRoot%\system32\drivers\etc\hosts is not an
absolute path, because it depends on the definition of %SystemRoot%.
The most commonly used environment variable in this document is
%MTXHOME%, which is used to refer to the MATRIXx Product Family
installation directory.
Related Publications
National Instruments provides a library of publications to support its
products. Of special interest to the users of this publication are the
installation guides, summarized as follows:
MATRIXx Product Family CD and booklet Installation Guide
(Windows)
FLEXlm End User Manual (from Macrovision Corporation)
For additional documentation, refer to the MATRIXx Help or the
National Instruments Web site at ni.com/matrixx.
Installation Overview
MATRIXx version 7.x includes installation software that performs a
complete installation for the product. This includes three setup types as
described in Table 1-1.
Type Description
Client Installs client software only.
Server (Windows 2000/NT/XP) Installs the product software on a
network server.
Standard Installs the product software on a local PC.
Note The Server and Standard installation processes require approximately 135 MB of
disk space during the installation process. The product software requires approximately
24 to 48 MB of RAM.
Note MATRIXx can be installed on a file server using a shared license manager.
Platform Requirements
National Instruments supports the MATRIXx version 7.x software in the
hardware and software environments described in the following sections.
Hardware Requirements
The following requirements apply to all computers that will run MATRIXx
on Windows 2000/NT/XP:
Pentium III 500 MHz or equivalent.
Minimum 32 MB RAM, 64 MB recommended.
A video card that supports a minimum of 256 colors at 800 600
resolution; 65,536 colors at 1024 768 resolution is recommended;
True Color setting (16 million) is supported.
A CD-ROM drive.
Approximately 135 MBs of disk space to complete a full MATRIXx
installation. Refer to Table 1-3 for details.
A 2-button Microsoft compatible mouse, with a 3-button Logitech
mouse or equivalent preferred.
Note You can change the number of colors for your display through StartSettings
Control PanelDisplaySettings.
Software Requirements
The following requirements apply to all computers that will run MATRIXx
on Windows 2000/NT/XP:
The MATRIXx software requires Windows 2000, Windows NT
version 4.0 or Windows XP. Supported installations include English,
Japanese, and German.
If you want to link your own C code to Xmath or SystemBuild, you
must purchase and install a copy of Microsoft Visual C++ or 6.0.
For FORTRAN you must install a copy of DIGITAL Visual Fortran 5.0
or 6.0.
Note DIGITAL Visual Fortran 5.0 for Windows NT (releases 408 through 333E) requires
a patch for the linker before it will work properly. Contact Digital at
www.digital.com/fortran to acquire the patch.
Caution Other compilers may work in certain cases, but they are not supported.
NI recommends against using unsupported compilers.
Installation Configurations
MATRIXx supports three installation types on Windows hosts: standard,
server, and client. A PC can only support one of these installation types at
a time for a given version of MATRIXx. If you want to change installation
types for a version, you should uninstall and then reinstall that version.
Multiple different versions of MATRIXx software can be installed at one
time on the same machine, including different installation types.
Standard Installation
A standard installation installs the full set of MATRIXx software on the
local Windows system. Typically, this type of installation is not visible to
other machines on the network because it uses a local installation path not
accessible to other systems.
Server Installation
A server installation, installs the full set of MATRIXx software on the local
Windows system similar to a standard installation. However, a server
installation will, if necessary, automatically create a directory share with a
user specified name for the local install directory, thus ensuring that the
software is visible to other client systems on a network. A server
installation can also accept a valid UNC format pathname for the
installation directory path.
Client Installation
A client installation (requiring only 5 KB of disk space) creates shortcuts
to an existing server installation of MATRIXx and updates any Windows
shared system files on the client required to run the MATRIXx software.
It does not place any other software on the client system. During a client
installation of MATRIXx, you will be asked to specify the network
pathname of an existing MATRIXx server installation.
All client machines that will use MATRIXx software must be able to access
the %MTXHOME% root directory on the server machine.
Licensing
MATRIXx uses FLEXlm licensing utilities. For licensing information,
refer to Chapter 3, Licensing and Terminology, Chapter 5, FLEXlm
Licensing Tools, or the FLEXlm End User Manual on the MATRIXx
Bookshelf.
Troubleshooting Information
For troubleshooting tips, refer to the Troubleshooting Your Installation
section of Chapter 4, Installation and Related Tasks. For additional
troubleshooting assistance contact [email protected].
Planning Options
Before starting the installation, you should make decisions about how and
where you want to install MATRIXx tools. These issues must be addressed
before you start the installation procedure detailed in Chapter 4,
Installation and Related Tasks.
You can install a copy of MATRIXx on a local node using either floating
or node-locked licensing, or, you can use a file server (a shareable disk) and
a shared license manager to install the MATRIXx software on a network
server. The directory structure detailed here is of interest in both situations,
as it handles multiple versions and multiple platforms.
Directory Structure
The directory structure shown in Figure 2-1, shows the MATRIXx product
structure, which enables you to manage the software in a central location in
a network environment. This structure reduces the system administration
issues of multiple installations for a given platform, because installation
can be completed solely on a file server using a common license manager.
Then a simple client installation on a networked node will let you access
the file server installation. You can safely install multiple versions of
MATRIXx version 7.x into a common root installation directory
(%MTXHOME%).
Note All machines that will use MATRIXx software must be able to access the
%MTXHOME% root directory. %MTXHOME% and installation_directory (referred to
elsewhere in this document) are equivalent.
(%MTXHOME%)
Licensing Overview
MATRIXx licensing includes the following features:
Floating and node-locked licenses
Redundant license servers (optional)
Flexible license checkout
Windows 2000/NT/XP systems can check out floating licenses from either
a Windows 2000/NT/XP or UNIX license server. To check out licenses
from a network license server, a Windows system must reference a copy of
the same license.dat file used by the network server, or it must
reference a proxy license file (refer to the Proxy License Files section).
NI issues redundant license server keys once you provide the hostid of the
three servers. At a minimum, you need to run the standalone license server
installation program and start the license server on each machine. Follow
the instructions described in the Installing Redundant License Servers
section of Chapter 4, Installation and Related Tasks.
All of these commands must be run from the Xmath Commands window.
LICENSECHECKOUT
LICENSECHECKOUT is an intrinsic command that checks out a license for
the listed feature or features. Run LICENSEINFO to see a list of feature
names. Features are specified as strings, and the name must be exactly as
displayed by LICENSEINFO.
Although features are normally checked out on-demand, you can use
LICENSECHECKOUT to reserve features for future use (for example, for a
scheduled demo or presentation). They are checked in when you exit
Xmath.
For example:
LICENSECHECKOUT"Xmath","Control","Sysid","Sysid2",
"sysbld","case"
LICENSEUSER
The LICENSEUSER utility displays assigned licenses for any feature
names specified. The default feature is Xmath if no argument is specified.
LICENSEUSER accepts feature names in string form. To see a list of the
feature names for products you have purchased (for example, aca indicates
AutoCode Ada), issue the LICENSEINFO command. The syntax for
LICENSEUSER is as follows:
LICENSEUSER feature1,feature2,...featureN
Users of aca:
Number of licenses purchased : 4
Number of unused licenses : 2
User Node Name Starting Time
muemura sampras Thu May 29 19:56:44 1999
uma sampras Mon Jun 9 13:51:47 1999
LICENSEINFO
LICENSEINFO displays a license report for your site as shown in
Example 3-2.
LICENSEFILE
The LICENSEFILE command displays the current license file search path.
The syntax and example output are as follows:
LICENSEFILE
License files searched by MATRIXx are as follows:
\\butters\ni\NILM\license.dat
\\butters\ni\NILM\tplic.dat
NIREFNUM
The ISIREFNUM command displays the reference number (also known as
your customer identification number). You should have this number ready
if you plan to call customer support.
Using Licensing
With concurrent licensing, you can have a different number of licenses for
each module or application. An application or module is either available on
a first-come, first served basis, or node-locked to a given CPU. Some
common uses of licensing are as follows:
To see all the features your site has purchased or to view the license
expiration date, use the command LICENSEINFO.
To see who is using a given feature, or to see if a feature is available,
use the LICENSEUSER command and specify the desired feature.
To see the current license file search path, use the command
LICENSEFILE.
To reserve features for future use (for example, for a scheduled demo
or presentation), use the LICENSECHECKOUT feature.
License Files
The set of licensed features available for checkout by a MATRIXx user are
contained in one or more license files, each containing encrypted feature
lines.
The following default license files are used by the MATRIXx products:
%MTXHOME%\NILM\license.datThis primary license file
contains feature lines for built-in MATRIXx features. The
license.dat file is generated from NI provided authorization keys
during the MATRIXx or standalone license manager installation
procedures.
The search paths used to locate these license files are set in the environment
variable %NILM_LICENSE_FILE% by the MATRIXx product launching
scripts. The above NI license file paths are prepended to any existing
definition of %NILM_LICENSE_FILE%, thus allowing access to other
MATRIXx or non-MATRIXx products also licensed by a FLEXlm license
manager.
Normally, the only things you can change in a license file are:
The hostname (not the hostid).
The port number on the SERVER line. If this port number is already in
use, the license daemon (lmgrd) will report Address In Use. The
default port number used in MATRIXx 7.x license files is 27001,
whereas for prior releases it was 5200. A valid number is any unused
port number between 1025 and 64000. Beginning with MATRIXx 7.x,
the port number can be removed and the FLEXlm license manager will
serve on any available FLEXlm reserved port in the range
27000-27009. For redundant license servers, however, you must use a
fixed port number.
The path to the vendor daemon executable on the DAEMON line. (The
vendor daemon is named nilm.)
name=value pairs on a FEATURE line can be changed if name is
lowercase.
Redundant license server files contain three SERVER lines. The first
SERVER line defines the primary license server. The second and third lines
define the secondary license servers.
Unless your server nodes are changed, you will not have to update the
license file for each individual MATRIXx installation when the server
license file is updated.
Although a proxy license file is the preferred way to reference the actual
license file used by a remote license server, you can also use a port@host
definition for either of the environment variables NILM_LICENSE_FILE
or MTXLMD_LICENSE_FILE. port is the license file port number and
host is the hostname, and both are taken from the SERVER line of the
actual license file. MTXLMD_LICENSE_FILE is similar in use to
NILM_LICENSE_FILE, except that it is specific to the MATRIXx license
manager daemon and overrides any concurrent definition of
NILM_LICENSE_FILE.
Compatibility
The MATRIXx 7.x license manager uses the vendor daemon name nilm
(versus isilmd in prior releases) and the default port number 27001 (versus
27000 in prior releases). As a result, the MATRIXx 6.x (ISILM) and
MATRIXx 7.x (NILM) license manager can coexist with MATRIXx 5.x
running on the same machine. Since version 6.x/7.x software must be
installed in a different directory %MTXHOME% directory than MATRIXx 5.x,
versions of the MATRIXx license manager for MATRIXx 5.x do not have
to be stopped to install the new software. MATRIXx 6.x (ISILM) and
MATRIXx 7.x (NILM) can share the same %MTXHOME% directory since
their license directories are different. You would only need to kill the older
license manager daemon (lmgrd) if you choose to reove the old software.
Licensing Requirements
In order to obtain a license, you must provide the computername and
hostid for each license server machine.
Requirements
Your system must meet the hardware and software requirements for
your platform specified in Chapter 1, Installation Overview and
Platform Requirements.
Floating licenses require properly functioning TCP/IP networking
which includes Winsock version 1.1 or later.
Installation Procedure
Before running the installation program, you will need the reference
number, authorization key, and checksum.
Note Before beginning the installation make sure you exit from any other software and
stop all virus scan software.
b. If you select Server, you will be prompted for the Sharename for
the installation directory unless you entered a universal naming
convention (UNC) pathname as the install location.
License Installation
7. The License Manager (NILM) installation asks you whether you want
to generate a new license file (license.dat).
Note If you dont already have a version 7.x license file, click Yes to generate one. If you
intend to access a floating license provided by another host, click No to avoid generating a
new license. Then when the installation is complete, use a text editor to create a proxy
license file named license.dat in the installation_directory\NILM folder as
described in the Proxy License Files section of Chapter 3, Licensing and Terminology.
Note The license server is not required for an Evaluation license. For other licenses, the
license server can always be started later using the command: lmgrd -c licesne.dat
-l debug.log.
8. Upon completion, you can select to display the README file (an ASCII
version of the release notes that are also available in the MATRIXx
Help) or exit the installation.
Note In most cases rebooting is not necessary, but Setup will prompt you to reboot if
required. If you have just completed a server installation, be sure to set your desired access
permissions for the MTXHOME directory share.
Note If you choose not to install within your current MTXHOME directory, you must edit
the Altia code words file after installation is complete to identify the path of the NI license
manager file (license.dat). Select StartProgramsAltia DesignCodeword File
and specify the path to the MATRIXx license file.
Note If you choose not to install within your current MTXHOME directory, you must edit
the Altia code words file after installation is complete to identify the path of the NI license
manager file (license.dat). Select StartProgramsAltia FacePlateCodeword File
and specify the path to the license file.
Installation Procedure
Before running the installation program, you will need the NI reference
number, authorization key, and checksum.
1. Place the version 7.x CD in the CD-ROM drive.
2. Use the Windows Explorer to find the setup.exe file in the NILM
directory and launch it.
3. Select the Install License Manager setup type and follow the dialog
prompts to complete the installation.
4. Each installation of MATRIXx installed in a separate location can
access the license server via the proxy license file described in the
Proxy License Files section of Chapter 3, Licensing and Terminology.
Note Rather than generating the license file on each secondary license server, copy
license.dat from the NILM directory of the primary server to the NILM directory of
each secondary server before starting the license daemons. Edit the DAEMON line of each
secondary copy of the license.dat file to point to the daemon path that contains
nilm.exe for that server.
Printing Files
To print a Help topic, go to the Topics Hierarchy, and select a topic (for
example, Dynamic SystemsControl Design) and then right click and
hold. An Internet Explorer window displays with one of the options saying
Open Frame in New Window. When the Help topic is in the new
window, select Print (or any other standard Internet Explorer capability).
Installation-Related Tasks
Setting Up a User Environment for Printing
The environment variable %XMATH_PRINT% defines the printer for
MATRIXx. The following are sample definitions for %XMATH_PRINT%,
where \\pluto\hp4 should be replaced by your printer.
You can use the Xmath NIREFNUM command to display the reference
number.
When you connect to CM, you must set your working directory to the
working directory for the selected project. The CM tool supports working
with one project at a time (there is a 1:1 relationship between the working
directory and a project).
It is possible to run the external programs from the command line after an
install to fix these problems without performing a complete reinstall. You
can invoke each of the two programs listed below without providing
parameters to get a usage message that describes the required
command-line arguments.
To generate a new license file from the Command Prompt window,
change directory to %MTXHOME%\NILM and run the license file
generator engine.exe. You should use the -nolog parameter when
generating the license from the command-line. This program replaces
the license.dat file in the %MTXHOME%\NILM directory.
License Servers
The license server must be started unless you are using an Evaluation
license or are using another network node as a floating license server. When
the license server is properly started, the lmgrd and nilm processes
should appear in the process list of the Windows task manager. You can use
the MATRIXx License Server applet in the Windows Control Panel to start
or stop the license server or to check its status. You can also check the
contents of the license server diagnostic log file,
installation_directory\NILM\debug.log, to see if the license
server is running correctly. If the license server is running and you wish to
use a different copy of the license.dat file, you should stop the license
server first, copy the new license.dat file and then restart the license
server.
If you try to perform one of the following licensing tasks and receive an
error message, you may be able to correct it by identifying the cause as
described in Table 4-1.
You will need to complete the following steps to completely remove both
the license server and the MATRIXx software:
1. Stop and remove the MATRIXx License Server service from your
machine complete the following steps:
a. Select StartNational InstrumentMATRIXx mx_71.1
NI Licence Managerlmtools.
FLEXlm Utilities
MATRIXx Product Family version 7.x uses FLEXlm for its license server.
FLEXlm provides the following utilities to help manage the licensing
activities on the network:
lmstat Helps you monitor the status of all network licensing
activities.
lmdiag Lets you diagnose problems when you cannot check out
a license.
lmgrd Starts the license daemon.
lmhostid Reports the host ID of a system.
lmreread Causes the license daemon to reread the license file and
start any new vendor daemons.
lmver Reports the FLEXlm version of a library or a binary.
lmborrow Supports license borrowing.
lmutil FLEXlm license server management and administration.
lmtools Graphical user interface for FLEXlm utilities.
lmgrd
lmgrd is the main daemon program for FLEXlm. When you invoke
lmgrd, it looks for the license file. The license file contains information
about vendors and features.
Syntax is:
lmgrd -app [ -c license_file ] [ -t timeout ][ -s interval ]
[ -b ] [-l logfile ]
where:
lmstat
The lmstat utility helps you monitor the status of all network licensing
activities, including:
Which daemons are running
Users of individual features
Users of features served by a specific daemon
Syntax is:
lmstat [-a] [-S [DAEMON]] [-f [feature]]
[-s [server_name]] [-t value] [-c license_file][-A]
[-l [regular expression]
where:
-a Displays everything.
-A Lists all active licenses.
lmreread
The lmreread utility causes the license daemon to reread the license file
and start any new vendor daemons that have been added. Additionally, all
pre-existing daemons will be signaled to reread the license file for changes
in feature licensing information. Syntax is:
lmreread [-c license_file]
Note If you use the -c option, the license file specified will be read by lmreread, not by
lmgrd; lmgrd rereads the file it read originally. Also, lmreread cannot be used to change
server node names or port numbers. Vendor daemons will not reread their option files as a
result of lmreread.
lmhostid
The lmhostid utility reports the host ID of a system. Syntax is:
lmhostid [ether | long]
lmdiag
lmdiag allows you to diagnose problems when you cannot check out a
license.
Usage is:
lmdiag [-c license_file] [-n] [feature]
lmver
lmver reports the FLEXlm version of a library in binary. Usage is:
lmver [filename]
lmborrow
lmborrow supports borrowing of licenses that contain the BORROW
attribute. It must be run on the machine where licenses are borrowed. It is
used to perform the following:
Initiating borrowing by setting the borrow period
Clearing the borrow period
Initiating Borrowing
To initiate borrowing, the user sets the borrow period by running
lmborrow from the command line or through LMTOOLS:
where:
vendor The vendor daemon name that serves the
licenses to be borrowed, or all specifies all
vendor daemons in that license server.
enddate [time] Date the license is to be returned in
dd-mmm-yyyy format. time is optional and
is specified in 24-hour format (hh:mm) in the
FLEXlm-licensed applications local time.
If time is unspecified, the checkout lasts
until the end of the given end date.
For example:
lmborrow sampled 20-aug-2001 13:00
(Windows) This has the effect of setting LM_BORROW with the borrow period
in either registry.
To borrow licenses for the desired vendor, on the same day and the same
machine that the user runs lmborrow, run the application(s) to check out
the license(s). If you run the application(s) more than once that day, no
duplicate licenses are borrowed. No licenses are borrowed if the application
is run on a day different than the date borrowing is initiated.
Clearing the LM_BORROW setting stops licenses from being borrowed until
borrowing is initiated again. A user might run lmborrow -clear after
he has borrowed licenses for features that are used offline ifbefore
disconnecting from the networkhe wants to run an application that
checks out additional features, served by vendor, that are not meant to
be borrowed. Clearing LM_BORROW does not change the status for
already-borrowed licenses.
Returning the license early has the effect of clearing the LM_BORROW
setting for the vendor daemon that serves the returned license.
lmutil
The following are valid arguments for most lmutil utilities:
-c license_file_path Most lmutil utilities need to know the
path to the license file. This is specified
with a -c license_file_path
argument, or by setting the
LM_LICENSE_FILE environment
variable. Otherwise, the default location
is used. The utilities also honor all
VENDOR_LICENSE_FILE environment
variables. Some utilities take more than
one license file path in a license-file list
separated by semi-colons. Pathnames
which include spaces have tobe enclosed
in double quotes.
-v Prints the FLEXlm version of the utility.
-verbose Prints the description for all errors found.
The output from the utilities may be
harder to read with this option, but is
useful for diagnostics. (v6.0+ only)
lmtools
For the 32-bit Windows platforms, a graphical user interface to the license
manager tools is provided called LMTOOLS. Always use the newest
version of LMTOOLS as possible; it is available for download from
www.macrovision.com.
Resolving Problems
This section offers some general debugging tips, and discusses information
you should gather before contacting support. The Troubleshooting License
Manager Problems section lists common license manager problems users
have encountered before.
Support Issues
When you make a support call, please be prepared to answer the following
questions:
What kind of machine is your license daemon running on? What
version of the operating system is the application running on?
What version of FLEXlm does the program use? Use the following
command on your nilm vendor daemon and application:
%MTXHOME%\NILM\lmver %MTXHOME%\NILM\nilm.exe
What error or warning messages appear in the log file? Did the daemon
start correctly? Look for a message such as:
server xyz started for: feature1 feature2.
What is the output from running lmstat -a?
Are you running other products which are also licensed by FLEXlm?
National Instruments does not support combined license files.
Host ID Problems
symptom When I run the license manager on my machine, it tells me it
is the wrong host ID.
cause The vendor daemon checks the host ID listed on the server
line in the license file; if it does not match the host ID of the
machine it is running on, this message will be printed.
solution Verify that the host ID of the machine where the vendor
daemon (or node-locked client program) is being run matches
the host ID specified in the license file (on the server line
for the vendor, or on the feature line for a node-locked
client). You can run the lmhostid program to see what
FLEXlm thinks the host ID is. You cannot modify the host ID
in the license file. If the host ID of your server machine
changes, you will have to get a new license file from your
software vendor.
Connection Problems
symptom The application program (or lmstat) cannot connect to the
server to check out a license.
solution Verify that the application is using the proper license file.
Verify that the specified server machine is up and reachable by
executing another command that uses TCP, such as rsh or
rlogin, from the client to the server. Verify that the vendor
daemon is running (you can use the ps command on the server
to look for it). Examine the license log file to see if any
problems are reported, particularly messages indicating that
the vendor daemon has quit. Run lmstat -a from the server
machine to verify that the vendor daemon is alive. Run
lmstat -a from the client machine to verify the connection
from client to vendor daemon across the network. Try using
telnet hostname portnum where hostname and
portnum are the same as on the server line in your license
file.
solution You cannot modify the license file. If you need to change
something in your license file, you must get a new license
from National Instruments.
symptom When the second user tries to check out a license, the vendor
daemon prints an error concerning Parameter mismatch
in the log file and refuses the license.
cause The most likely cause of this problem is that you are
simultaneously trying to run two different versions of the
application program, and the software vendor has not
specifically set up the new version for this kind of
compatibility. Check the license server log file for a comm
version mismatch warning message; this indicates that
someone is running a V1.5 client with a V2.1 or later license
server.
solution Run only the new version of the application (or only the old
version).
cause The license server listens on the port xxxx that has already
been used by another server program. 99.44% of the time, if
its in use, its because lmgrd from NI or another vendor is
already running on the portor was recently killed, and the
port isnt freed yet.
solution In the license.dat file NI has put 27000 at the end of the
SERVER line as the port number. You can remove it to let
lmgrd scan for a free port from 27000 to 27009. You can also
specify a port number selected by yourself for other concerns
like farewell.
Caution The portscan feature of lmgrd is only available for FLEXlm v6+ licenses. You
cannot drop the port numbers when configuring redundant servers.
solution Verify that the path to the vendor daemon is absolute, and that
it points to the executable program itself, not the containing
directory (for FLEXlm v1.5). Ensure that the file exists by
doing an ls -l of the vendor daemon filename(s)
specified in the log file. Make sure you do this as the same
user that started lmgrd. Verify that the file is executable. Run
the vendor daemon directly from the command line. If the
vendor daemon is properly linked, it will tell you that it must
be run from lmgrd; if it crashes or fails to execute, then it is
not properly linked.
symptom The license server keeps reporting lost lock errors in the
log file and exiting.
solution Check to see if there is more than one copy of the daemon
running. Check for more than one lmgrd running as well,
since it will restart your vendor daemon when it is killed. If
more than one lmgrd is running, kill them all, then kill any
remaining vendor daemons and start one fresh copy of
lmgrd. Check to see whether a shell script is running that
cleans out tmp. If so, try modifying it so that it does not delete
zero length files.
Informational Messages
These messages are only informational and do not necessarily indicate an
error or a problem.
EXITING DUE TO SIGNAL nnn. All daemons list the reason that the daemon has
EXITING with code nnn. exited.
EXPIRED: feature. feature has passed its expiration date.
hostname: Not a valid server This daemon was run on an invalid hostname.
host, exiting
hostname: Wrong hostid, The host ID is wrong for hostname.
exiting
BAD CODE for feature-name The specified feature name has a bad encryption code.
CANNOT OPEN options file file The options file specified in the license file could not be
opened.
license daemon: lost all This message is logged when all the connections to a
connections daemon are lost, which often indicates a network
problem.
lost lock, exiting Error closing lock file.
Unable to re-open lock file The vendor daemon has a problem with its lock file,
usually because of an attempt to run more than one copy
of the daemon on a single node. Locate the other daemon
that is running via a ps command, and kill it with
kill -9.
NO DAEMON line for daemon The license file does not contain a DAEMON line for
daemon.
No license service found The TCP license service did not exist.
No license data for feat, There is no feature line for feat in the license file.
feature unsupported
NO DAEMON lines, exiting The license daemon logs this message if there are no
DAEMON lines in the license file. Since there are no
vendor daemons to start, there is nothing to do.
NO DAEMON line for name A vendor daemon logs this error if it cannot find its own
DAEMON name in the license file.
If you searched ni.com and could not find the answers you need, contact
your local office or NI corporate headquarters. Phone numbers for our
worldwide offices are listed at the front of this manual. You also can visit
the Worldwide Offices section of ni.com/niglobal to access the branch
office Web sites, which provide up-to-date contact information, support
phone numbers, email addresses, and current events.