3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

SPSS Modeler Concurrent LicenseのLinuxへの導入

Last updated at Posted at 2023-09-14

Concurrentライセンスは同時に利用できる人数によって価格が決まるライセンスです。ライセンスで決められた同時に利用できる人数を超えて使ってしまわないようにLicense Managerというプログラムを入れてその数をコントロールする必要があります。

今回は仮想環境(IaaS)でこのConcurrentライセンスが利用できる環境構築を行います。

なお、License ManagerはSentinel社の製品をOEMで利用しています。そのためサービス名やメニューにSentinel社の社名がでてきます。また、IBMとバージョン番号の管理が違ったりします。

テスト環境

SPSS Modeler 18.4
License Manager 9.9
Ubuntu 20.04.6 LTS
IaaS(IBM Cloud)

1. License Managerの入手

Modelerのバージョンに適合するIBM SPSS Concurrent Licensing ToolsをIBMのWebサイト、パスポート・アドバンテージ・オンラインよりダウンロードしてください。

Modeler 18.4に対応するSPSS Concurrent Licensing Toolsは以下になります。

G0169EN IBM SPSS Concurrent Licensing Tools 9.9 - License Manager Linux x86-64 English

実体のファイルはSPSSCLT9.9_-_LicMgrLinuxx86-64_En.gzでした。

2. License Managerの導入

導入は、単にtarで解凍するだけです。

プログラムの解凍
sudo tar zxf SPSSCLT9.9_-_LicMgrLinuxx86-64_En.gz

3. ロックコードの取得

echoid64コマンドを実行し、ロックコード(Old Style)を取得し、メモしておきます。
なお、ライセンスマネージャーのコマンドはsentinellmディレクトリにcdしてから実行してください。「301F-xxxx」というようなエラーのロックコードが返る場合は、sentinellmディレクトリにいることを確認しなおしてください。

ロックコードの確認
cd sentinellm
sudo ./echoid64
結果
lmuser@SPSSLMTest-hkwd2:~/sentinellm$ sudo ./echoid64

  Sentinel RMS Development Kit 9.6.0.0028 Host Locking Code Information Utility
  Copyright (C) 2019 SafeNet, Inc.



                Locking Code 1     :  10-*1HH GQLS KRHJ MANM
                Locking Code 1 (Old Style) :  10-2F40A

なお、IaaSのような仮想環境に導入する場合、ライセンスコード作成に必要なロックコードの基(Locking Criteria)となるMACアドレスなどが変わることがありえます(仮想環境の仕様を確認してください)。その場合は、echoidを何か固定できる別のものに変更します。
具体的には、\echoid.datをテキストエディタで開き、変更します。
今回は0x010(MACアドレス)から0x002(IPアドレス)に変更しました。
echoid.datが0x002(IPアドレス)の場合は、echoidコマンドの実行結果のロックコードが「2」から始まることを確認してください。そしてこの「2-xxxxx」のロックコード(Old Style)をメモしておきます。

Locking Criteriaの変更とロックコードの確認
sudo vi ./echoid.dat
sudo cat ./echoid.dat
sudo ./echoid64

結果
lmuser@SPSSLMTest-hkwd2:~/sentinellm$ sudo vi ./echoid.dat
lmuser@SPSSLMTest-hkwd2:~/sentinellm$ sudo cat ./echoid.dat
0x002
lmuser@SPSSLMTest-hkwd2:~/sentinellm$ sudo ./echoid64

  Sentinel RMS Development Kit 9.6.0.0028 Host Locking Code Information Utility
  Copyright (C) 2019 SafeNet, Inc.



                Locking Code 1     :   2-*1SZ 37XJ YCD7 6ZRV
                Locking Code 1 (Old Style) :   2-1B2DC

lmuser@SPSSLMTest-hkwd2:~/sentinellm$

<参考>

仮想環境でのライセンスのインストール

Supported Locking Criteria

4. ライセンスコードの取得

インターネットに接続できる環境で、SPSS ModelerのサポートサイトからLicense Key Centerに入ります。

image.png

ログインを行い、「認証コードの作成」から IBM SPSS Modeler Desktopを選びます。
image.png

image.png

認証コードを作成したいModelerのバージョンを選びます。
image.png

「作成」で認証コードを作成します。
image.png

数量を入力し作成します。
image.png

image.png

認証コードを選択します。
image.png

