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

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

スクリプトによる新規 URL の構成

スクリプトと wsadmin ツールを使用して、新規の URL を構成できます。

始める前に

このタスクを開始する場合は、あらかじめ wsadmin ツールが稼働 している必要があります。 詳しくは、wsadmin スクリプト・クライアントの開始 の項目を参照してください。

このタスクについて

以下の例を実行して、新規 URL を構成します。

プロシージャー

  1. 親 ID を識別して newurlp 変数に割り当てる。
    • Jacl を使用:

      set newurlp [$AdminConfig  getid  /Cell:mycell/Node:mynode/URLProvider:URLP1/]
    • Jython を使用:
      newurlp = AdminConfig.getid('/Cell:mycell/Node:mynode/URLProvider:URLP1/')
      print newurlp
    出力例:
    URLP1(cells/mycell/nodes/mynode|resources.xml#URLProvider_1)
  2. 以下のように、必須の属性を識別する。
    • Jacl を使用:

      $AdminConfig required URL
    • Jython を使用:
      print AdminConfig.required('URL')
    出力例:
    Attribute            Type
    name         String
    spec         String
  3. 以下のように、必須の属性をセットアップする。
    • Jacl を使用:

      set name [list name URL1]
      set spec [list spec "Put the spec here"]
      set urlAttrs [list $name $spec]
      出力例:
      {name URL1} {spec {Put the spec here}}
    • Jython を使用:
      name = ['name', 'URL1']
      spec = ['spec', "Put the spec here"]
      urlAttrs = [name, spec]
      出力例:
      [[name, URL1], [spec, "Put the spec here"]]
  4. 以下のように、URL を作成する。
    • Jacl を使用:

      $AdminConfig create URL $newurlp $urlAttrs
    • Jython を使用:
      print AdminConfig.create('URL', newurlp, urlAttrs)
    出力例:
    URL1(cells/mycell/nodes/mynode|resources.xml#URL_1)
  5. 構成の変更を保管します。詳しくは、wsadmin ツールによる構成変更の保管 の項目を参照してください。
  6. ノードを同期します (Network Deployment 環境の場合のみ)。 詳しくは、wsadmin ツールによるノードの同期化 の項目を参照してください。



関連タスク
スクリプト管理のための AdminConfig オブジェクトの使用
関連資料
AdminConfig オブジェクトのコマンド
タスク・トピック    

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

最終更新: Jan 21, 2008 9:12:22 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/txml_url.html