FLEXlm Utilities
上一篇 / 下一篇 2008-10-19 10:08:46 / 个人分类:技术专区
When hpmfocdsini installs the FLEXlm components, it installs the ****** administration tool, lmutil. lmutil contains several utility programs embedded within it. You can use these utilities to better manage the use of FLEXlm ******s.EDA中国门户网站jD-n S{R uG
EDA中国门户网站4rwJ_ c `5eBy default, the utilities are placed in /usr/local/flexlm/bin. However, they may be elsewhere if FLEXlm was already present on the system, or if hpmfocdsini was directed to install FLEXlm at an alternate location.
6?)WVJ{]:[8sFwY0EDA中国门户网站 ^3Ya+BU*[c'j%mYou can access these utilities two different ways. You can use lmutil to run the utility:
0p:bA!K5R8t2z c^`0$ cd /usr/local/flexlm/bin |
iD3})s8c&p0Or you can run the utility directly:
F.Y.}K`0$ ./utility_name |
For example, the following two commands are equivalent:
3oK%@Oi&_ JE0$ ./lmutil lmstat -aEDA中国门户网站e eJtM:N)o p!ZZ*I |
$ ./lmstat -a |
The utilities included in lmutil are the following:EDA中国门户网站0YT ZM0yID:L \Va
lmcksum
e2c(U.q^O3sF0lmdiagEDA中国门户网站 J}~$pY"e d
lmdownEDA中国门户网站w7lQ]'x-[
lmhostidEDA中国门户网站\+x4HpH8e%Ax
lmremove
"['h(bxr5r0lmrereadEDA中国门户网站.[p@ M4pu t
lmstatEDA中国门户网站+]]OgTf [B:R Y
lmswitchrEDA中国门户网站$_7}2RqxDm
lmver
(A(f#wY N{0
All of the utilities accept the following arguments:
m5J?n,\VG8e)K,p0- -v
print version and exit
`$?JLg6HLl0- -c ******_file
operate on the ******.dat file specified by ******_file
U)ZUcRM0EDA中国门户网站 EO Yayd5kxiHA
~OM&Z n7`&`!KA0Brief descriptions of the utilities are included in the following sections.
l1u,brQ t&X06j I i[ c ~Y'E0Complete information on the use of FLEXlm tools and utilities can be found in the GLOBEtrotter FLEXlm End User Manual at:EDA中国门户网站f;HA F#Z B8h.t0v:t2A
p;]8R\P2_
u/q0 http://globetrotter.com/manual.htm
]3^s+S+X$x(\;Oc0
This utility performs a checksum of a ****** file. This is useful to verify data entry errors in your ****** file. lmcksum prints a line-by-line checksum for the file as well as an overall file checksum. lmcksum takes the -k switch to force the encryption key checksum to be case-sensitive.EDA中国门户网站'[w A4Z/u|W#b$^
EDA中国门户网站lX}`!L drOXblmcksum ignores all fields that do not enter into the encryption key computation. Therefore, the SERVER name and port number, as well as the DAEMON pathname and options file names are not checksummed. In addition, lmcksum will treat non-case-sensitive fields correctly (in general, lmcksum is not case-sensitive).EDA中国门户网站FvGr$B,ar*F
EDA中国门户网站!up1WE_%u.Elmcksum takes an optional DAEMON name; if specified, only ****** file lines for the selected DAEMON are used to compute the checksums.EDA中国门户网站-s0p M(~Y yz
EDA中国门户网站y h K,rJUGoYzPBy default, lmcksum operates on ******.dat in the current directory. Specify -c ******_file if you want to checksum another ****** file.
fr2|O NFj:W i8ByW0lmcksum Sample Output:
lmcksum - Copyright (C) 1989, 1993 Globetrotter Software, Inc. |
This utility allows you to diagnose problems encountered when trying to check out a ******. Its usage is as follows:EDA中国门户网站 X$_,k O2V
EDA中国门户网站7lG&QC8D_lmdiag [-c ******_file] [-n] [feature]
'Z:_E8b.~f0EDA中国门户网站kl h9?X&y;cMwhereEDA中国门户网站5c$wz\N"q\
- -c ******_file
is the path to the ******.dat file that contains the features you are having trouble with.
!z!^$FxpJ0- -n
run in non-interactive mode. lmdiag will not prompt for any input. Extended connection diagnostics are not available.
L _PB:J+d)d!D0- feature
diagnose this feature only.EDA中国门户网站(H kf Dm'T
EDA中国门户网站F:P:T?@h1Y0zde4IW
The lmdiag utility operates on all of the features specified in all ****** files found in your path. It prints information about each ****** and attempt to check them out. lmdiag indicates whether the checkout attempt succeeded or failed. If the checkout fails, the reason is given. If the reason for failure is that lmdiag is unable to comment to the ****** server, it gives you the option of running extended connection diagnostics.
9w&a,c {"OX+SH1b00P9nzv ]`T0Extended connection diagnostics attempt to connect to each
port on the ****** server nodes(s) and will indicate if the port
number specified in the ******.dat file is
incorrect. lmdiag indicates each port number
that is listening and indicates if it is a lmgrd
process. If the vendor daemon for the feature being tested is found,
lmdiag indicates the correct port number to use
in the ******.dat file to solve the problem.EDA中国门户网站uI0FZV?6D
This utility allows for the graceful shutdown of all ****** daemons (both lmgrd and vendor daemons) on all nodes. Its usage is as follows:
D%O!f6{0nPK+] y4h0+M RpV K,V8M[0lmdown [-c ******_file]
F @!{OSp0%AM!sNH%@_/b0where
S&bt$Q6b5jh0YA$i[o0-c ******_file specifies the ******.dat file to operate on.EDA中国门户网站 ii7e-i1LRU
EDA中国门户网站6s.}Un]If a ****** file is not specified with the -c option, lmdown operates on the ****** file specified by the LM_******_FILE environment variable. If a LM_******_FILE environment variable is not found, it tries to use /usr/local/flexlm/******s/******.dat. In most cases, specify the exact location of the ******.dat file you want lmdown to operate on.EDA中国门户网站 a1x"q5wtm#d
EDA中国门户网站7mH ^ ~f+h&s5L7lYou usually only need to shutdown and restart licensing if
you have changed a vendor daemon options file.EDA中国门户网站+Az/x)B3U3~#k
| IMPORTANT: When shutting down redundant servers, there is
a one minute delay before the servers shut down. Never use kill -9
to shut down the ****** servers. uK|\3M0Since lmdown shuts down the FLEXlm licensing, thereby removing the ******s from active processes, it is advisable that the system administrator restrict its use to ****** administrators only. This can be accomplished by starting lmgrd with the -p -2 option. This will cause lmgrd to allow only a member of the UNIX "lmadmin" group to execute lmdown, lmremove, or lmreread commands. If the UNIX group "lmadmin" does not exist, then only a member of group 0 will be allowed access to these commands. If you want to completely disable the lmdown and lmremove utilities, start lmgrd with the -x option.EDA中国门户网站$Ce5v6]$\6Q`3V | |
This utility can be used to identify the correct hostid value (that must match the hostid value on SERVER lines in the ******.dat file if the machine is a server) on any machine support by FLEXlm. Its usage is:
YCg#H @.K _'o0t fIwo ac]0lmhostid
-qd~e H$]6F3N0This utility generally allows the system administrator to remove a single user's ****** for a specified feature. However, you cannot use lmremove to remove a COBOL ******. EDA中国门户网站5lrv"AKp.E
*A7f Cc7yA|0If you attempt to do this, lmremove appears
to succeed and lmgrd logs a message stating that
the ****** was removed; however, the ****** is not
given up and returned to the pool of available ******s.EDA中国门户网站
m}#Vc:\Ny
EDA中国门户网站Am1\ L'`g
This utility causes the ****** daemon to reread the ****** file and start any new vendor daemons that have been added. In addition all pre-existing vendor daemons will be signaled to reread the ****** file for any changes in feature licensing information. lmreread cannot be used to change server node names or port numbers. Its usage is as follows:EDA中国门户网站.r6S&P0HN@E
e&B)F2`N1w ^$dbi0lmreread [-c ******_file] [daemon]EDA中国门户网站.H7X ad d|[ t,b ?&G
EDA中国门户网站3\q_AAA2Bwhere
#M'^a |9s7b+h3s0- -c ******_file
specifies the ****** file to operate on. In this case, only lmreread will read the ****** file specified; lmgrd will reread the ****** file it originally read at start-up time.
hp qH!y#hwKH ~b0- daemon
specifies the vendor daemon to signal. If a vendor daemon is specified in this manner, only the named vendor will reread the ****** file. In this case, lmgrd will not reread the ****** file (and will not start any new vendor daemons that might have been added).
B7_ ^1nY)xqDX}:z0EDA中国门户网站-p8T$J h jz1zjK
,Pds0Q P4l!_,VD2tB(s0This utility allows the system administrator and/or user to quickly monitor the status of all FLEXlm licensing activities. lmstat returns information such as:
HQXB7`0which daemons are running
&?;G1Tb)c2|RbW0users of individual featuresEDA中国门户网站$y'am7D'f3Rq2}+i
users of features served by a specific vendor daemonEDA中国门户网站2H'N h-@|$P@
T'v)^ LUx)~0Its usage is:
(ST~5_4h4A [0EDA中国门户网站6Dr)f*j&SRlmstat [-a] [-S] [daemon]] [-f [feature]] [-i feature] [-s [server]] \ [-t value] [-c ******_file] [-A]EDA中国门户网站/U"olEH}y*j#d
EDA中国门户网站9G%`3ZX-Y4q Xg+^/lwhere
X{ R6V3`9D:j0- -a
displays all information about all features.
:Jfy7^j:dN0- -A
lists all active ******s.EDA中国门户网站7JAA OVH;~
- -c ******_file
specifies ****** file to operate on.EDA中国门户网站1b"aaS:?@Ak*R+C
- -f feature_name
lists the users of the specified feature.
/J&TFF{0S&pO1x!u0- -i feature_name
prints information about the named feature, or all features if no feature name is given.EDA中国门户网站.NhKu+aU.bo
- -s server_name
displays status of server node(s).EDA中国门户网站[f@nP
- -S daemon
restricts output to one vendor daemon, and the feature and users of that daemon.EDA中国门户网站&f&o+k/I C.[8?G#L1i
- -t value
sets lmstat time-out value.
2wev\X0
W/??.G_.nE*~T$j0
lmstat -a is a potentially expensive command.
If there are numerous active users, lmstat can
generate a lot of network activity. It should be used sparingly.EDA中国门户网站Tzb"}8x/_(j,a}R
EDA中国门户网站i!FOhX3Xr'VN
This utility switches the report writer REPORTLOG log file for the specified feature. It will also start a new REPORTLOG file if one does not already exist.EDA中国门户网站8pV%N q-KNmF?7x-e
EDA中国门户网站_ \i}eIts usage is:EDA中国门户网站%SXgq&WG
.L'z r(jeg-S:]0lmswitchr [feature] [new-file]
r,t!F#i%o |7],C0EDA中国门户网站;Kn1t E6EwhereEDA中国门户网站 wv@Jo mK+b8w
- feature
is any feature the DAEMON supports.EDA中国门户网站IWpICA.X3P
- new-file
is the new file path.
p]"Wourr p7J}0EDA中国门户网站2k/@$EZ"jEC
@t4\;V+Xf[)?
q u0Note that report writer is part of the FLEXadmin
End-User Administration Tool available from GLOBEtrotter Software.
0ZS$~.U#BU/E+]0EDA中国门户网站 l2B+z)[].lf7J
This utility reports the FLEXlm version of a library or binary file.
4QD#A TU6ER\R e05t4b"}5|HE0Its usage is:
/Oe$W6R6u0EDA中国门户网站4NQKFv'@5qlmver [filename]EDA中国门户网站 Vpm,cSoVPa |K
EDA中国门户网站3q1O#w(\Unwhere
,}*I:qbY6y0- -filename
is the name of a program or library.
3UU8pub z0
For example, to determine the version of FLEXlm used by COBOL, type:
I%GY&`u7Po]y0$ lmver $COBDIR/coblib/libcobol.sl |
You can use the following command to get the FLEXlm version of a binary:EDA中国门户网站)a'a[!s9h MK]8N@
$ strings file | grep Copy |
If you omit the argument, lmver tries to find the FLEXlm library liblmgr.a and warns you that it cannot find it.
,R&dD+Tg0TAG: