IBM Tivoli Netcool/OMNIbus 7.4 版

範例:從工具啟動暫時性事件清單

這些範例會顯示如何在 UNIX 及 Windows 上,從工具執行暫時性事件清單。

提示: 在雙重伺服器桌面 (DSD) 配置中,使用 %desktopserver 內部值取代下列範例指令中顯示的 %server 值。 這是為了確保 ObjectServer 會將其訊息傳送至正確的用戶端。

範例:UNIX 上的 nco_elct 指令

下列範例會顯示如何使用「顯示相關 FE 節點」工具中的 nco_elct 公用程式,該工具隨附於 Tivoli Netcool/OMNIbus

$NCHOME/omnibus/bin/nco_elct -server "%server" -username "%username" 
-password "%password" -vfile "$NCHOME/omnibus/desktop/default.elv"
-ftext "( RemoteNodeAlias != '' and RemoteNodeAlias = '@LocalNodeAlias' )
or ( LocalNodeAlias != '' and LocalNodeAlias = '@RemoteNodeAlias')
or Node = '@RemoteNodeAlias' or RemoteNodeAlias = '@Node'"

範例:Windows 上的 NCOelct 指令

下列範例會顯示如何使用「顯示相關 FE 節點」(Windows) 工具中的 NCOelct.exe 公用程式,該工具隨附於 Tivoli Netcool/OMNIbus

"$(NCHOME)/omnibus/desktop/NCOelct.exe" -server "%server" -username "%username" 
-password "%password" -vfile "$(NCHOME)/omnibus/ini/default.elv"
-elf "$(NCHOME)/omnibus/ini/tool.elf" -params "( RemoteNodeAlias != \\'\\'
and RemoteNodeAlias = \\'@LocalNodeAlias\\' )
or ( LocalNodeAlias != \\'\\' and LocalNodeAlias = \\'@RemoteNodeAlias\\')
or Node = \\'@RemoteNodeAlias\\' or RemoteNodeAlias = \\'@Node\\'"

之前的 NCOelct 指令中參照的 tool.elf 檔案會具有下列內容:

filter_name = 'ToolFilter';
filter_text = '@FilterText';
filter_metric = 'avg(Severity)';
# 檔案結尾

Windows 的 NCHOME 環境變數在工具中的表示方式與在一般用法 (%NCHOME%) 中不同。發生此差異是因為變數會由內建工具剖析器,而不是由 Windows 作業系統來解譯及解析。

在從事件清單執行工具時,-params 選項之後的整個字串會取代 tool.elf 檔案中的 @FilterText 位置保留元。 -params 字串中的 @LocalNodeAlias、@RemoteNodeAlias 及 @Node 位置保留元會由事件清單中目前所選事件的值取代。


程式庫 | 支援 |
前次更新日期:2012 年 11 月