wsadmin スクリプトによる新規 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 ツールによるノードの同期化』トピックを参照してください。

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



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