手順3で取得したロックコードを入力しアクティブにします。
image.png

生成されたLicense Codeをクリックします。

image.png

生成されたLicense Codeが表示されます。

image.png

5. License CodeのLicense Managerへの登録

sudo ./licenseactivator <手順4で生成したLicense Code(認証コードではない)>を実行します。

「Result: Authorization succeeded」が戻ればOKです。

lmuser@SPSSLMTest-hkwd2:~/sentinellm$ sudo ./licenseactivator  BBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Authorization in progress ... (BBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Result: Authorization succeeded

6. ライセンスマネージャーの起動

lserv64コマンドをバックグラウンド実行します。

ライセンスマネージャーの起動
sudo nohup ./lserv64&
起動の確認
sudo cat nohup.out
netstat -ano|grep 5093
結果
lmuser@SPSSLMTest-hkwd2:~/sentinellm$ sudo cat nohup.out

         Sentinel RMS Development Kit 9.6.2.0006 License Management Server
  Copyright (C) 2020 SafeNet, Inc.

Initializing.  Please wait ...
The Sentinel RMS License Manager has started with default socket buffer(IPv4) size value set to 212992 bytes.
The Sentinel RMS License Manager has started with default socket buffer(IPv6) size value set to 212992 bytes.
Running on host SPSSLMTest-hkwd2.FU267948760.cloud

lmuser@SPSSLMTest-hkwd2:~/sentinellm$ netstat -ano|grep 5093
tcp        0      0 0.0.0.0:5093            0.0.0.0:*               LISTEN      off (0.00/0/0)
udp        0      0 0.0.0.0:5093            0.0.0.0:*                           off (0.00/0/0)
udp6       0      0 :::5093                 :::*                                off (0.00/0/0)
itzuser@itzvsi-120000e7ec-nqtf312x:~/sentinellm$ netstat -ano|grep 5093
tcp        0      0 0.0.0.0:5093            0.0.0.0:*               LISTEN      off (0.00/0/0)
udp        0      0 0.0.0.0:5093            0.0.0.0:*                           off (0.00/0/0)
udp6       0      0 :::5093                 :::*                                off (0.00/0/0)

ライセンスのモニターを実行します。

ライセンスのモニターを実行
sudo ./lsmon64

「Feature name: "8400"」「Feature version: "184"」がでてくればConcurrentライセンスの認証が可能になっています。8400がModeler、184が18.4のバージョンを示しています。
image.png

7. Modelerクライアントからの接続

Modeler(IBM SPSS Modeler Client 64-bit 18.4 Microsoft Windows )を導入し、ライセンス認証ウィザードを起動します。(Keyless版が導入されている場合は、アンインストールして通常版を導入しなおしてください。)

image.png

ライセンスがないと言われますが次へで進みます。
image.png

同時ユーザーライセンスを選んで次に進みます。
image.png

手順3でLicense Managerを導入したサーバーのサーバー名かipアドレスを入力し、次に進みます。
image.png

LicenseManagerと接続ができました。
image.png

これでModelerが起動できるようになります。
image.png

lsmon64で、ライセンスがいくつ使われているかや誰が使っているかが確認できます。

ライセンスのモニターを実行
sudo ./lsmon64

image.png

8. ライセンスマネージャーの停止

lsrvdown64コマンドを実行します。

ライセンスマネージャーの停止
ps -ef|grep lserv
sudo ./lsrvdown64 localhost
ps -ef|grep lserv
結果
lmuser@SPSSLMTest-hkwd2:~/sentinellm$ ps -ef|grep lserv
root        1715       1  0 07:07 ?        00:00:00 ./lserv64
lmuser      1737    1689  0 07:07 pts/0    00:00:00 grep --color=auto lserv

lmuser@SPSSLMTest-hkwd2:~/sentinellm$ sudo ./lsrvdown64 localhost

  Sentinel RMS Development Kit 9.6.0.0028 Server Shutdown Utility
  Copyright (C) 2019 SafeNet, Inc.


 lserv has been shut down on host localhost.
lmuser@SPSSLMTest-hkwd2:~/sentinellm$ ps -ef|grep lserv
lmuser      1765    1689  0 07:08 pts/0    00:00:00 grep --color=auto lserv

参考:Windows 以外のシステムでのライセンス・マネージャーのインストール - IBM Documentation

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?