netcool
netcool
Objectives
2
IBM Software Group Tivoli software
Tools
3
IBM Software Group Tivoli software
Menus
4
IBM Software Group Tivoli software
• Open Menu
• Click on Menus
• Select Main Event List Menu
• Right-click and Select Add Item
5
IBM Software Group Tivoli software
• Check: Enabled
Redirect Output
Redirect Errors
echo ORANGE
pause (for a desktop running on Windows)
6
IBM Software Group Tivoli software
7
IBM Software Group Tivoli software
SQL Tools
• SQL tools modify ObjectServer via SQL commands
• Tools on the Alerts menu can reference and modify selected
events.
8
IBM Software Group Tivoli software
9
IBM Software Group Tivoli software
10
IBM Software Group Tivoli software
11
IBM Software Group Tivoli software
12
IBM Software Group Tivoli software
13
IBM Software Group Tivoli software
14
IBM Software Group Tivoli software
Trigger Groups
15
IBM Software Group Tivoli software
Triggers (Automations)
• Automatically manage
events
• Perform escalation
• Perform correlation
• Perform external
commands
16
IBM Software Group Tivoli software
17
IBM Software Group Tivoli software
Temporal Triggers
Define
Period
18
IBM Software Group Tivoli software
ACTION begin
delete from alerts.status
where Severity = 0 and
StateChange < (getdate() - 120);
end
19
IBM Software Group Tivoli software
Database Triggers
Database/
Table Name
Pre/Post
Action Database
Operation
Apply to
Row/
Statement
20
IBM Software Group Tivoli software
ACTION begin
set old.Tally = old.Tally + 1;
set old.LastOccurrence = new.LastOccurrence;
set old.StateChange = getdate();
set old.InternalLast = getdate();
set old.Summary = new.Summary;
set old.AlertKey = new.AlertKey;
if ((old.Severity = 0)and(new.Severity > 0))
then
setold.Severity = new.Severity;
end if;
end
21
IBM Software Group Tivoli software
Signal Triggers
User Signals
User-created, raised via SQL.
Allow multiple Actions against one
Trigger
Define
Signal
22
IBM Software Group Tivoli software
23
IBM Software Group Tivoli software
Unique
Name
Signal
Description
Define
Define Data Type
Parameters
(optional)
24
IBM Software Group Tivoli software
Event Correlation
done via the generic_clear trigger
• Correlate problem (Type = 1) events with resolution (Type = 2) events
25
IBM Software Group Tivoli software
CAUTION: Shipped Automations can be modified, but changes can affect the running
of the ObjectServer.
26
IBM Software Group Tivoli software
Procedure
• Executable code called to perform common operations
• SQL procedures manipulate data in an ObjectServer database
• External procedures run an executable on a remote system
• Procedures can be called from nco_sql, a trigger, or a tool.
• Syntax:
{EXECUTE|CALL} [ PROCEDURE ] procedure_name(expr,...);
• Example:
EXECUTE PROCEDURE myproc();
or with parameters:
EXECUTE PROCEDURE myproc(“text”,@Node);
IBM Software Group Tivoli software
Procedure
Name
Parameters to
pass to procedure
Procedure
Action
28
IBM Software Group Tivoli software
SQL Procedures
• An SQL procedure is SQL commands, code, and procedural
constructs to perform complex tasks on database objects.
• The body of a procedure is enclosed by begin and end
• Each statement except the last must end with a semi-colon
• A body statement can contain SQL Commands:
• ALTER SYSTEM BACKUP, ALTER SYSTEM SET, ALTER SYSTEM DROP
CONNECTION
• ALTER TRIGGER, ALTER TRIGGER GROUP, ALTER USER
• UPDATE, INSERT, DELETE
• WRITE INTO, RAISE SIGNAL, {EXECUTE|CALL} PROCEDURE
• Programming constructs:
SET writes the value of an expression to a variable or parameter.
IF THEN ELSE - performs actions based on a specified condition.
CASE WHEN - tests conditions, performs actions based on tests.
FOR EACH ROW - loops a set of rows while a condition matches.
FOR - performs actions a number of times, based on a counter variable.
Break - statement in action command list will exit loop
Cancel - statement in action command list will stop procedure
CAUTION: Do not create circular constructs.
IBM Software Group Tivoli software
External Procedures
Procedure
Name Procedure
Parameters
Executable
Script (full path)
Host to
execute on
Script
Arguments
User/Group
details
30
IBM Software Group Tivoli software
31
IBM Software Group Tivoli software
32
IBM Software Group Tivoli software
Summary
33