Message management
This rule assumes that the console is in roll-delete mode. If the console is in simple roll mode, the messages might be removed from the priority area before it is resolved on the mainframe.
//
// Trigger: notifyRd
//
// Description:
// This function marks all WHITE messages as being permanent
// messages. A monitor is established and clearRd is called
// when the message scrolls off the screen or changes color.
// Valid COLOR names are RED, GREEN, BLUE, MAGENTA, CYAN,
// YELLOW and WHITE.
//
// See Also:
// clearRd
//
trigger on message.COLOR == WHITE
// add to viewer priority message pane
markMessagePermanent(message)
// monitorMessage will call the function specified by
// the second parameter with 2 parameters, the message
// followed by a reason. You may define your own clearing
// function with additional parameters, see the help
// for monitorMessage
monitorMessage(message, "clearRd")
// Trigger: notifyRd
//
// Description:
// This function marks all WHITE messages as being permanent
// messages. A monitor is established and clearRd is called
// when the message scrolls off the screen or changes color.
// Valid COLOR names are RED, GREEN, BLUE, MAGENTA, CYAN,
// YELLOW and WHITE.
//
// See Also:
// clearRd
//
trigger on message.COLOR == WHITE
// add to viewer priority message pane
markMessagePermanent(message)
// monitorMessage will call the function specified by
// the second parameter with 2 parameters, the message
// followed by a reason. You may define your own clearing
// function with additional parameters, see the help
// for monitorMessage
monitorMessage(message, "clearRd")
clearRd
//
// Function: clearRd
//
// Description:
// This function cancels monitoring and clears the message
// when it scrolls off the screen or changes color.
//
// See Also:
// notifyRd
//
function clearRd(message, reason)
unmonitorMessage(message, "clearRd")
clearMessagePermanent(message)
return 0
// Function: clearRd
//
// Description:
// This function cancels monitoring and clears the message
// when it scrolls off the screen or changes color.
//
// See Also:
// notifyRd
//
function clearRd(message, reason)
unmonitorMessage(message, "clearRd")
clearMessagePermanent(message)
return 0
clearAllPriority
By default, priority messages remain in the priority message area until they are cleared by a function or rule. This function clears all priority messages.
//
// Function: clearAllPriority
//
// Description:
// This function removes all messages from the priority message area.
//
function clearAllPriority()
global PERMANENT_MESSAGES
i = PERMANENT_MESSAGES.size() - 1
do while i >= 0
clearMessagePermanent(PERMANENT_MESSAGES[i])
i = i -1
end
return 0
// Function: clearAllPriority
//
// Description:
// This function removes all messages from the priority message area.
//
function clearAllPriority()
global PERMANENT_MESSAGES
i = PERMANENT_MESSAGES.size() - 1
do while i >= 0
clearMessagePermanent(PERMANENT_MESSAGES[i])
i = i -1
end
return 0
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*