「共用基本事件」屬性與 Enterprise Console 事件屬性的對映

根據表 1 中的橫列,將 CBE 事件中的屬件名稱轉換成 Enterprise Console 事件中的屬性名稱。 表 1 中沒有的屬性名稱,就不會對映成 Enterprise Console 事件:

CBE 事件屬性

Enterprise Console 事件屬性

extensionName

CLASS

msg
msgDataElement.msgId (如果設定)

msg

severity

severity

creationTime

date

repeatCount

repeat_count

sourceComponentId.component

source

sourceComponentId.subComponent

sub_source

sourceComponentId.location

  • fqhostname (當 CBE sourceComponentId.locationType 屬性等於 FQHostname 時)
  • hostname (當 CBE sourceComponentId.locationType 屬性等於 Hostname 時)
  • origin (當 CBE sourceComponentId.locationType 屬性等於 Devicename 時)

globalInstanceId

globalInstanceId (如果定義於作用中規則庫)

  • version
  • localInstanceId
  • priority
  • elapsedTime
  • sequenceNumber
  • msgDataElement (上面未列出的子欄位)
  • sourceComponentId (上面未列出的子欄位)
  • reporterComponentId (及子欄位)
  • situation (及子欄位)
  • associatedEvents (及子欄位)

未對映

表 1. CBE 與 Enterprise Console 事件格式之間的屬性對映


下列各節會詳細說明如何將每個屬性從 CBE 事件對映成 Enterprise Console 事件:

extensionName

對映至 CLASS 屬性。如果 CBE 事件中沒有 extensionName, 則會將 CLASS 屬性設為 EVENT (這是 TEC 事件類別的預設值)。

附註:

CBE 事件中的 extensionName 屬性值可能需要進行轉換,才能放入 Enterprise Console 事件中之 CLASS 屬性所使用的字元空間。

msg

如果 CBE 事件中同時設定 msg 屬性及 msgDataElement 屬性的 msgId 欄位,則會設定 Enterprise Console msg 屬性, 而此屬性結合了這兩個欄位,且所產生之值的格式如下:msgId: msg

如果 CBE 事件中只設定 msg 屬性, 則會將它直接複製成 Enterprise Console 事件 msg 屬性。

severity

Enterprise Console 事件 severity 屬性是選用屬性, 且可以用數值或下列其中一個預先定義的關鍵字來呈現:UNKNOWN、HARMLESS、WARNING、MINOR、CRITICAL 及 FATAL。會以下列方式來對映 severity:

如果 CBE severity 符合列舉清單,則會將 Enterprise Console 事件 severity 屬性設為 CBE severity 數值。

如果沒有符合的 severity 列舉,則會進行下列對映。請注意,如果未變更預設的 Enterprise Console 嚴重性, 則此對映的運作狀況會最好。然而,除了預設 Enterprise Console 嚴重性外,還可以定義自訂嚴重性。

repeatCount

直接對映成 Enterprise Console 事件 repeat_count 屬性。

creationTime

Enterprise Console 事件 date 屬性是選用的。通常會遵循 "MMM dd HH:mm:ss yyyy" 型式。 此值通常是透過 CBE creationTime 形式 "yyyy-MM-dd'T'HH:mm:ss" 所建立。

附註:

如果 CBE 事件中有名稱為 date 的最上層延伸資料元素, 則會將該值用於 Enterprise Console 事件 date 屬性,而非 creationTime

sourceComponentId

sourceComponentId 是複式 CBE 屬性,表示它含有其他內部屬性。會根據下表,將它的內部屬性對映成 Enterprise Console 事件中的屬性:

CBE 屬性

Enterprise Console 屬性

sourceComponentId.component

source (如果 CBE 屬性包含空白字串或值 "N/A",則不會設定此值)

sourceComponentId.subcomponent

sub_source (如果 CBE 屬性包含空白字串或值 "N/A",則不會設定此值)

sourceComponentId.location

fqhostname (只有當 sourceComponentId.locationType 是 FQHostname 時,才會設定此值)

sourceComponentId.location

hostname (只有當 sourceComponentId.locationType 是 Hostname 時,才會設定此值)

sourceComponentId.location

origin (只有當 sourceComponentId.locationType 是 Devicename 時,才會設定此值)

表 2. 將 sourceComponentId 屬性從 CBE 事件對映成 Enterprise Console 事件

附註:

如果沒有任何 sourceComponentId 欄位,則不會建立相對應的 Enterprise Console 事件屬性。

globalInstanceId

如果出現在規則庫之事件類別的類型中,則會將此欄位從 CBE 事件複製至 Enterprise Console 事件。


下載 | 書庫 | 支援 | 使用條款 | 意見

(C) Copyright IBM Corporation 1999,2005. All Rights Reserved.