manojlathwal
7th April 2008, 14:03
we want to generate a script to monitor License in LN. our license Server is on Windows 2003 and BAAN application server is on UNIX. can anybody suggest how we can identify the following points in regards of License.
1. total no of license.
2. used license.
3. send a warrning to some Admin person by mailx if license are out of use.
4.kill hang up process more then two days old which consumed licenses.

can anybody help me out please response only in case of LN.

thanks in advance

NPRao
8th April 2008, 22:37
Refer to the SLM Documentation (you can get them from the Support Site or the installation CD) to start with.

Document code: U9200B US
Release: Infor Solution License Manager 7.1
Publication date: February 08


Document code: U9261B US
Release: Infor Solution License Manager 7.1
Publication date: February 08

1. total no of license.
2. used license.

Refer to the Slmcmd options

>SlmCmd -U
License Manager Command-line Interface.
Functions:

- Submit a new file to the license-server:

SlmCmd -new... <filename> [-p[roduct] <Product-ID>]
-newlic : Submit a License file.
-newdtp : Submit a Desktop file.
-newusr : Submit a User file (Product-ID required).
-newsrv : Submit a Server file (Product-ID required).

- Retrieve a file from the license-server:

SlmCmd -get.... <filename> [-p[roduct] <Product-ID>][-f[orce]]
-getlic : Retrieve a License file.
-getdtp : Retrieve a Desktop file.
-getusr : Retrieve a User file (Product-ID required).
-getsrv : Retrieve a Server file (Product-ID required).
-getpreg : Retrieve a Product Registration file.
-f[orce] : Will force overwrite if local file exists.

- Add a Desktop, User, ServerId or Instance to the license-server:

SlmCmd -adddtp <desktopName> [-r[ank] <ranking>].
SlmCmd -addusr <userName> -p[roduct] <Product-ID>
[-heavy]][-c[ount] <userCount>][-r[ank] <ranking>].
SlmCmd -addsrv <serverId> -p[roduct] <Product-ID>
[-n[ame] <serverName>][-r[ank] <ranking>].
SlmCmd -addins <instanceName> -p[roduct] <Product-ID>
[-car[rier] <carrierName>][-r[ank] <ranking>].

- Remove a Desktop, User, ServerId or Instance from the license-server:

SlmCmd -deldtp <desktopName>.
SlmCmd -delusr <userName> -p[roduct] <Product-ID>.
SlmCmd -delsrv <serverId> -p[roduct] <Product-ID>.
SlmCmd -delins <instanceName> -p[roduct] <Product-ID>
[-car[rier] <carrierName>].

- Submit a new Activation-key to the license-server:

SlmCmd -actkey <activation-key>
SlmCmd -actfile <keyfile>

- Retrieve the hostId from a specific license-server:

SlmCmd -hostid <host> [-port <portNumber>] [-o <outputFile>]

- Retrieve monitoring data from a specific license-server:

SlmCmd -mon... <host> [-port <portNumber>] [-o <outputFile>]
-montts : Retrieve monitoring totals.
-mondts : Retrieve monitoring details.
-monsts : Retrieve monitoring statistics.
-monexp : Retrieve details (almost) expired products.

- Retrieve customer information from a specific license-server:

SlmCmd -getcus [-o <outputFile>]

- Retrieve license information of a specific product:

SlmCmd -p[roduct] <Product-ID>

- Register a product at the license server:

SlmCmd -register <ProductName> -p <Product-ID> [-...lic]
-dtplic : Register product with Named Desktop license support.
-cculic : Register product with Concurrent User license support.
-usrlic : Register product with Name User license support.
-srvlic : Register product with Server license support.

- Set or reset IP address of associated server:

SlmCmd -setIP <SLM host> [-port <portNumber>] -server <name[:<IP address]> [-force]

General arguments:
-set var=val : Set environment variable 'var' to 'val'.
-uUh? : Display this usage/help information message.
-v : Display version information.


3. send a warrning to some Admin person by mailx if license are out of use.
You have to build a custom shell script with some awk/sed/perl utilities for this purpose. Refer to Dave's program in the thread - Licence monitoring in SLM (http://www.baanboard.com/baanboard/showthread.php?t=47196)

4.kill hang up process more then two days old which consumed licenses.
I have not seen this issue in SLM it appears an issue in the Baan-4/licmon utility.

Hopefully, these tips will give you an idea how to proceed. As always 'Read the Documentation' to get to know the new Production Features and use the search option to look for already discussed topics.