WebSphere Application Server Network Deployment for i5/OS, Version 6.1   
             オペレーティング・システム: i5/OS

             目次と検索結果のパーソナライズ化

Java 2 Platform, Standard Edition 環境のリモート側での wsadmin ツールの実行

シン管理クライアントは、IBM Developer Kits For the Java Platform で使用できる管理クライアント機能をサポートする JAR ファイルを追加します。

このタスクについて

シン管理クライアントについて詳しくは、アプリケーション・クライアントの機能 の項を参照してください。

シン管理クライアントは SAR ファイルのインストールや外部 JACC プロバイダー、例えば Tivoli Access Manager を使用するアプリケーションの編集をサポートしません。

シン管理クライアントの情報のトレースとロギングについては、クライアントおよびスタンドアロン・アプリケーションでのトレースの使用可能化 の項を参照してください。

プロシージャー

  1. WebSphere Application Server Network Deployment インストールから、セキュリティーが有効な場合に必要なシン管理クライアント JAR ファイルおよびその他の必要なファイルを入手します。 このタスクを実行するために必要なファイルに関して詳しくは、Administration Thin Client の使用 の項を参照してください。
  2. サーバー・マシンから wsadmin.sh または wsadmin.bat ファイルを生成します。 このファイルは、アプリケーション・クライアントに同梱されていません。
  3. サーバー・マシンから wsadmin.sh または wsadmin.bat ファイルをコピーします。 このファイルは、アプリケーション・クライアント・インストールに同梱されていません。
  4. OSGi 以外の環境で wsadmin ツールを開始します。
    • OSGi 以外の環境で wsadmin ツールを開始します。以下に例を示します。
      @REM wsadmin launcher
      @echo off
      @REM Usage: wsadmin arguments
      setlocal
      @REM was home should point to whatever directory you decide for your thin client environment
      set WAS_HOME=c:¥MyThinClient
      set USER_INSTALL_ROOT=%WAS_HOME%
      @REm Java home should point to where you installed java for your thinclient
      set JAVA_HOME="%WAS_HOME%¥java"
      set WAS_LOGGING=-Djava.util.logging.manager=com.ibm.ws.bootstrap.WsLogManager -Djava.util.logging.configureByServer=true
      
      if exist "%JAVA_HOME%¥bin¥java.exe" (
         set JAVA_EXE="%JAVA_HOME%¥bin¥java"
      ) else (
         set JAVA_EXE="%JAVA_HOME%¥jre¥bin¥java"
      )
      
      @REM CONSOLE_ENCODING controls the output encoding used for stdout/stderr
      @REM console - encoding is correct for a console window
      @REM file - encoding is the default file encoding for the system
      @REM other - the specified encoding is used.  e.g. Cp1252, Cp850, SJIS
      @REM SET CONSOLE_ENCODING=-Dws.output.encoding=console
      
      @REM For debugging the utility itself
      @REM set WAS_DEBUG=-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777
      
      set CLIENTSOAP=-Dcom.ibm.SOAP.ConfigURL=file:"%USER_INSTALL_ROOT%"¥properties¥soap.client.props
      set CLIENTSAS=-Dcom.ibm.CORBA.ConfigURL=file:"%USER_INSTALL_ROOT%"¥properties¥sas.client.props
      set CLIENTSSL=-Dcom.ibm.SSL.ConfigURL=file:"%USER_INSTALL_ROOT%"¥properties¥ssl.client.props
      
      
      @REM the following are wsadmin property 
      @REM you need to change the value to enabled to turn on trace
      set wsadminTraceString=-Dcom.ibm.ws.scripting.traceString=com.ibm.*=all=disabled
      set wsadminTraceFile=-Dcom.ibm.ws.scripting.traceFile="%USER_INSTALL_ROOT%"¥logs¥wsadmin.traceout
      set wsadminValOut=-Dcom.ibm.ws.scripting.validationOutput="%USER_INSTALL_ROOT%"¥logs¥wsadmin.valout
      @REM this will be the server host that you will connecting to
      set wsadminHost=-Dcom.ibm.ws.scripting.host=myhost.austin.ibm.com
      
      @REM you need to make sure the port number is the server SOAP port number you want to connect to, in this example the server SOAP port is 8887
      set wsadminConnType=-Dcom.ibm.ws.scripting.connectionType=SOAP
      set wsadminPort=-Dcom.ibm.ws.scripting.port=8887
      
      @REM you need to make sure the port number is the server RMI port number you want to connect to, in this example the server RMI Port is 2815
      @REM set wsadminConnType=-Dcom.ibm.ws.scripting.connectionType=RMI
      @REM set wsadminPort=-Dcom.ibm.ws.scripting.port=2815
      
      @REM specify what language you want to use with wsadmin
      set wsadminLang=-Dcom.ibm.ws.scripting.defaultLang=jacl
      @REM set wsadminLang=-Dcom.ibm.ws.scripting.defaultLang=jython
      
      set SHELL=com.ibm.ws.scripting.WasxShell
      
      :prop
      set WSADMIN_PROPERTIES_PROP=
      if not defined WSADMIN_PROPERTIES goto workspace
      set WSADMIN_PROPERTIES_PROP="-Dcom.ibm.ws.scripting.wsadminprops=%WSADMIN_PROPERTIES%"
      
      :workspace
      set WORKSPACE_PROPERTIES=
      if not defined CONFIG_CONSISTENCY_CHECK goto loop
      set WORKSPACE_PROPERTIES="-Dconfig_consistency_check=%CONFIG_CONSISTENCY_CHECK%"
      
      :loop
      if '%1'=='-javaoption' goto javaoption
      if '%1'=='' goto runcmd
      goto nonjavaoption
      
      :javaoption
      shift
      set javaoption=%javaoption% %1
      goto again
      
      :nonjavaoption
      set nonjavaoption=%nonjavaoption% %1
      
      :again
      shift
      goto loop
      
      
      :runcmd
      
      set C_PATH="%WAS_HOME%¥properties;%WAS_HOME%¥com.ibm.ws.admin.client_6.1.0.jar;%WAS_HOME%¥com.ibm.ws.security.crypto_6.1.0.jar"
      set PERFJAVAOPTION=-Xms256m -Xmx256m -Xj9 -Xquickstart
      
      if "%JAASSOAP%"=="" set JAASSOAP=-Djaassoap=off
      
      @echo off
      
      "%JAVA_EXE%" %PERFJAVAOPTION% %WAS_LOGGING% %javaoption% %CONSOLE_ENCODING% %WAS_DEBUG% "%CLIENTSOAP%" "%JAASSOAP%" "%CLIENTSAS%" "%CLIENTSSL%" %WSADMIN_PROPERTIES_PROP% %WORKSPACE_PROPERTIES% "-Duser.install.root=%USER_INSTALL_ROOT%" "-Dwas.install.root=%WAS_HOME%" %wsadminTraceFile% %wsadminTraceString% %wsadminValOut% %wsadminHost% %wsadminConnType% %wsadminPort% %wsadminLang% -classpath %C_PATH% com.ibm.ws.scripting.WasxShell %*
      
      set RC=%ERRORLEVEL%
      
      goto END
      
      :END
      
      @endlocal
      
      set MYERRORLEVEL=%ERRORLEVEL%
      if defined PROFILE_CONFIG_ACTION exit %MYERRORLEVEL% else exit /b %MYERRORLEVEL%
      
      End of wsadmin.bat 



関連情報
スクリプトの使用 (wsadmin)
アプリケーション・クライアントの機能
クライアントおよびスタンドアロン・アプリケーションでのトレースの使用可能化
wsadmin スクリプト・クライアントの開始
タスク・トピック    

ご利用条件 | フィードバック

最終更新: Jan 21, 2008 8:28:52 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.iseries.doc/info/iseriesnd/ae/txml_j2se.html