It's not time to enjoy life!

FLEXlm Utilities

上一篇 / 下一篇  2008-10-19 10:08:46 / 个人分类:技术专区

EDA中国门户网站z#ug(dWM

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中国门户网站j D-n S{R uG

EDA中国门户网站4rwJ_ c `5e

By 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?)W VJ{]:[8s Fw Y0EDA中国门户网站^3Ya+BU*[c'j%m

You 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
uWl`[G0$ ./lmutil utility_name
Y hB2dz#pVl dJ0

iD3})s8c&p0Or you can run the utility directly:

F.Y.}K`0
$ ./utility_name
tL6LH _U7bz2E3v0
EDA中国门户网站8uO JfK(i"qcx-Z

For example, the following two commands are equivalent:

3oK%@Oi&_ JE0
$ ./lmutil lmstat -aEDA中国门户网站eeJtM:N)o
p!ZZ*I
$ ./lmstat -a
&O@K6RSCP0
1JH5T S3_}q?*K0
EDA中国门户网站p|n hy*p4y

The utilities included in lmutil are the following:EDA中国门户网站0YT ZM0yID:L\V a

  • lmcksum

    e2c(U.q^O3sF0
  • lmdiagEDA中国门户网站 J}~$pY"ed

  • lmdownEDA中国门户网站w7lQ]'x-[

  • lmhostidEDA中国门户网站\+x4Hp H8e%A x

  • lmremove

    "['h(bxr5r0
  • lmrereadEDA中国门户网站.[p@ M4p u t

  • lmstatEDA中国门户网站+]]OgTf [B:RY

  • lmswitchrEDA中国门户网站$_7}2RqxDm

  • lmver

    (A(f#wY N{0
EDA中国门户网站3P0nc&Y+``A

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中国门户网站E O Yayd5kxiHA

~OM&Z n7`&`!KA0Brief descriptions of the utilities are included in the following sections.

l1u,brQt&X0

6j Ii[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

@#ye j R-_fDJ0

Using lmcksum

EDA中国门户网站is f @k6[&@

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 drOXb

lmcksum 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中国门户网站!u p1WE_%u.E

lmcksum takes an optional DAEMON name; if specified, only ****** file lines for the selected DAEMON are used to compute the checksums.EDA中国门户网站-s0p M(~Yyz

EDA中国门户网站y h K,r JUGoYzP

By default, lmcksum operates on ******.dat in the current directory. Specify -c ******_file if you want to checksum another ****** file.

fr2|O NFj:W i8By W0

lmcksum Sample Output:

lmcksum - Copyright (C) 1989, 1993 Globetrotter Software, Inc.
.n9@0d KEG'_N;m0lmcksum: using ****** file "/usr/local/flexlm/******s/******.dat"
4}Zu4K [x.y{0 EDA中国门户网站&i/i.| z!\(}4Si0~
189: SERVER emerald 30A4B6F7 7788
E@V f3[Sj0166: DAEMON HPCUPLANGS /usr/local/flexlm/vendors/HPCUPLANGS
&G9_+K~ Qs B-pF08: INCREMENT f1 demo 1.000 01-jan-0000 0 3B5CD33OE5E1G8W3AICP "" 30A4B6F7EDA中国门户网站/_6sg5N$J;p
109: (overall file checksum)EDA中国门户网站AYA9blJ ?

Using lmdiag

EDA中国门户网站iZ3kIs

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;cM

whereEDA中国门户网站5c$wz\N"q\

-c ******_file

is the path to the ******.dat file that contains the features you are having trouble with.

!z!^$F xpJ0
-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

EDA中国门户网站w-[1Y-`+Tf iZ7O5u

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+SH1b0

0P9nzv ]`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

`l\fJ0

Using lmdown

EDA中国门户网站:H)] Otf5s

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

+MRpV K,V8M[0lmdown [-c ******_file]

F @!{OSp0

%AM!sNH%@_/b0where

S&bt$Q6b5jh0

YA$i[o0-c ******_file specifies the ******.dat file to operate on.EDA中国门户网站i i7e-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"q5wt m#d

EDA中国门户网站7mH ^ ~f+h&s5L7l

You usually only need to shutdown and restart licensing if you have changed a vendor daemon options file.EDA中国门户网站+Az/x)B3U3~#k

iL6nu6F1gX0
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中国门户网站$C e5v6]$\6Q`3V

Using lmhostid

EDA中国门户网站 Q Q@ef8uI*pm

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 _'o0

t fIwo ac]0lmhostid

-qd~eH$]6F3N0

Using lmremove

EDA中国门户网站)BZntJ%t9i0vO

This 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

*A7fCc7yA|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

Using lmreread

EDA中国门户网站$t+{n5Xf p[g.pB8s

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_AAA2B

where

#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)x qDX }:z0EDA中国门户网站-p8T$J hjz1zjK

Using lmstat

,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`0
  • which daemons are running

    &?;G1Tb)c2|RbW0
  • users 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&SR

lmstat [-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+^/l

where

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.
W/??.G_.nE*~T$j0

2wev \ X0
EDA中国门户网站$^ }RlPgo%B@

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!FO hX3Xr'VN

Using lmswitchr

EDA中国门户网站 a'k^h*H

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}e

Its usage is:EDA中国门户网站%SXgq&WG

.L'z r(jeg-S:]0lmswitchr [feature] [new-file]

r,t!F#i%o |7],C0EDA中国门户网站;Kn1t E6E

whereEDA中国门户网站 wv@JomK+b8w

feature

is any feature the DAEMON supports.EDA中国门户网站IWpICA.X3P

new-file

is the new file path.
p]"W ourr 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.
0Z S$~.U#BU/E+]0EDA中国门户网站 l2B+z)[].lf7J

Using lmver

EDA中国门户网站C_\2aK#]#P_f

This utility reports the FLEXlm version of a library or binary file.

4QD#A TU6ER\R e0

5t4b"}5|HE0Its usage is:

/Oe$W6R6u0EDA中国门户网站4NQKFv'@5q

lmver [filename]EDA中国门户网站 Vpm,cSoVPa | K

EDA中国门户网站3q1O#w(\Un

where

,}*I:qbY6y0
-filename

is the name of a program or library.

3UU8pub z0
EDA中国门户网站ULq/bnQese'd

For example, to determine the version of FLEXlm used by COBOL, type:

I%GY&`u7Po]y0
$ lmver $COBDIR/coblib/libcobol.sl
M;F4r y+Z,s"Mb0
EDA中国门户网站?'Z+Sn1ni

You can use the following command to get the FLEXlm version of a binary:EDA中国门户网站)a'a[!s9hMK]8N@

$ strings file | grep Copy
4g/J5p5X#WNB0
EDA中国门户网站s-pS~%v8q

If you omit the argument, lmver tries to find the FLEXlm library liblmgr.a and warns you that it cannot find it.

,R&dD+Tg0

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar