付録J.2 Smart Composer機能が実行する負荷分散機のCLIコマンド
Smart Composer機能が実行する負荷分散機のCLIコマンドを製品ごとに説明します。負荷分散機のCLIコマンドの詳細は,使用する製品のドキュメントを参照してください。
(1) AX2000またはBS320の場合
AX2000またはBS320の場合,負荷分散機の接続方式としてtelnetプロトコルを使用した直接接続が使用できます。
負荷分散機としてACOS(AX2000またはBS320)を使用する場合に,Smart Composer機能が実行する負荷分散機のCLIコマンドを次の表に示します。ACOSのCLIコマンドの詳細は,使用する製品のドキュメントを参照してください。
Smart Composer機能のコマンド |
実行する負荷分散機のCLIコマンド |
|
---|---|---|
共通 |
enable config show version exit |
|
cmx_build_system(Webシステムを構築する場合) |
cookieスイッチングの使用なし※1 |
slb server <実サーバ名> <実サーバIPアドレス> port <実ポート> tcp |
slb service-group <仮想サーバ名> tcp member <実サーバ名>:<実ポート> disable |
||
slb virtual-server <仮想サーバ名> <仮想サーバIPアドレス> port <仮想ポート> http service-group <仮想サーバ名> |
||
write memory |
||
cookieスイッチングの使用あり※1 |
slb server <実サーバ名> <実サーバIPアドレス> port <実ポート> tcp |
|
slb service-group <仮想サーバ名> tcp |
||
member <実サーバ名>:<実ポート> disable |
||
slb template persist cookie <仮想サーバ名> name <cookie名> expire 0 |
||
slb virtual-server <仮想サーバ名> <仮想サーバIPアドレス> port <仮想ポート> http service-group <仮想サーバ名> template persist cookie <仮想サーバ名> |
||
write memory |
||
cmx_build_system(スケールアウトする場合) |
slb server <実サーバ名> <実サーバIPアドレス> port <実ポート> tcp |
|
slb service-group <仮想サーバ名> tcp member <実サーバ名>:<実ポート> disable |
||
write memory |
||
cmx_build_system(実ポートを変更する場合) |
slb server <実サーバ名> <実サーバIPアドレス> port <変更後の実ポート> tcp exit no port <実ポート> tcp |
|
slb service-group <仮想サーバ名> tcp member <実サーバ名>:<変更後の実ポート> disable |
||
write memory |
||
cmx_delete_system(サービスユニットを削除する場合)※2 |
slb server <実サーバ名> <実サーバIPアドレス> no port <実ポート> tcp |
|
write memory |
||
cmx_delete_system(ホスト単位モデルのスケールインを行う場合)※3 |
no slb server <実サーバ名> |
|
write memory |
||
cmx_delete_system(Webシステムを削除する場合) |
cookieスイッチングの使用なし |
no slb virtual-server <仮想サーバ名> |
no slb service-group <仮想サーバ名> |
||
no slb server <実サーバ名> |
||
write memory |
||
cookieスイッチングの使用あり |
no slb virtual-server <仮想サーバ名> |
|
no slb service-group <仮想サーバ名> |
||
no slb server <実サーバ名> |
||
no slb template persist cookie <仮想サーバ名> |
||
write memory |
||
cmx_start_target |
slb service-group <仮想サーバ名> tcp member <実サーバ名>:<実ポート> enable |
|
write memory |
||
cmx_stop_target |
slb service-group <仮想サーバ名> tcp member <実サーバ名>:<実ポート> disable |
|
write memory |
- 参考
-
ACOSの場合,仮想サーバ名をサービスグループ名およびテンプレート名として使用します。
(2) BIG-IP v9,BIG-IP v10.1,またはBIG-IP v10.2の場合
BIG-IP v9,BIG-IP v10.1,またはBIG-IP v10.2の場合,負荷分散機の接続方式としてsshプロトコルを使用した直接接続が使用できます。なお,09-00以降では,負荷分散機の接続方式としてAPIを使用した直接接続が使用できます。
sshプロトコルを使用した直接接続する場合は,Management Serverを配置するホストにsshのクライアント環境を設定する必要があります。sshのクライアント環境の設定方法をOSごとに次に示します。
-
Windowsの場合
Management Serverを配置するホストにsshクライアントプログラムが必要です。使用できるsshクライアントプログラムは,PuTTYのCLIコマンドです。事前にPuTTYを入手し,インストールします。また,PuTTYのインストールフォルダ以下にあるplinkコマンドが格納されたフォルダを,システム環境変数PATHに追加します。PuTTYは,該当ページ(http://www.chiark.greenend.org.uk/~sgtatham/putty/)からダウンロードできます。
-
UNIXの場合
sshコマンドは,初めて使用する際に接続確認の問い合わせ要求を実行します。
root権限のあるユーザでsshコマンドを実行して負荷分散機と接続し,接続確認の問い合わせ要求(Are you sure you want to continue connecting (yes/no)?)に対して「yes」を応答してください。「yes」を応答したあと,sshコマンドは接続確認の問い合わせ要求を実行しなくなります。
- 注意事項
-
AIXの場合,負荷分散機との接続形態にsshの直接使用を選択すると,sshコマンドが必要になります。sshコマンドを使用するために必要なソフトウェアは事前に入手してください。
Smart Composer機能が実行するBIG-IPのCLIコマンドを製品ごとに説明します。BIG-IPのCLIコマンドの詳細については,使用する製品のドキュメントを参照してください。
(a) BIG-IP v9またはBIG-IP v10.1の場合
負荷分散機としてBIG-IP v9またはBIG-IP v10.1を使用する場合に,Smart Composer機能が実行する負荷分散機のCLIコマンドを次の表に示します。
Smart Composer機能のコマンド |
実行する負荷分散機のCLIコマンド |
|
---|---|---|
共通 |
b save b version |
|
cmx_build_system(Webシステムを構築する場合) |
cookieスイッチングの使用なし |
b pool <仮想サーバ名> {member <実サーバIPアドレス>:<実ポート>} |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
||
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable |
||
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http enable} |
||
cookieスイッチングの使用あり |
b pool <仮想サーバ名> {member <実サーバIPアドレス>:<実ポート>} |
|
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
||
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable |
||
b profile persist <仮想サーバ名> {mode cookie cookie mode insert cookie name <cookie名>} |
||
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http persist <仮想サーバ名> enable} |
||
cmx_build_system(スケールアウトする場合) |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
|
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable |
||
cmx_build_system(実ポートを変更する場合) |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<変更後の実ポート> add |
|
b pool <仮想サーバ名> member <実サーバIPアドレス>:<変更後の実ポート> session disable |
||
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> delete |
||
cmx_build_system(負荷分散機の仮想サーバを初期化しないでWebシステムを構築する場合) |
cookieスイッチングの使用なし |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable |
||
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http enable} |
||
cookieスイッチングの使用あり |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
|
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable |
||
b profile persist <仮想サーバ名> {mode cookie cookie mode insert cookie name <cookie名>} |
||
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http persist <仮想サーバ名> enable} |
||
cmx_delete_system(サービスユニットを削除,およびホスト単位管理モデルをスケールインする場合) |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> delete |
|
b node <実サーバIPアドレス> delete |
||
cmx_delete_system(Webシステムを削除する場合) |
cookieスイッチングの使用なし |
b virtual <仮想サーバ名> delete |
b pool <仮想サーバ名> delete |
||
b node <実サーバIPアドレス> delete |
||
cookieスイッチングの使用あり |
b virtual <仮想サーバ名> delete |
|
b pool <仮想サーバ名> delete |
||
b node <実サーバIPアドレス> delete |
||
b profile persist <仮想サーバ名> delete |
||
cmx_start_target |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session enable |
|
cmx_stop_target |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable |
- 参考
-
BIG-IP v9,BIG-IP v10.1の場合,仮想サーバ名をプール名として使用します。
(b) BIG-IP v10.2の場合
負荷分散機としてBIG-IP v10.2を使用する場合に,Smart Composer機能が実行する負荷分散機のCLIコマンドを次の表に示します。
Smart Composer機能のコマンド |
実行する負荷分散機のCLIコマンド |
|
---|---|---|
共通 |
b save b version |
|
cmx_build_system(Webシステムを構築する場合) |
cookieスイッチングの使用なし |
b pool <仮想サーバ名> {member <実サーバIPアドレス>:<実ポート>} |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
||
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled |
||
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http enable} |
||
cookieスイッチングの使用あり |
b pool <仮想サーバ名> {member <実サーバIPアドレス>:<実ポート>} |
|
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
||
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled |
||
b profile persist <仮想サーバ名> {mode cookie cookie mode insert cookie name <cookie名>} |
||
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http persist <仮想サーバ名> enable} |
||
cmx_build_system(スケールアウトする場合) |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
|
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled |
||
cmx_build_system(実ポートを変更する場合) |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<変更後の実ポート> add |
|
b pool <仮想サーバ名> member <実サーバIPアドレス>:<変更後の実ポート> session user disabled |
||
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> delete |
||
cmx_build_system(負荷分散機の仮想サーバを初期化しないでWebシステムを構築する場合) |
cookieスイッチングの使用なし |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled |
||
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http enable} |
||
cookieスイッチングの使用あり |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add |
|
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled |
||
b profile persist <仮想サーバ名> {mode cookie cookie mode insert cookie name <cookie名>} |
||
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http persist <仮想サーバ名> enable} |
||
cmx_delete_system(サービスユニットを削除,およびホスト単位管理モデルをスケールインする場合) |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> delete |
|
b node <実サーバIPアドレス> delete |
||
cmx_delete_system(Webシステムを削除する場合) |
cookieスイッチングの使用なし |
b virtual <仮想サーバ名> delete |
b pool <仮想サーバ名> delete |
||
b node <実サーバIPアドレス> delete |
||
cookieスイッチングの使用あり |
b virtual <仮想サーバ名> delete |
|
b pool <仮想サーバ名> delete |
||
b node <実サーバIPアドレス> delete |
||
b profile persist <仮想サーバ名> delete |
||
cmx_start_target |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user enabled |
|
cmx_stop_target |
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled |
- 参考
-
BIG-IP v10.2の場合,仮想サーバ名をプール名として使用します。