BAROC 產生器工具會將「共用事件基礎架構」格式的事件定義轉換成 Enterprise Console 格式的事件定義。
barocgen -f cbedef_file [-o] baroc_file
使用 barocgen 工具,將 CBE 事件的事件定義檔案轉換成 baroc 檔案。CBE 事件定義檔案必須由將 CBE 格式的事件傳送至 Enterprise Console 之事件來源的支援模組所提供。
如果支援模組已提供 Enterprise Console 格式的事件定義,則不需要使用 barocgen 工具。
下列範例會將所有 CBE 事件定義從 autonomicdef.xml 檔案轉換成 autonomicdef.baroc 檔案中的 BAROC 事件定義:
barocgen -f autonomicdef.xml -o autonomicdef.baroc
下列範例會將所有 CBE 事件定義從 autonomicdef.xml 檔案轉換成 BAROC 事件定義, 並將它們顯示在主控台上:
barocgen -f autonomicdef.xml