使用 wsadmin Scripting 之 AdminTask 物件的 AdministrationReports 指令群組

您可以利用 wsadmin 工具,以 Jython 或 Jacl Scripting 語言來對您的配置進行疑難排解。 管理報告群組中的指令可用來建立系統配置中不一致的報告,或用來說明系統中埠使用情形的報告。

下列指令適用於 AdminTask 物件的 AdministrationReports 群組:

reportConfigIn」

使用 reportConfigInconsistencies 指令來建立系統配置中不一致的報告。

目標物件

必要的參數和回覆值

  • 參數: 無
  • 傳回: 說明系統中發現不一致的報告。

互動模式用法範例

  • 使用 Jacl:

    $AdminTask reportConfigInconsistencies {-interactive}
  • 使用 Jython 字串:

    AdminTask.reportConfigInconsistencies ( '[-interactive]')
  • 使用 Jython 清單:

    AdminTask.reportConfigInconsistencies  (['-interactive'])

輸出範例

Configuration consistency report for cell yardbirdCell cells/yardbirdCell/test.xml is a zero
 length file. cells/yardbirdCell/nodes/DummyNode does not contain a serverindex.xml document.
 cells/yardbirdCell/applications/Test. ear/deployments/Test does not contain a deployment.xml document.
 3 consistency problems were found. 

reportConfiguredPorts

使用 reportConfiguredPorts 指令來建立 Cell 中配置的所有埠的報告。

目標物件

必要的參數和回覆值

  • 參數: 無
  • 傳回: 說明系統中埠使用情形的報告。

互動模式用法範例

  • 使用 Jacl:

    $AdminTask reportConfiguredPorts {-interactive}
  • 使用 Jython 字串:

    AdminTask.reportConfiguredPorts ('[-interactive]')
  • 使用 Jython 清單:

    AdminTask.reportConfiguredPorts (['-interactive'])

範例輸出

Ports configured in cell yardbirdCell Node yardbirdCellMgr / Server dmgr yardbird:7283 
CELL_DISCOVERY_ADDRESS yardbird:9809 BOOTSTRAP_ADDRESS ...  Node dizzyNode1 / Server server1 
dizzy:2813 BOOTSTRAP_ADDRESS dizzy:8880 SOAP_CONNECTOR_ADDRESS ...  Node dizzyNode1 / Server 
nodeagent dizzy:2814 BOOTSTRAP_ADDRESS dizzy:9904 ORB_LISTENER_ADDRESS