ap コマンド
ap コマンドおよびそのサブコマンドによって、アプライアンスに関する情報を表示し、管理要求を送信します。
構文
ap [-h] [-v] [--host address] [--user user] [--password password]
[--from-file file_path]
{apps,config,df,ds,elog,events,fs,hw,info,issues,maintenance,node,sd,state,sw,version} ...
オプション・パラメーター
パラメーターを指定しない場合、ap state と同じ出力、つまり、アプライアンス全体の一般的な状態が表示されます。
サブコマンドの location パラメーターでは、ap hw コマンドの出力で表示されるものと同じ形式を使用してください。
注: M4002 のマルチラック・システムを導入すると、コンポーネント・ロケーションの指定が変更され、
rackX の代わりに hadomainX が使用されます。- -h|--help
-
コマンドのヘルプを表示します。
- -v|--verbose
-
ログからの追加情報を表示します。
以下のパラメーターを使用すると、ap コマンドをリモートで実行できます。
- --host address
- システムのアドレスを指定します。デフォルト値は
localhostです。デフォルト値以外を指定する場合は、ユーザーとパスワードも指定する必要があります。 - --user user
- ホストにアクセスするユーザー名。
- --password password
- ホストにアクセスするためのパスワード。
- --from-file file_path
-
ホスト名、ユーザーおよびパスワードをロードするために指定のファイルを使用します。オプションとして指定された値は、ファイルの値を指定変更します。
サブコマンド
- ap apps [-h] [-v] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>] [-d] [-f] [{enable,disable} <application>]
- モニター対象アプリケーションの状態をリストおよび管理します。パラメーターを指定しない場合、このコマンドは、以下の例のように、すべてのモニター対象アプリケーションとその状態をリストします。
コマンド固有のパラメーターは以下のとおりです。ap apps +------------+------------------+ | Name | Management State | +------------+------------------+ | DashDB | ENABLED | | CallHome | ENABLED | | WebConsole | ENABLED | +------------+------------------+ Generated: 2018-07-27 08:52:02- -d|--detail
-
すべてのモニター対象アプリケーションの状態に関する詳細情報を表示します。アプリケーション・タイプを指定します。
- アプライアンス・アプリケーション: アプライアンスを使用するためにユーザーが接続するアプリケーション (Db2 Warehouse、DSX など)。
- プラットフォーム・アプリケーション: 管理プラットフォームの一部であるアプライアンスの管理に使用されるアプリケーション (Web コンソール、コール・ホームなど)。
- -f|--force
- 操作する前に確認しません。
- enable application
- 指定されたアプリケーションを有効にします。
- disable application
- 指定されたアプリケーションを無効にします。注: ap apps disable dashDB コマンドを使用して Db2 Warehouse を無効にすると、データベースが停止され、apstart を実行しても開始できなくなります。データベースを開始する唯一の方法は、ap apps enable dashDB を実行することです。代わりに apstart を実行すると、警告メッセージが表示されます。
- ap config [--host <address>] [-h] (--set alerts_rules --type (action|to|add_to) [--scope <alert_type>|<alert_reason_code>] --value (<action_int>|<email_list>) | --del alerts_rules --type (action|to|add_to) [--scope <alert_type>|<alert_reason_code>] | --test alerts_rules --reason_code <reason_code> | --list alerts_rules | --set smtp --mail_server_name <server_name> --mail_server_port <port> --sender_name <sender_name> --sender_address <sender_address> | --list smtp)
- アラート・ルールまたは SMTP を構成できます。
- ap df [-h] [-v] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>]
- ストレージの使用率を表示します。
- ap ds [-h] [-v] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>]
- 複数の論理ノード (MLN) と論理ポートのマッピング、および MLN 状況に関する情報を表示します。コマンドと出力の例を以下に示します。
ap ds +------------+--------------+--------------+--------+ | Data slice | Node | Logical Port | Status | +------------+--------------+--------------+--------+ | 0 | node0101-fab | 0 | UP | | 1 | node0101-fab | 1 | UP | | 2 | node0101-fab | 2 | UP | | 3 | node0102-fab | 0 | UP | | 4 | node0102-fab | 1 | UP | | 5 | node0102-fab | 2 | UP | | 6 | node0102-fab | 3 | UP | | 7 | node0103-fab | 0 | UP | | 8 | node0103-fab | 1 | UP | | 9 | node0103-fab | 2 | UP | | 10 | node0103-fab | 3 | UP | +------------+--------------+--------------+--------+ Generated: 2018-07-27 08:52:20 - ap elog close <node> (<elog_event_id> | all)
- elog 関連イベントをクローズするために使用されます。
- -f| --force
- アクションを実行する前に確認しません。
- <node>
- 定位置引数。イベントがクローズするノード。
- <elog_event_id>
- 定位置引数。クローズするイベントの ID。すべてのイベントをクローズするには、
allに設定します。
- close
- 定位置引数。これは、ap elog close hadomainX.nodeY ZZZ コマンドを指定して、HA ドメイン
XのノードYで生成された IDZZZの FSP イベントをクローズするために使用できます。例えば、以下のようにします。
指定したノードのすべての FSP イベントをクローズするには、以下を実行しますap elog close hadomain1.node2 0x504BDCB8ap elog close hadomain1.node3 all
- ap events [--host <address>] [[-h] [-d] [-ni] [-rc <reason_code>] [-tp <type>] [-tg <target>] [-tsub <target>]| <event_id> | [--user <user>] [--password <password>] [--from-file <file_path>]
- すべてのイベントに関する情報を表示します。出力は、ap issues -e の場合と同じです。
- --from <time> --to <time>
- イベントを表示する時間フレームを指定します。以下の 3 つの形式で値を指定できます。
--from YYYY-MM-DD-hh:mm --to YYYY-MM-DD-hh:mmYYYY-MM-DD-hh:mmは日時です。--from YYYY-MM-DD --to YYYY-MM-DDYYYY-MM-DDは日付です。この場合、開始時刻は 00:00:00、終了時刻は 23:59:59 と見なされます。
N は、現在日付から遡る日数です。例えば、--from -N --to -N--from -32と指定すると、現在日付の 32 日前が開始日付に設定されます。開始時刻は 00:00:00、終了時刻は 23:59:59 と見なされます。
- -ni| --no_information
- INFORMATION 以外の重大度のイベントを表示します。
- -tp <type> [<type> ...]| --types <type> [<type> ...]
- 指定したタイプのイベントのみを表示します。
- -rc <reason_code> [<reason_code> ...]| --reason_codes <reason_code> [<reason_code> ...]
- 指定した理由コードのイベントのみを表示します。
- -tg <target>| --target <target>
- 指定したターゲットのイベントのみを表示します。
- -tsub <target>| --target_subcomponents <target>
- ターゲットとそのサブコンポーネントのすべてのイベントを表示します。
- ap fs [-h] [-v] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>] [-d]
- ファイル・システム情報を表示します。コマンドと出力の例を以下に示します。
ap fs +-----------+------------+---------------------------------------------+-----------+-----------+--------+--------+ | HA Domain | Filesystem | Disk | Size [GB] | Used [GB] | % Used | Status | +-----------+------------+---------------------------------------------+-----------+-----------+--------+--------+ | hadomain1 | data | nsd.mpath_36005076a81b5348a800000000400001d | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a800000000500001e | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a8000000007000020 | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a8000000008000021 | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a8000000009000022 | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a800000000a000023 | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a800000000b000024 | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a800000000c000025 | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a800000000d000026 | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | data | nsd.mpath_36005076a81b5348a800000000e000027 | 1566.72 | 0.47 | 0.03 | OK | | hadomain1 | head | nsd.mpath_36005076a81b5348a8000000000000019 | 1024.00 | 12.08 | 1.18 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a8000000010000029 | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a800000001100002a | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a800000001200002b | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a800000001300002c | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a800000001400002d | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a800000001500002e | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a800000001600002f | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a8000000017000030 | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a8000000018000031 | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | local | nsd.mpath_36005076a81b5348a8000000019000032 | 1566.72 | 105.28 | 6.72 | OK | | hadomain1 | platform | nsd.mpath_36005076a81b5348a800000000f000028 | 3072.00 | 2.76 | 0.09 | OK | | hadomain1 | scratch | nsd.mpath_36005076a81b5348a800000000100001a | 10240.00 | 4.10 | 0.04 | OK | +-----------+------------+---------------------------------------------+-----------+-----------+--------+--------+ Filesystems mounts +------------+-----------------+-------------------------------------+ | Filesystem | Node | Mountpoint | +------------+-----------------+-------------------------------------+ | data | hadomain1.node1 | /opt/ibm/appliance/storage/data | | data | hadomain1.node2 | /opt/ibm/appliance/storage/data | | data | hadomain1.node3 | /opt/ibm/appliance/storage/data | | head | hadomain1.node1 | /opt/ibm/appliance/storage/head | | head | hadomain1.node2 | /opt/ibm/appliance/storage/head | | head | hadomain1.node3 | /opt/ibm/appliance/storage/head | | local | hadomain1.node1 | /opt/ibm/appliance/storage/local | | local | hadomain1.node2 | /opt/ibm/appliance/storage/local | | local | hadomain1.node3 | /opt/ibm/appliance/storage/local | | platform | hadomain1.node1 | /opt/ibm/appliance/storage/platform | | platform | hadomain1.node2 | /opt/ibm/appliance/storage/platform | | platform | hadomain1.node3 | /opt/ibm/appliance/storage/platform | | scratch | hadomain1.node1 | /opt/ibm/appliance/storage/scratch | | scratch | hadomain1.node2 | /opt/ibm/appliance/storage/scratch | | scratch | hadomain1.node3 | /opt/ibm/appliance/storage/scratch | +------------+-----------------+-------------------------------------+ Generated: 2018-07-27 08:53:00 - ap hw [--host <address>] [-h] [SN | location | -t <type>] [-d] [<subcomponent> -s <level>] [--user <user>] [--password <password>] [--from-file <file_path>]
ハードウェア・デバイスのリストをそれらのロール、状況、およびその他のプロパティーと共に表示します。 パラメーターは以下のとおりです。
- SN | location
- 定位置引数。デバイスのシリアル番号またはロケーションを指定します。シリアル番号またはロケーションを指定しない場合、すべてのデバイスに関する情報が表示されます。
- -t type|--type type
-
指定されたタイプのデバイスに関する情報を表示します。システムで使用可能なタイプについては、
ap hw -dの出力表を参照してください。 - -d|--detail
-
追加情報を表示します。
- -s|--subcomponents
- 指定したデバイスのサブコンポーネント・ツリーを表示します。ツリーを表示するレベルを指定できます。例えば、デバイスの直接のサブコンポーネントのみを表示する場合は
-s 1、デバイスのすべてのサブコンポーネントとそのサブコンポーネントを表示する場合は-s 2を指定します。
ハードウェアの管理を参照してください。
コマンドと出力の例を以下に示します。ap hw +----------------------------+------------------+-------------+--------------+-----------------+----------------------+ | Name | Location | Status | SN | Model | FW | +----------------------------+------------------+-------------+--------------+-----------------+----------------------+ | Fabric Switch | hadomain1.fabswa | ATTENTION | MT1720X08174 | MSN2410 | 3.4.1 | | Fabric Switch | hadomain1.fabswb | UNREACHABLE | | | | | Fibre Channel Switch | hadomain1.fcswa | OK | EWY4046M01H | 8960_F64 | 8.0.1b | | Fibre Channel Switch | hadomain1.fcswb | UNREACHABLE | | | | | Flash Storage Node | hadomain1.fsn1 | WARNING | 73F01Z | 9840-AE2 | 1.4.6.1 | | Management Switch | hadomain1.mgtswa | ATTENTION | EC1706003855 | 4610-54T-O-AC-B | 3.2.1 | | Management Switch | hadomain1.mgtswb | ATTENTION | EC1706003830 | 4610-54T-O-AC-B | 3.2.1 | | Compute Node | hadomain1.node1 | ATTENTION | 21259AA | 8247-22L | FW860.42 (SV860_138) | | Compute Node | hadomain1.node2 | ATTENTION | 213322A | 8247-22L | FW860.42 (SV860_138) | | Compute Node | hadomain1.node3 | ATTENTION | 21331FA | 8247-22L | FW860.42 (SV860_138) | | Rackmount Power Controller | hadomain1.rpc1 | OK | 55418J | 00AK187 | | | Rackmount Power Controller | hadomain1.rpc2 | OK | 55418W | 00AK187 | | | Rackmount Power Controller | hadomain1.rpc3 | OK | 55418T | 00AK187 | | | Rackmount Power Controller | hadomain1.rpc4 | OK | 55418X | 00AK187 | | | Terminal Server | hadomain1.ts1 | OK | QX87400027 | DSX2-32 | 2.2.0.5.1825 | +----------------------------+------------------+-------------+--------------+-----------------+----------------------+ Generated: 2018-07-27 08:52:29- ap info [-h] [-v] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>]
- アプライアンスに関する一般情報を表示します。出力例を以下に示します。
ap info +-------------------------------------+ | General information | +-----------------+-------------------+ | MTM | 3452-DB1 | | Serial | NZTULET | +-----------------+-------------------+ +--------------------------------------------+ | System information | +-----------------------+--------------------+ | Description | | | Location | | | Country Code | | | Model | M4001-003 | +-----------------------+--------------------+ +--------------------------------+ | Customer information | +--------------------+-----------+ | Company | | | Address 1 | | | Address 2 | | | Address 3 | | | ICN | | +--------------------+-----------+ - ap issues [-h] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>] [-d] [-i] [-e] [-c] [-hw] [-sw] [-gpfs] [--show_registry] [--open_service_request <alert_id> [<alert_id> ...]] [-rc <reason_code> [<reason_code> ...]] [-tp <type> [<type> ...]] [-tg <target>] [-tsub <target>] [-ni] [--from <time_specifier>] [--to <time_specifier>] | <issue_id> | [-f] --close <issue_id> | --service_requests [<srid>] | --generate_test_alert | --close_test_alert | --generate_test_sw_alert | --close_test_sw_alert
- 現行システムの問題に関する情報を表示します。パラメーターは以下のとおりです。パラメーターを指定しない場合、現在のすべての問題のリストがそれらのタイプ、重大度、および説明と共に表示されます。
- -d|--detail
-
すべての問題に関する詳細情報を表示します。
- -i|--issues
- オープン状態のすべての問題に関する情報を表示します。
- -c|--closed
- クローズ状態のすべての問題に関する情報を表示します。
- -e|--events
- すべてのイベントに関する情報を表示します。
- -hw|--hw
- 問題のあるすべてのハードウェア・コンポーネントに関する情報を表示します。
- -sw|--sw
- 問題のあるすべてのソフトウェア・コンポーネントに関する情報を表示します。
- -gpfs
- 問題のあるすべての GPFS コンポーネントに関する情報を表示します。
- --from <time> --to <time>
- イベントを表示する時間フレームを指定します。以下の 3 つの形式で値を指定できます。
--from YYYY-MM-DD-hh:mm --to YYYY-MM-DD-hh:mmYYYY-MM-DD-hh:mmは日時です。--from YYYY-MM-DD --to YYYY-MM-DDYYYY-MM-DDは日付です。この場合、開始時刻は 00:00:00、終了時刻は 23:59:59 と見なされます。
N は、現在日付から遡る日数です。例えば、--from -N --to -N--from -32と指定すると、現在日付の 32 日前が開始日付に設定されます。開始時刻は 00:00:00、終了時刻は 23:59:59 と見なされます。
- -tp <type> [<type> ...]| --types <type> [<type> ...]
- 指定したタイプの問題/イベントのみを表示します。
- -rc <reason_code> [<reason_code> ...]| --reason_codes <reason_code> [<reason_code> ...]
- 指定した理由コードの問題/イベントのみを表示します。
- -tg <target>| --target <target>
- 指定したターゲットの問題/イベントのみを表示します。
- -tsub <target>| --target_subcomponents <target>
- ターゲットとそのサブコンポーネントのすべての問題/イベントを表示します。
- -ni| --no_information
- INFORMATION 以外の重大度のイベントを表示します。
- --close issue_id
- 指定された ID のアラートをクローズします。
- -f|--force
- アラートをクローズする前に確認しません。
- issue_id
- 定位置引数。特定の問題に関する詳細情報を表示します。
- --generate_test_alert
- テストの問題を生成します。
- --close_test_alert
- テストの問題をクローズします。
- --generate_test_sw_alert
- テスト・ソフトウェアの問題を生成します。
- --close_test_sw_alert
- テスト・ソフトウェアの問題をクローズします。
- --show_registry
- アラート・レジストリーを表示します。
- --open_service_request <alert_id> [<alert_id> ...]
- 指定した一連の問題とイベントの PMR をオープンします。
- -sr [<srid>]| --service_requests [<srid>]
- プラットフォーム・マネージャーがオープンしたサービス要求を、その状況および関連するアラート ID とともに表示します。
ap issues Open alerts (issues) +------+---------------------+----------------------+-------------------------------------+-------------------------------------+----------+ | ID | Date (CEST) | Type | Reason Code and Title | Target | Severity | +------+---------------------+----------------------+-------------------------------------+-------------------------------------+----------+ | 1005 | 2018-07-05 14:49:58 | HW_NEEDS_ATTENTION | 201: Unhealthy component detected | hw://hadomain1.fabswa.port49 | WARNING | | 1006 | 2018-07-05 14:49:58 | HW_NEEDS_ATTENTION | 201: Unhealthy component detected | hw://hadomain1.fsn1 | WARNING | | 1007 | 2018-07-05 14:49:58 | HW_NEEDS_ATTENTION | 201: Unhealthy component detected | hw://hadomain1.node1.hba_fc3 | WARNING | ... +------+---------------------+----------------------+-------------------------------------+-------------------------------------+----------+ Generated: 2018-07-27 08:54:18ap issues 1005 General Information ID : 1005 Date : 2018-07-05 14:49:58.001512 Close Date : None Target : hw://hadomain1.fabswa.port49 Target Type : port Severity : WARNING Title : Unhealthy component detected Stateful : 1 Referenced Alert ID : None Classification Group : HW Type : HW_NEEDS_ATTENTION Reason Code : 201 Processing Status State : DELIVERED Log Collection Status : COLLECTED SMTP Status : FAILED Call Home Status : NOT_APPLICABLE Service Request SRID : None SR Status : None Collected Logs Log File Path : /var/log/appliance/platform/management/alerts/alert_1005.tar.gz Log File Node : hadomain1.node1 Log File Checksum : 4491b05fd074a4d734d38c162b03fd4d Additional Data: Message : Status on component port at location hw://hadomain1.fabswa.port49 is WARNING admin_tc : up creator_id : fabsw@hw://hadomain1.fabswa dest_alias : fabsw01b location : hw://hadomain1.fabswa.port49 oper_tc : down reason_checksum : d41d8cd98f00b204e9800998ecf8427e serial : status : WARNING type : port type_desc : Fabric Switch Port Generated: 2018-07-27 08:54:40 - ap maintenance [-h] [-v] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>] [-f] [-r <reason>] [enable -r <reason>] [disable]
- プラットフォーム・マネージャーの保守モードを管理します。保守モードでは、プラットフォームがモニターされますが、すべての管理操作がハングします (プラットフォーム・マネージャーによるアラートおよび PMR のオープン、および侵襲的操作は実行されません)。コマンド固有のパラメーターは以下のとおりです。
- -f|--force
- 操作を実行する前に確認を要求しません。
- enable -r <reason>
- 保守モードを有効にします。-r 引数を使用して、理由の提示を要求します。
- disable
- 保守モードを無効にします。
- -r|--reason <reason>
- 保守モードの理由。
- ap node [-h] [-v] [--host <address>] [-d] [-f] [{enable,disable,init} <node>] [rebalance] [--user <user>] [--password <password>] [--from-file <file_path>]
- ノードに関する詳細情報を表示し、ノード状態の変更やノードのリバランスを可能にします。
コマンド固有のパラメーターは以下のとおりです。
- -d|--detail
-
ノードに関する詳細情報を表示します。
- -f|--force
- ノードを操作する前に確認しません。
- enable node
- 指定されたノードを有効にします。ノードの形式は
hadomainX.nodeYである必要があります。ここで、X は HA ドメイン番号で、Y はその HA ドメイン内のノード番号です。 - disable node
- 指定されたノードを無効にします。ノードの形式は
hadomainX.nodeYである必要があります。ここで、X は HA ドメイン番号で、Y はその HA ドメイン内のノード番号です。 - init node
- 物理的に削除されたノードのプラットフォーム・マネージャーを初期化します。この操作は、IBM サポートによって実行されます。
- rebalance
- ノードが有効にされた後、MLN のリバランスを実行します。
ap node -d +-----------------+---------+-----------+-----------+--------+ | Node | State | Monitored | Is Master | Is HUB | +-----------------+---------+-----------+-----------+--------+ | hadomain1.node1 | ENABLED | YES | YES | YES | | hadomain1.node2 | ENABLED | YES | NO | NO | | hadomain1.node3 | ENABLED | YES | NO | NO | +-----------------+---------+-----------+-----------+--------+ - ap sd [-h] [-v] [--host <address>] [-d] [-f] [{enable,disable} <storage_drive>] [--user <user>] [--password <password>] [--from-file <file_path>]
- 重要: このサブコマンドは、M4002-001 モデルでのみサポートされます。
M4002-001 モデルでは、各ノードに 4 つのストレージ NVMe ドライブがあります。これらのドライブは、手動で管理する必要があります。ap sd コマンドを使用すると、例えばドライブが損傷を受け、交換する必要がある場合に、ストレージ・ドライブを無効にしてから有効にすることができます。
パラメーターを指定しない場合、このコマンドは、以下の例のように、すべてのアプライアンス・ストレージ・ドライブとその状態をリストします。コマンド固有のパラメーターは以下のとおりです。[root@node0101 ~]# ap sd +------------------------+---------+ | Drive | State | +------------------------+---------+ | hadomain1.node1.drive1 | ENABLED | | hadomain1.node1.drive2 | ENABLED | | hadomain1.node1.drive3 | ENABLED | | hadomain1.node1.drive4 | ENABLED | | hadomain1.node2.drive1 | ENABLED | | hadomain1.node2.drive2 | ENABLED | | hadomain1.node2.drive3 | ENABLED | | hadomain1.node2.drive4 | ENABLED | | hadomain1.node3.drive1 | ENABLED | | hadomain1.node3.drive2 | ENABLED | | hadomain1.node3.drive3 | ENABLED | | hadomain1.node3.drive4 | ENABLED | +------------------------+---------+ Generated: 2019-03-12 12:32:31- -f|--force
- アクションを実行する前に確認しません。
- enable storage_drive
- 指定されたストレージ・ドライブを有効にします。
- disable storage_drive
- 指定されたストレージ・ドライブを無効にします。
- ap state [-h] [-v] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>] [-d] [-e]
- システム (アプライアンス) の状態を表示します。パラメーターは以下のとおりです。
- -d|--details
-
アプライアンス、アプリケーションおよびプラットフォーム・マネージャーの状態を個別に表示します。
- -e|--explain
- アプライアンスの状態を説明します。
コマンドと出力の例を以下に示します。ap state -d System state is 'Starting' Application state is 'Containers_Started' Platform management state is 'Active' - ap sw [--host <address>] [-h] [-v] [location | -t type] [-d] [--user <user>] [--password <password>] [--from-file <file_path>]
- ソフトウェア・コンポーネントのリストをそれらの状況と共に表示します。パラメーターを指定しない場合は、アプライアンス・アプリケーション・コンポーネントのみを表示します。パラメーターは以下のとおりです。
- location
- ソフトウェア・インベントリーのロケーションを指定します。
- -t type
- リストするソフトウェア項目のタイプを指定します。
- -d|--details
- すべてのソフトウェア・インベントリーの項目を表示します。
コンポーネントのリストについては、ソフトウェア・コンポーネントを参照してください。
コマンドと出力の例を以下に示します。ap sw +-----------------------+---------------------+--------+--------------------------------------------------------------+ | Name | Location | Status | Version | +-----------------------+---------------------+--------+--------------------------------------------------------------+ | Appliance Application | apiserver | OK | 2.1.5 20180628 | | Appliance Application | db2 | OK | 11.1.9.0 | | Appliance Application | ha-management | OK | 2.6.1 | | Appliance Application | ldap | OK | 2.4.44 | | Appliance Application | lift | OK | 3.0.0.451 | | Appliance Application | spark | OK | Spark 2.3.0 (git revision a0d7949896) built for Hadoop 2.7.3 | | Application Node | db2/hadomain1.node1 | OK | | | Application Node | db2/hadomain1.node2 | OK | | | Application Node | db2/hadomain1.node3 | OK | | | Web Console | webconsole | OK | 1.0.10.0 | +-----------------------+---------------------+--------+--------------------------------------------------------------+ Generated: 2018-07-27 08:56:01 - ap version [-h] [-v] [--host <address>] [--user <user>] [--password <password>] [--from-file <file_path>] [-b] [-p] [-c]
- -b|--build
-
ビルド情報を表示します。
- -p|--platform
- プラットフォーム管理のバージョンを表示します
- -c|--cli
apcliのバージョンを表示します。
ap version Appliance software version is 1.0.10.0