Thursday, 27 November 2014

License Administration at Operating System Level with Program saplikey



You can use the program saplikey to install, check, and administer digitally-signed license keys in your SAP system. It resides in the directory /usr/sap/<SAPSID>/SYS/exe/run.
Note
For Microsoft Windows systems, replace the forward slash (/) with a backslash () in all path names.
Prerequisites
As of release 4.5A, the database interface library is linked dynamically. To allow saplikey to locate this library, the following variables must be set in the environment of the user calling saplikey.
·         dbms_type = <database type> (such as ora, inf, ada, mss, db2, db4, db6)
·         DIR_LIBRARY = <Path_to_dynamically_linked_database_library> (for example, /usr/sap/SID/SYS/exe/run)
User for saplikey: You must be logged on as the user <sid>adm. This ensures that all of the required environment variables are set correctly.
Features
The saplikey program offers the following options: When you enter commands, always specify the profile:saplikey pf=<profile> <command> <product>
saplikey Commands
Command
Meaning
-delete
-get
-number
Displays the hardware key, among other things.
Run this command on the message server, for example by telnet; otherwise, it applies only for the local host.
-help
Help for -get, -install, -temp, or -show
-install
Installs the license key. With the parameter -install <file name>, the license data can be read from the license key file.
-show
Shows all installed license keys
-temp
-version
Displays the version number of the saplikey program.

Installing a License Key
Prerequisites
You have received the e-mail containing the 424 or 428 character license key and installation data from SAP.
Procedure
1.       Copy the file from the e-mail to a local file on your computer, for example, with copy and paste.
2.       Log on to the host where the central instance of the SAP system is running at operating system level as user <sid>adm.
3.       Enter the command saplikey pf=<profile> -install <filename>. The file name is the name of the file that you created in the first step.
Example
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:Userscrsadm>cd C:usrsapCRSSYSprofile
C:usrsapCRSSYSprofile>saplikey -help
SAP License Key Administration  -  Copyright (C) 2003 - 2012 SAP AG
usage: saplikey pf=<profile> [trace=<level>] <command>
where <command> is one of:
-help. . . . . . . . . . . . . . . Display this usage text
-version . . . . . . . . . . . . . Display the version of the license key library
-get . . . . . . . . . . . . . . . Display infos about the system
-number. . . . . . . . . . . . . . Get installation number
-install <filename>. . . . . . . . Install permanent license keys from a file (which comes from SAP)
-show. . . . . . . . . . . . . . . Display all installed license keys
-temp <product>. . . . . . . . . . Create a temporary license key for the given product and the hardware key of this machine
-delete <SID> <HW Key> <product> . Delete license keys (For each of the parameters after                  "-delete"you can use "*" as a wildcard. Remember that you might have to                                                            use quotes to mask the "*"!)

C:usrsapCRSSYSprofile>saplikey pf=CRS_DVEBMGS00_sapcrm-1 -show
SAP License Key Administration  -  Copyright (C) 2003 - 2012 SAP AG

List of installed License Keys:
==========================================

1. License Key:
------------------------------------------
System                : CRS
Hardware Key          : H10579*****
Software Product      : NetWeaver_MSS
Software Product Limit: 2147483647
Type of License Key   : permanent
Installation Number   : ***********
System Number         : 000000000*********
Begin of Validity     : 20140701
End   of Validity     : 99991231
Last successful check : 20140905
Validity              : valid

2. License Key:
------------------------------------------
System                : CRS
Hardware Key          : H10579*****
Software Product      : NetWeaver_MSS
Software Product Limit: 2147483647
Type of License Key   : permanent
Installation Number   : ***********
System Number         : 000000000*********
Begin of Validity     : 20140701
End   of Validity     : 20141002
Last successful check : 20140829
Validity              : valid
------------------------------------------
2 license keys listed.

C:usrsapCRSSYSprofile>saplikey pf=CRS_DVEBMGS00_sapcrm-1 -install CRS_license_script.txt

SAP License Key Administration  -  Copyright (C) 2003 - 2012 SAP AG
2 SAP license key(s) successfully installed.


1 comment: