Sun Management Center 3.6 使用者指南

拓樸匯出公用程式

export 指令可將一個網域或所有網域的拓樸資料儲存到一個檔案中。

匯出指令參數

export 指令可接受以下參數:

comment

comment 參數的值為要包含在檔案中的附註。

domain

domain 參數的值為要匯出的拓樸所屬網域的名稱。如果未指定網域,將匯出所有網域。

filename

filename 參數的值為應該將拓樸資訊匯出至其中的檔案之名稱。

mode

mode 參數的值決定如何將拓樸資訊加入檔案。如果值為 append,則資料會附加到檔案內容中。如果值為 overwrite,則將以新的資料取代檔案先前的內容。

validity

validity 參數的值為資料有效的時間長度(以天計)。以下值為有效性參數的合法值:

  • Unlimited

  • 7

  • 15

  • 30

  • 90


範例 19–2 將預設網域拓樸匯出到檔案

在以下範例中,將 Default Domain 儲存到名為 snapshot 的檔案中。snapshot 的原始內容將被新的資料覆寫。假設新資料的有效期不受限制。註解指定此資料用於系統測試群組。


> export filename=/home/examples/snapshot \
domain="Default Domain" mode=overwrite validity=Unlimited \
comment="System Test Group"

匯出指令的輸出訊息

以下清單顯示可能會作為匯出指令結果出現的訊息。


Export: Results 1/1


State=Success


Message=The topology data is successfully exported.

原因:

成功。

說明:

作業成功完成。


export: Cannot open file.

原因:

檔案不存在。

說明:

參數檔不存在。


filename: Permission denied.

原因:

檔案錯誤。

說明:

無法建立或開啟檔案以供寫入。


export: File format not supported.

原因:

格式錯誤。

說明:

當將匯出資料附加到無效的匯出資料檔時,會發生錯誤。


export: The domain <domainname > does not exist

原因:

物件錯誤。

說明:

您要匯出的網域不存在。


export: Wrong parameter file.

原因:

參數檔錯誤。

說明:

參數檔包含 name = value 組的清單。如果檔案格式不正確,應用程式將通知您,並停止作業。


export: The current user is different from the last one.

原因:

使用者衝突。

說明:

當您嘗試將資料覆寫或附加到他人建立的現有資料檔時,會發生錯誤。您無法修改或覆寫其他使用者建立的匯出資料。


export: Data is out-of-date.

原因:

資料太舊。

說明:

您使用的匯出檔案已過時。只有當您以附加模式匯出資料時,才會出現此訊息。


export: illegal parameter - <para>.


Please use -h option to get usage.

原因:

非法的參數。

說明:

已將非法的參數傳入匯出操作。