原則 XML 參照

本章說明 System Automation for Multiplatforms 自動化原則支援的 XML 元素、子元素及屬性。

下表顯示在哪個版本的 System Automation for Multiplatforms 特定 XML 元素變成可用。

表 1. 依產品版本的 XML 元素可用性
XML 元素 System Automation for Multiplatforms 第一個支援的版本
<recoveryPolicy> as Attribute of <Members> 3.2.2
<Options> as sub-element of <IBM.AgFileSystemAttributes> 3.2.1.3
<ConcurrentGroup> 3.1.0.5
<CleanupCommand> as sub-element of <IBM.ApplicationAttributes> 3.1.0.5
<CleanupCommandTimeout> as sub-element of <IBM.ApplicationAttributes> 3.1.0.5
<CleanupNodeList> as sub-element of <IBM.ApplicationAttributes> 3.1.0.5
<CleanupNode> as sub-element of <IBM.ApplicationAttributes> 3.1.0.5
<ProcessCommandString> as sub-element of <IBM.ApplicationAttributes> 3.1.0.5
<MonitorUserName> as sub-element of <IBM.ApplicationAttributes> 3.1.0.5
<NetPrefix> as sub-element of <IBM.ServiceIPAttributes> 3.1.0.1
<AutomationPolicyTemplate>, <var>, and <include> 2.3
<IBM.AgFileSystemAttributes> 2.2.0.1
IBM.AgFileSystem 作為類別值 2.2.0.1
<ClassAttributesReference> as sub-element of <ConstituentResource> 2.2.0.1
所有其他標籤 2.1
在本章中,針對目前支援的每一個 XML 元素提供下列資訊:
名稱
元素的名稱和簡要說明。
範例
一個以上範例顯示如何使用元素。
屬性
元素屬性的說明。
環境定義
子項: 元素可以包含的元素清單。
出現次數
元素的可能出現次數。

當您建立 XML 檔案時,建議使用位於 /usr/sbin/rsct/samples/policy 目錄中的正式 XML 原則檔案範本 SAMTemplate.xml 。 如果要使用範本,請將檔案複製到您的工作目錄,並根據您的檔案命名慣例來重新命名。

當您建立用於範本處理的 XML 範本檔時,建議使用位於 /usr/sbin/rsct/samples/policy 目錄中的正式 XML 原則檔範本 SAMTopLevelTemplate.xml 。 如果要使用範本,請將檔案複製到您的工作目錄,並根據您的檔案命名慣例來重新命名。

若要建立 XML 原則檔案,您可以使用任何商業、共用軟體或免費軟體 XML 或 ASCII 編輯器,以容許您以 UTF-8 格式儲存檔案。 原則檢查程式將拒絕任何其他格式的 XML 檔案。

如果您使用 XML 編輯器來建立 XML 原則檔,編輯器會為您建立基本 XML 原則範本。 此外,大部分 XML 編輯器都有一個驗證功能,可確保您的 XML 程式碼符合相關綱目。 當您想要使用這些函數時,必須確保 XML 編輯器知道在何處尋找相關綱目。 System Automation for Multiplatforms 原則的綱目定義在檔案 SAMPolicy.xsdSAMSimpleTypes.xsd中。 它們位於 /usr/sbin/rsct/samples/policy目錄中。 System Automation for Multiplatforms 原則範本的綱目定義在檔案 SAMPolicyTemplate.xsdSAMSimpleTypes.xsd中。 它們位於 /usr/sbin/rsct/samples/policy目錄中。