StreamRedirect プロパティー・ファイルの errorStreamRedirect 属性の変更

プロパティー・ファイルを使用して、サーバーの errorStreamRedirect 属性の変更を行えます。 errorStreamRedirect 属性は、タイプ StreamRedirect のものです。

始める前に

サーバー構成オブジェクトの errorStreamRedirect 属性に行う変更を決定します。

サーバーは、サーバー・プロパティー・ファイル・テンプレートを作成して、テンプレートを適用することで作成できます。 サーバー・プロパティー・ファイルのトピックを参照してください。

wsadmin スクリプト・ツールを開始します。 Jython 言語を使用して wsadmin を開始する場合は、サーバー・プロファイルの bin ディレクトリーから wsadmin -lang jython コマンドを実行します。

このタスクについて

プロパティー・ファイルを使用して、サーバーの errorStreamRedirect 属性の変更を行えます。

wsadmin を使用して管理コマンドを実行し、 StreamRedirect オブジェクト・プロパティー・ファイルの変更、プロパティーの検証、プロパティーの構成への適用を行います。

表 1. StreamRedirect プロパティー・ファイルの errorStreamRedirect 属性のアクション. errorStreamRedirect 属性値は変更できます。
アクション 手順
作成 使用不可
modify プロパティーを編集し、applyConfigProperties コマンドを実行します。
delete 使用不可

オプションで、以下のコマンドを使用して、対話モードを使用することができます。

AdminTask.command_name('-interactive')

手順

  1. StreamRedirect プロパティー・ファイルの errorStreamRedirect 属性を変更します。

    エディターを開き、プロパティー・ファイルでサーバーの下に errorStreamRedirect 属性を指定します。 以下のプロパティーの例をエディターにコピーして、プロパティーを状況に応じて変更できます。この例は、タイプ StreamRedirect の errorStreamRedirect 属性を示します。

    #
    # Header
    #
    ResourceType=StreamRedirect
    ImplementingResourceType=GenericType
    ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName}:StreamRedirect=outputStreamRedirect#
    AttributeInfo=errorStreamRedirect
    #DELETE=true
    #
    #
    #Properties
    #
    formatWrites=true #boolean,default(false)
    maxNumberOfBackupFiles=5 #integer,default(0)
    suppressStackTrace=false #boolean,default(false)
    rolloverType=SIZE #ENUM(TIME|SIZE|NONE|BOTH),default(SIZE)
    suppressWrites=false #boolean,default(false)
    baseHour=24 #integer,default(0)
    fileName="${SERVER_LOG_ROOT}/SystemOut6.log"
    messageFormatKind=BASIC #ENUM(BASIC|ADVANCED),default(BASIC)
    rolloverSize=1 #integer,default(0)
    rolloverPeriod=24 #integer,default(0)
    
    EnvironmentVariablesSection
    #
    #Environment Variables
    cellName=WASCell06
    serverName=myServer
    nodeName=WASNode04
  2. applyConfigProperties コマンドを実行して、サーバーの errorStreamRedirect 属性を変更します。

    applyConfigProperties コマンドを実行すると、構成にプロパティー・ファイルが適用されます。以下の Jython の例では、オプションの -reportFileName パラメーターによって report.txt という名前のレポートが作成されます。

    AdminTask.applyConfigProperties(['-propertiesFileName myObjectType.props -reportFileName report.txt '])

タスクの結果

プロパティー・ファイルを使用して、StreamRedirect オブジェクトを構成および管理することができます。

次のタスク

構成の変更を保存します。


トピックのタイプを示すアイコン タスク・トピック



タイム・スタンプ・アイコン 最終更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_config_prop_streamredirect
ファイル名:txml_config_prop_streamredirect.html