relocate_wls
Weblogicサーバーが物理ホストから論理ホストに移行される際に必要なステップを自動化します。
書式
emcli relocate_wls -target_name = <domain target name to relocate> -host = <new host of domain> -port = <new port of domain> -dest_agent = <new destination agent> [-input_file = old_to_new_host_mapping_file:"<fully qualified path of old_to_new_host_mapping_file.csv>"] [-no_delete] [-debug] [ ] indicates that the parameter is optional.
オプション
-
-target_name
移行するドメインの完全なターゲット名
-
-host
新しいホストで実行されている管理サーバーのホスト名
-
-port
新しいホストで実行されている管理サーバーのポート
-
-dest_agent
WebLogicドメインのターゲットを再配置する新しいエージェント
-
-input_file
古いホストから新しいホストへのマッピングの複数行を含む、CSV形式のファイルの完全修飾パス。これは、ターゲットのホスト・プロパティを古いホストからマッピング・ファイルで指定されている新しいホストに更新するために使用します。
各行の書式は次のとおりです。
host1.example.com,newhost1.example.com host2.example.com,newhost2.example.com host3.example.com,newhost3.example.com
-
-debug
デバッグのために冗長モードでverbを実行します。
-
-no_delete
デフォルトでは、古いホストを含むノード・マネージャ・ターゲットは削除されます。このオプションが指定された場合、ノード・マネージャ・ターゲットは削除されません。
例
例1
次の例では、ターゲットを古いホストから新しいホストに移行します。
emcli relocate_wls -target_name=/EMGC_GCDomain/GCDomain -host=newhost1.example.com -port=7101 -dest_agent=newhost1.example.com:3872 -input_file=old_to_new_host_mapping_file:/tmp/hostmapping.txt