SAP License Test

If you cannot log onto your SAP system, you can use the saplicense -test for troubleshooting purposes. When you call up this option, the saplicense program determines the hardware key of the message server, simulates a logon to the SAP system, and carries out the necessary license check.

1. Login to OS level as SIDadm.

2. Execute below command and get the results

saplicense -test pf=/usr/sap/SID/SYS/profile/xxx
Protocol saplicense test:
   *** Read sapsytem name
       ok, sapsytem name = XXX
   *** Read message server host
       ok, host = XXXXXXXX
   *** Read message server service port
       ok, service port = sapmsXXX
   *** Connect to message server
       ok, connect done
   *** Read hardware key from message server
       ok, got hardware key
   *** Detach from message server
       ok, detached
   *** Check hardware key
       ok, hardware key = XXXXXXX
   *** Connect to database
       ok, connected
   *** Check license
       ok, check done
   *** Disconnect database
       ok, database disconnected
test result: license test failed
        *** no valid license found ***

You May Also Like

Leave a Reply?