{JP1/Base}11.2.1 イベントログトラップを設定する

 

  • 物理ホスト

(1) 起動する

1.イベントログトラップ動作定義ファイル(ntevent.conf)を編集する

notepad "C:\Program Files (x86)\Hitachi\JP1Base\conf\event\ntevent.conf"

retry-times 3
retry-interval 10
matching-level 1
ext-attr-option A7 A8 A9 OS_VERSION

filter "System"
type Error
end-filter

filter "Application"
type Warning Error
end-filter


2.イベントログトラップサービスを起動する

[サーバマネージャ]の[サービス]ダイアログボックスから,「JP1/Base EventlogTrap」の名称のサービスを起動

 

3.動作確認

転送設定ファイル(forward)でJP1イベントの転送先をIMマネージャに設定


eventcreate /ID 123 /L system /SO Cmd /T Error /D "test"

 

(2) 設定を変更する

1.イベントログトラップ動作定義ファイル(ntevent.conf)を編集する

notepad "C:\Program Files (x86)\Hitachi\JP1Base\conf\event\ntevent.conf"

server "mmm183"
retry-times 3
retry-interval 10
matching-level 1
filter-check-level 1
unicode-trap 1


filter "System" id=111 trap-name=kansi01
type Error Warning
source 'Cmd1'
message 'XXX'
message 'YYY'
message !'ZZZ'
end-filter

filter "Application" id=112 trap-name=kansi02
type Warning
source 'Cmd11' 'Cmd12'
message 'XXX' 'YYY' 'ZZZ'
end-filter

 

2.変更を反映する

イベントログトラップサービスを再起動

※serverパラメーター以外を変更した場合はjeveltreloadでも可能

 

(3) 設定内容を確認する

jbsgetopinfo -o evttrap

eventcreate /ID 211 /L System /SO Cmd1 /T Error /D "%TIME% XXX"
eventcreate /ID 212 /L System /SO Cmd1 /T Error /D "%TIME% XXX YYY"
eventcreate /ID 213 /L System /SO Cmd1 /T Error /D "%TIME% XXX YYY ZZZ"

eventcreate /ID 221 /L System /SO Cmd1 /T Warning /D "%TIME% XXX"
eventcreate /ID 222 /L System /SO Cmd1 /T Warning /D "%TIME% XXX YYY"
eventcreate /ID 223 /L System /SO Cmd1 /T Warning /D "%TIME% XXX YYY ZZZ"


eventcreate /ID 241 /L System /SO Cmd2 /T Error /D "%TIME% XXX YYY"

eventcreate /ID 311 /L Application /SO Cmd11 /T Warning /D "%TIME% XXX"
eventcreate /ID 312 /L Application /SO Cmd12 /T Warning /D "%TIME% XXX"
eventcreate /ID 313 /L Application /SO Cmd13 /T Warning /D "%TIME% XXX"

eventcreate /ID 321 /L Application /SO Cmd11 /T Warning /D "%TIME% YYY"
eventcreate /ID 322 /L Application /SO Cmd11 /T Warning /D "%TIME% ZZZ"
eventcreate /ID 323 /L Application /SO Cmd11 /T Warning /D "%TIME% 111"

 


(4) 終了する

[サーバマネージャ]の[サービス]ダイアログボックスから,「JP1/Base EventlogTrap」の名称のサービスを停止


(5) 自動で起動する

起動順序定義ファイル(JP1SVPRM.DAT)で,下記パラメーターの行頭の「#」を削除

notepad "C:\Program Files (x86)\Hitachi\JP1Base\conf\boot\Jp1svprm.dat"

#[Jp1BaseEventlogTrap]
#Name=JP1/BaseEventlogTrap
#ServiceName=JP1_Base_EventlogTrap

 

 

  • 論理ホスト

イベントログトラップは,物理ホスト単位で起動します。
論理ホスト単位での起動はできません。