Notes on the iFOR/LS License Server. (From Info) Fileset Name ------------ bos.rte (duh) X11.base (common, lib, rte, smt) bos.net.tcp.client bos.net.tcp.smit Package Name Fileset Name Description ------------ --------------- ----------------------------- bos.ifor_ls bos.rte.ifor_ls Client Runtime - Contains the shared libraries required by applications that request licenses. bos.ifor_ls.client iFOR/LS administrative tools & utilities, ls_admin, ls_tv, ls_rpt, ls_stat, ls_targetid, SMIT screens, etc. bos.ifor_ls.server Config script (netls_config), (not normally iFOR/LS daemon (netlsd), and installed) the ls_dpass tool, which is used for compound licenses. bos.net bos.net.ncs NCS daemons and administrative tools (llbd, glbd, lb_admin, lb_find, etc.). To install & configure iFOR/LS, simply run netls_config and netls_first_time. Verify your work using the ls tv_tool. Installation Tools ------------------ netls_config - netls_first_time - tv_tool - NCS Location Broker Tools & Daemons (in /usr/lib/ncs/bin) - From bos.net.ncs Fileset --------------------------------------------------------- lb_admin - Administers glb or llb databases. lb_find - Finds glb's at hawk, test, & wormhole, the last 2 belonging to Warren Begas. Verifies the glbd is up and running ok. drm_admin - Administer Replicated glb databases. glbd - Replicated Global Location Broker daemon, versus nrglbd - Non-replicated glb daemon (what hawk runs today). llbd - Local location broker daemon. iFOR/LS (or netls) Admin Tools (in /usr/lib/netls/ark/bin) ---------------------------------------------------------- ls_admin - Display and edit the license server database. ls_rpt - Report on license server events. To run, say ls_rpt -a. ls_stat - Display the status of the license server system. ls_targetid - Prints information about the local NetLS target id. ls_tv - Verify that Network License Servers are working. Debug Commands When Things Go Wrong ----------------------------------- These are a list of commands one might try when things aren't working, to get a handle on what might be wrong. NCS/GLB/LLB Commands: 1) /usr/lib/ncs/bin/lb_find Expect about a dozen lines to be returned. Look for the line non-replicatable ip:HAWK.ALMADEN.IBM.COM default ... 2) echo 'set ip:redwood\nuse local\nlookup\nquit'|/usr/lib/ncs/bin/lb_admin|wc or echo 'set ip:oak\nuse local\nlookup\nquit' |/usr/lib/ncs/bin/lb_admin|wc Expect wc to report 57 and 27 lines respectively. This feeds 4 commands to lb_admin, separated by "\n", - set ip:redwood To point to a particular LB, - use local To specify this is a local LB, not global - lookup To list registered "objects" - quit To exit lb_admin To do this same thing & query the global LB (not the local LB), try echo 'set global ip:orange\nuse global\nlookup\nquit'|/usr/lib/ncs/bin/lb_admin 3) echo 'set ip:redwood\nuse local\nlookup\nquit'|/usr/lib/ncs/bin/lb_admin|grep REDWOOD or echo 'set ip:oak\nuse local\nlookup\nquit' |/usr/lib/ncs/bin/lb_admin|grep OAK Expect 11 and 5 lines respectively, which tell you which vendors the server is handling product licenses for. 4) From either oak or redwood, you might also see what you get with the above commands. They should be identical to what you see from above. /usr/lib/ncs/bin/lb_find shows about a dozen lines. echo 'lookup\nquit'|/usr/lib/ncs/bin/lb_admin|wc shows 1 extra line, so 58 or 28 lines. echo 'lookup\nquit'|/usr/lib/ncs/bin/lb_admin|grep REDWOOD or OAK shows 11 or 5 lines. Netls Commands: The format of the command-line version of ls_stat command is ls_stat -t | -i | -a (stands for Total, Installed, or Active) <-n server_name> (i.e. OAK-10 or REDWOOD-10) <-p product_name> (i.e. 'C++ POWERbench') Don't use any arguments to the ls_stat command to use the GUI. 1) ls_stat -t -n REDWOOD-10 or ls_stat -t -n OAK-10 Expect 30 and 17 lines respectively giving you a snapshot of current usage, for example, for oak, it was License Usage In Use Total Active Available CASE CMVC [2.1.0] 2 13 11 Hewlett-Packard NetLS Test NetLS Test Product [1.0] 0 10000 10000 IBM SOFTWARE SOLUTIONS TORONTO C Set ++ for AIX [3] 0 500 500 C++ POWERbench [2.1.0.0] 0 500 500 Fortran POWERbench [1.0.0.0] 0 500 500 SDE WorkBench/6000 [2] 0 500 500 XL Fortran for AIX [3] 0 500 500 XL Pascal for AIX [2] 0 500 500 End of License Usage 2) ls_stat -i -p'C++ POWERbench' -n REDWOOD-10 or ls_stat -i -p'C++ POWERbench' -n OAK-10 Expect the current snapshot of just the 1 product. =================================================================== The current state of affairs on loon on 10-14-2005. /usr/lib/netls/ark/bin/ls_stat -t LS_STAT Version 2.0.1 (GRI 1.1.8) IBM-AIX (c) Copyright 1991,1992,1993,1994, Hewlett-Packard Company, All Rights Reserved (c) Copyright 1991,1992,1993,1994, Gradient Technologies Inc., All Rights Reserved License Usage In Use Total Active Available IBM Software Solutions Toronto C and C++ Compilers [3.6.c] 0 25 25 =================================================================== The current state of affairs on 10-8-1999. Apple: oslevel = 4.1.4.0 ps -ef|grep lb root 5908 4046 0 Aug 20 - 18:29 /usr/lib/ncs/bin/glbd root 17422 4046 0 Aug 20 - 10:42 /usr/lib/ncs/bin/llbd lsof -i -n | grep lbd glbd 5908 root 5u inet 0x05a04e00 0t0 UDP *:4205 glbd 5908 root 9u inet 0x05a04e80 0t0 UDP *:4206 glbd 5908 root 10u inet 0x05a06280 0t0 UDP *:4321 llbd 17422 root 4u inet 0x05a04c00 0t0 UDP *:loc-srv (=135) Running a C compile from Maui (4.2.1), with Maui's /etc/ncs/glb_site.txt = ip:ncsglb.almaden.ibm.com which was an alias to apple, showed this I.P. traffic. Maui Protocol & Apple Port Direction Port Data ==== ========== ===== =========================================== 1 4748 UDP ---> 135 2 4748 <--- UDP 135 cannot open replica - ..cannot get socket - 3 4748 UDP ---> 4205 4 4748 <--- UDP 4205 5 4748 UDP ---> 4205 6 4748 <--- UDP 4205 NLS[2.0]: IBM SOFTWARE SOLUTION TORONTO Offset d6.2 = x'1370' = decimal 4976 7 4748 UDP ---> 4976 8 4748 <--- UDP 4973 Note new source port on Apple side 9 4748 UDP ---> 4973 10 4748 <--- UDP 4976 IBM C for AIX 11 4748 UDP ---> 4976 jasper maui.almaden.ibm.com jasper AIX 12 4748 <--- UDP 4976 13 4748 UDP ---> 4976 jasper d maui.almaden.ibm.com jasper V AIX 14 4748 <--- UDP 4976 15 4748 UDP ---> 4976 16 4748 <--- UDP 4976 17 4748 <--- UDP 4976 18 4748 UDP ---> 4976 Destination unreachable (interesting) 19 4748 <--- UDP 4976 20 4748 UDP ---> 4976 Destination unreachable. TS=11:08:22.769013027 A long, 3 second wait here, presumably while it was compiling. 21 4748 <--- UDP 4976 TS=11:08:25.767687144 22 4748 UDP ---> 4976 Destination unreachable