cc/td/doc/product/rtrmgmt/info_ctr/1_1
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Automation

Automation

This chapter describes the Automation system in Cisco Info Center, how to set it up, and how to use it.

This chapter includes the following sections:

Introduction

Automation is a mechanism that allows you to search for a condition and then perform an action automatically when the condition is met.

Automation can be used to manage the large numbers of events received from the Cisco Info Server. For example, Automation can delete all events from the system that have a severity of clear and that have been in the system for longer than a specific period of time.

You can also use Automation to change event data or run an external command when certain events occur in the Cisco Info Server. For example, when a critical event occurs in a network, you can use Automation to call a person after a specific period of time.

Two sets of information exist inside an Cisco Info Server configured to do Automation:

The Automation Builder tool allows you to create triggers and actions using Cisco Info Server SQL.

Cisco Info Server SQL

Within Cisco Info Center, SQL is used to control the various Automation mechanisms. SQL is a language for manipulating and extracting information from databases. The Cisco Info Server SQL is a sub-set of the full SQL.

For more information and a full command reference, see Section, "Cisco Info Server SQL", in Appendix A.

Within the Cisco Cisco Info Server, a database called alerts exists. This database contains the status table. This table contains the current event information in the Cisco Info Server. The fields contained within this database are what you view in the Event List.

Triggers

A trigger is a mechanism for detecting when an Automation action should be activated. Triggers use a filter to interrogate the alerts.status table. When events match that filter, the associated Automation action is activated.

When any event matches the filter, the trigger is said to be primed. See Figure 5-1.


Figure 5-1: Triggers

Links to Actions

Each trigger can have links to two types of actions:

Types of Triggers

Four types of triggers exist. The trigger type is defined by the way it calls the action. The following list shows the four types of triggers:

These trigger types are described in detail in Section, "Types of Automation Triggers", in Appendix C.

Actions

Actions can consist of a data effect and/or an external effect. Actions can be called by a trigger once or many times, depending upon the trigger's execution mode.

When an action is called, it has available to it all the fields from the event being used to call it. They may be substituted into the effects by referring to them as @fieldname where fieldname is the name of a field in an alert record.

The available fields are:

Additional fields may be available when the Cisco Info Server has had fields added to it.

Data Effects

Data effects consist of a Cisco Info Server SQL statement or statements, which manipulate the date held in the Cisco Info Server tables.

External Effects

External effects consist of UNIX commands or an external application.

Automation Builder

The Automation Builder is used to create triggers and the links to actions.

Starting the Automation Builder

The recommended method of starting the Automation Builder, is to click on the Automation button on the Conductor. It can also be run from the command line as:

host% $OMNIHOME/bin/nco_auto

The Automation Display

The Automation window comprises a menu bar, a special scrolled window, and a Status line at the bottom, as shown in Figure 5-2.


Figure 5-2:
Automation Window

The scrollable area has two vertical scrollbars. There are two columns of icons: one set representing triggers and the other representing actions.

The left hand scrollbar scrolls the triggers and the right hand scrollbar scrolls the actions. This scrolling takes place independently of the other column of icons.

When a trigger icon is shown grayed out, the trigger is currently inactive.

Creating a Trigger

To create a new trigger, select the Create menu's Trigger option. The Automation Trigger window is displayed. The following sections describe how to specify the details. Note, the details you specify become active only when you select the Active option.

Specifying the Condition

Figure 5-3 shows the Automation Trigger window. The Condition tab is displayed by default.


Figure 5-3:
Automation Trigger Window


    1. Specify the name of the trigger in the Name field. The name appears under its icon in the Automation window.

    2. Specify an SQL statement in the Condition field or drag and drop a filter from the Filter Builder. The following example shows how an SQL statement begins:

select * from alerts.status where ...
 

    3. Specify a value in the Sample Rate field to determine how often the trigger should be checked. The value is rounded up to the nearest five seconds when in use. With a timed sample rate and a delayed trigger, the threshold is the number of sample intervals evaluated. Therefore, when the sample rate is 20 and the threshold is 5, the trigger is evaluated every 20 seconds, and start the trigger after 100 seconds. When the sample rate is 0, the trigger is a real- time trigger. In this case, the trigger is evaluated on every update to the Cisco Info Server. The updates may come in batches or one at a time, and so there is no relation between time and threshold.

Adding Trigger Settings

To add settings to the trigger, click on the Settings tab in the Automation Trigger window. Figure 5-4 shows the trigger settings


Figure 5-4: Trigger Settings


    1. Select the trigger type:

    2. Select the execution mode:

    3. In the Ascent Action field, specify the name of an action to be executed on the upward edge of an edge trigger or while the condition exists on a level trigger.

    4. In the Descent Action field, specify the name of the action to be executed on the downward edge of an edge trigger. A descent action is never called for a level trigger. Either or both action fields may be left empty.

Adding Comments

To add comments to the trigger, click on the Comments tab in the Automation Trigger window. Figure 5-5 shows the comments field.


Figure 5-5: Trigger Comments


Testing the Trigger

When you click on the Test button, the SQL statement is used to create a filter. This filter is then sent to the Event List and a window opens showing the events that currently match the condition. The window is opened in the Event List's transient mode; select Keep Window in the new window to retain the window in the Event List. When an Event List is not running, one is started automatically.

When the trigger is applied or tested, the SQL syntax is checked automatically for errors. When any errors appear, an error dialog is displayed detailing the nature of the error. When the error is in the syntax, a Parse Error message is displayed. You may then return and correct the error.

Activating the Trigger

To activate the trigger:

    1. Click on the Active toggle option. When it is not enabled, this trigger is not used when Automation is evaluating triggers.

    2. Select Apply to write all the changes to the trigger into the system. The SQL in the condition is also checked. When the SQL is not correct, an error message appears. You must correct the errors before you can proceed.

    3. Select Close to remove the window from the display.

Note, you can also activate the trigger from the Automation window. See Figure 5-5. Click on the right mouse button on the trigger, then select the Active option.

To revert the contents to how they were before the window was opened or last applied, select the Undo option.

Creating an Action

To create a new action, select the Create menu's Action option or click on the Edit button in the Automation Action window. The following sections describe how to specify the details. Note, the details you specify become active only when you select the Enabled option. Three tabs exist in the Automation Action window:

Data Effect

Figure 5-6 shows the Automation Action window.


Figure 5-6:
Automation Action Window


    1. Specify a unique name for the action in the Name field.

    2. Specify the Cisco Info Server SQL statements in the Data Effect field. When the SQL for the action is executed, the commands update the entire Cisco Info Server database, not just the records selected in the trigger.

External Effect

To add an external effect to the action, click on the External Effect tab in the Automation Action window. Figure 5-7 shows the external effects.


Figure 5-7: Action External Effects


    1. Specify the full path name of the executable to be run in the Executable field, for example: (/usr/application/bin/<program_name>). The command can have environment variables referenced in its definition, for example:

    2. Specify the arguments passed to this executable program when it is run in the Arguments field. The arguments can refer to the @ variables as in the data effect, for example:

    3. Specify the name of the machine on which the executable should be run in the Host field. The host must have a process control agent running on it for this to work. The process control agent need not be managing Cisco Info Center components and can be placed on a system specifically so Automation's external effects can be carried out on that system.

    4. Specify the UNIX user ID with which to run this executable in the Effective User field.

    5. Click on the Apply button to write all the changes to the action into the system. The Data Effect is checked for syntax and semantic errors and when any are present, an error window appears. Alternatively, click on the Close button to remove the window from the display. When you click on the Undo button, the contents reverts to how they were when the window was opened or last applied.

Adding Comments

To add comments to the action, click on the Comments tab on the Automation Action window.

Activating the Action

To activate the action:

    1. Click on the Enabled toggle option. When it is not enabled, this action is not used.

    2. Click on the Apply button to write all the changes to the action into the system. The SQL in the condition is also checked. When the SQL is not correct, an error message appears. You must correct the errors before you can proceed.

    3. Click on the Close button to remove the window from the display.

To revert the contents to how they were before the window was opened or last applied, click on the Undo button.

Viewing the Relationships Between Triggers and Actions

To display the relationship between a trigger and action, click on the trigger icon in the Automation Builder. A yellow arrow points to the ascent action of the trigger. A blue arrow points to the descent action.

To display which triggers use an action, click on an Action icon. Yellow arrows point to the triggers that use the action as their ascent action. Blue arrows point to triggers which use the action as their descent action.

Modifying an Existing Action or Trigger

To display the trigger definition or action definition window as appropriate, double-click on either a Trigger or Action icon. The window is displayed with all the settings for the trigger or action already filled in. You can edit these in the same way as when you create a trigger or an action.

Associating a Trigger and an Action

As well as being able to specify the name of the ascent and descent actions in the trigger editing window, you can graphically associate triggers and actions. To associate a trigger to an action:

    1. Press the Shift key.

    2. Click on the mouse button on a Trigger icon.

    3. Drag the mouse pointer over an Action icon. A dashed arrow line appears across the display.

    4. Release the mouse button to set that action as the ascent action of the trigger.

To set the action as a descent action, press the Control key and click on the mouse button over a trigger icon, then drag the pointer over an action icon. Release the mouse button to set that action as the descent action of the trigger.

This also works for action to trigger. Press the Shift key and click on the mouse button on an action, then drag the mouse pointer over a trigger. Release the mouse button to set that trigger to use the action as its ascent action. The Control key is used in the same way to set the descent action.

Popup Menus

Popup menus are available when you click on the right mouse button over a Trigger icon, an Action icon or the scrolled window background.

When you click on the right mouse button over a trigger or action, the popup menus give you the option to delete or edit the trigger or action. The edit option is functionally the same as when you double-click on the icon.

Editing the Trigger

To edit the Automation trigger, select the Edit option from the popup menu.

Copying the Trigger

To copy the Automation trigger, select the Copy option from the popup menu. A window is displayed containing the name of the trigger that you want to copy. Specify a name for the copy then click on the OK button. The trigger is copied and the Automation Trigger window appears for you to edit the trigger.

Testing the Trigger

To test the trigger, select the Test option from the popup menu. This is the same as when you clicked the Test button in the Automation Trigger windows. It starts the Event List with a filter that duplicates the trigger definition. It allows you to see the events that would be returned by using that trigger.

Activating the Trigger

To activate the trigger, select the Active option from the popup menu. This is the same as when you select the Active option in the Automation Trigger window.

Clearing the Ascent Action

To clear the ascent action for the trigger, select the Clear Ascent Action option from the popup menu.

Clearing the Descent Action

To clear the descent action for the trigger, select the Clear Descent Action option from the popup menu.

Deleting the Trigger

To delete the trigger, select the Delete option from the popup menu.

Editing the Action

To edit the action, select the Edit option from the popup menu.

Copying the Action

To copy the action, select the Copy option from the popup menu. A window is displayed requesting a name for the copied action. Once a name is entered, the action is copied and the Action window is displayed with the copy of the action for editing.

Clearing the Triggers

To clear the action field of any triggers that refer to this action, select the Clear Triggers option from the popup menu.

Deleting the Action

To delete the action, select the Delete option from the popup menu.

Background Popup Menus

You can also click on the right mouse button on the window background to display three options.

To create a trigger, select the Create Trigger option from the popup menu. This opens the Automation Trigger window.

To create an action, select the Create Trigger option from the popup menu. This opens the Automation Action window.

To refresh the triggers and actions from the Automation engine, select the Refresh option from the popup menu.

Importing and Exporting Automation

Changes made to the Automation triggers and actions are automatically stored in the Cisco Info Server. To allow for the recording and reuse of triggers and actions, Import and Export options are available.

Exporting Automation

Select the File menu's Export option to display the Automation Export window.


Figure 5-8: Automation Export Window


The window contains the standard elements of a file selection window with the addition of two elements: the trigger/action display selector and the Export item selector.

The trigger/action display selector controls what is shown in the Export item selector. It is comprised of two check boxes: one selects the display of triggers, the other selects the display of actions.

The Export item selector allows you to select which triggers and actions are to be exported to the file. This is a multiple selection list; click on an item to select that item. Press the Control key and click on an item to add the item to the current selection. Shift-click on an item to select all the entries between the first selected item and the currently selected item.

The items are the names of the triggers and actions, each followed by either (T) for a trigger or (A) for an action.

Click on the OK button to export the currently selected items on the list to the file named in the Selection text field.

Importing Automation

Select the File menu's Import option to display the Automation Import window.


Figure 5-9: Importing Automation


Select the file to be imported. Note, when the imported file contains triggers or actions whose names match currently existing triggers or actions, the imported trigger or action is discarded. To import same named triggers, first delete the conflicting triggers and actions.

Cisco Info Center Automations

This section describes the Automations provided with Cisco Info Center.

CleanDetailsTable

This is a standard Automation which removes entries from the Details table for which the corresponding entry in the status table no longer exists. This uses the Identifier field for the query into the Status table. It runs every ten minutes, and should not be deleted nor made inactive.

Trigger Condition

delete from alerts.details where Identifier not in ((select Identifier from alerts.status));

Action

None

Status

Active

Sample Rate

600 seconds

CleanJournalsTable

This is a standard Automation which removes entries from the Journal table for which the corresponding entry in the status table no longer exists. This uses the Serial field for the query into the Status table. It runs every ten minutes, and should not be deleted nor made inactive.

Trigger Condition

delete from alerts.jounral where Identifier not in ((select Serial from alerts.status));

Action

None

Status

Active

Sample Rate

600 seconds

ReAwaken ObjectStatus

This Automation is used to reset the ObjectStatus field on reawakening a cleared event to its original ObjectStatus. The Generic Clear Automation and Type 3/ Type 4 Automation sets the ObjectStatus to clear (4). When this event occurs again, the event is modified with its original status using the Cisco Info Server properties. As the Cisco Info Server properties does not reawaken any other field, this Automation updates the event with the value in the OldObjectStatus field.

Trigger Condition

select * from alerts.status where Severity <> 0 and ObjectStatus = 4

Action UpDate ObjectStatus

update alerts.status via @Identifier set ObjectStatus = @OldObjectStatus;

Status

InActive

Sample Rate

7 seconds

Detect Endpoint Deleted

This Automation detects events describing the deletion of end points (endpoint.ATM, endpoint.FR, endpoint.CE) and calls an Action to clear any related end point events or connection events that occurred before the deleted end point event, where the related event is not in a cleared state and is from the same NEName, and where PSAP, DSAP, and Slot are the same as the deleted end point. This does not delete the deleted end point event returned in the trigger.

Trigger Condition

select * from alerts.status where ObjectType like 'endpoint' and Summary like 'Deleted';

Action

update alerts.status set Severity = 0, ObjectStatus = 4, class = 1070 where Serial <> @Serial and ObjectStatus <> 4 and LastOccurrence <= @LastOccurrence and NEName = '@NEName' and PSAP = '@PSAP' and DSAP = '@DSAP' and Slot = '@Slot' and ((ObjectType = '@ObjectType') or (ObjectType = 'connection'))

Status

InActive

Sample Rate

6 seconds

Detect Line Deactivated

This Automation detects events describing the deactivation of line events (line.access and line.trunk) and calls an Action to clear any related line events that occurred before the deleted line event, where the related event is not in a cleared state, is from the same NEName, and where PSAP and Slot are the same as the deactivated line. This does not delete the deactivated line event returned in the trigger.

Trigger Condition

select * from alerts.status where ((ObjectType = 'line.access') or (ObjectType = `line.trunk))' and Summary like 'Deactivated';

Action

update alerts.status set Severity = 0, ObjectStatus = 4, class = 1070 where Serial <> @Serial and ObjectStatus <> 4 and LastOccurrence <= @LastOccurrence and NEName = '@NEName' and PSAP = '@PSAP' and Slot = '@Slot' and (ObjectType = '@ObjectType');

Status

InActive

Sample Rate

6 seconds

Detect Card Removed

This Automation detects events describing the removal of cards and calls an Action to clear any related card events that occurred before the removed card event, where the related event is not in a cleared state, and where NEName and Slot are the same as the removed card. It does not delete the removed card event returned in the trigger.

Trigger Condition

select * from alerts.status where ObjectType = 'card' and Summary like '[rR]emoved';

Action

update alerts.status set Severity = 0, ObjectStatus = 4, class = 1070 where ObjectStatus <> 4 and Serial <> @Serial and LastOccurrence <= @LastOccurrence and NEName = '@NEName' and ObjectType = 'card' and Slot = '@Slot';

Status

InActive

Sample Rate

7 seconds

Detect Node Removed

This Automation detects events describing the removal of nodes and calls an Action to clear any related node events that occurred before the removed node event, where the related event is not in a cleared state, and where the NEName and Slot are the same as the removed node. It does not delete the removed node event returned in the trigger.

Trigger Condition

select * from alerts.status where ObjectType = 'NE' and Summary like 'removed from network';

Action

update alerts.status set Severity = 0, ObjectStatus = 4, class = 1000 where Serial <> @Serial and ObjectStatus <> 4 and Class <> 1000 and LastOccurrence <= @LastOccurrence and NEName = '@NEName' and ObjectType = 'NE';

Status

InActive

Sample Rate

7 seconds

Detect Port Deactivated

This Automation detects events describing the deactivation of ports and calls an Action to clear any related port events that occurred before the deactivated port event, where the related event is not in a cleared state, and where the NEName, Slot, and PSAP are the same as the deactivated port. It does not delete the deactivated port event returned in the trigger.

Trigger Condition

select * from alerts.status where ObjectType like 'port' and (Summary like 'Deactivated') or (Summary like 'deleted';

Action

update alerts.status set Severity = 0, ObjectStatus = 4, class = 1070 where ObjectStatus <> 4 and Serial <> @Serial and LastOccurrence <= @LastOccurrence and NEName = '@NEName' and PSAP = `@PSAP' and Slot = '@Slot' and ObjectType = `@ObjectType';

Status

InActive

Sample Rate

8 seconds

Detect ConMon Up

This Automation detects events generated internally, notifying the connection of a remote Mediator to the Info Sever and clears the disconnection events from that same remote Mediator that occurred before the reconnect. This Automation deletes the connection message.

Trigger Condition

delete from alerts.status where (Manager = `ConnectionMonitor') and (Summary like `A probe process running .* has connected');

Action

update alerts.status set Severity = 0 where Manager = `@Manager' and (Summary like `A probe process running .* has disconnected');

Status

InActive

Sample Rate

15 seconds

Delete 24hrs Old

This Automation unconditionally deletes all events that have not been updated for a period of twenty four hours.

Trigger Condition

delete from alerts.status where (StateChange < getdate - 86400);

Action

None

Status

InActive

Sample Rate

920 seconds

Detect No Lookup

This Automation detects events that do not have the NEAddress and NEType fields populated by the Mediator and that run an external action on the Cisco SV+ machine.

The external action re-generates the look-up file for the Cisco SV+ Mediators and also updates the alerts.status databases for the events returned by the trigger with the updated NEAddress and NEType.

Trigger Condition

select * from alerts.status '(Manager in ('SV+','NNM')) and ((NEName not like 'NETWORK') and (((NEAddress = '') and (NEType = 999)) or (((NEAddress <> '') and (NEType = 999)) or (((NEAddress = '') or (NEAddress = '16.0.0.0')) and (NEType in (1,2,3,4,5,6,11,12,0))))))';

Executable

/opt/Omnibus/utils/generate_lookups/generate_lookups.auto

Host

<Cisco_SV+_hostname>

Effective User

0

Status

Active

Sample Rate

20 seconds

Delete Clears (30)

This Automation deletes all events in the cleared state (Status = 0) and have not been updated for the last 30 minutes.

Trigger Condition

delete from alerts.status where (Severity = 0) and (StateChange < getdate - 1800);

Action

None

Status

InActive

Sample Rate

241 seconds

FlashingAlarm

This Automation sets the Event List to flash for uncleared events that have not been acknowledged.

Trigger Condition

update alerts.status set Flash = 1 where (Acknowledged = 0) and ((Severity > 1) and (Flash = 0))

Action

None

Status

InActive

Sample Rate

4 seconds

FlashingOff

This Automation sets the Event List to stop flashing for uncleared events that have not been acknowledged and were set to flash as a result of the above Automation.

Trigger Condition

update alerts.status set Flash = 0 where (Acknowledged = 1) and ((Severity > 1) and (Flash = 1))

Action

None

Status

InActive

Sample Rate

3 seconds

Generic Clear

Within Cisco Info Center Automations, the most frequently used type of Automation is one that clears a negative event upon receipt of a related positive event. This type of Automation is typically used for clearing a Link Fail event when a corresponding Link OK event is received. An example Automation is:

Trigger Condition

Select * from alerts.status where Summary like `Link Up';

Action Data Effect

Update alerts.status set Severity = 0 where Summary like `Link Down' and Node = `@Node' and AlertKey = `@AlertKey' and LastOccurrence <= @LastOccurrence;

This Automation detects a Link Up event and clears any Link Down event which came from the same node, when it was matched on the AlertKey field, and was older. There should be a similar Automation detecting Node Up and clearing Node Down. This situation can be applied to many different events, resulting in many different Automations to handle them. All of these Automations require processing resources from the Cisco Info Server to find events which require action, execute Automations, and update clients.

An alternative method of resolving this problem would be to create one Automation to recognize many different types of association. This is possible as the only component that differs between Automations is often the text or fault code that is being searched for. This requires a generic way of looking at certain faults.

Introduction to a Generic Approach

By taking the majority of standard up/down Automations from different management systems, it is possible to create a generic way of treating them. The first step in this approach is to analyze an event record and extract the following information:

This information could be constructed and used in a model as follows:

Is This a Problem or a Resolution?

Use the standard field Type. From this we could set:

1 = Problem. These events are cleared later by another event.

2 = Resolution. These events clear matching Type=1 events.

From Which Network Element did it Originate?

To do this we need to find a corresponding and opposite event. Use the following two standard fields:

What Other Events is this Event Associated With?

Use the standard field AlertGroup. This should be set so the values match for other events which clear or will be cleared by this event. For example, Link Up, Link Down, and Link Protocol Fail might all have an AlertGroup of Link Warnings.

Fields Used

When the fault related information has been gathered, a small number of Cisco Info Server fields are used within the Automations:

This field can have one of two values, as follows:
This field should be populated with the alert identifier. The following is an example for the Cisco SV+ Mediators:

Table 5-1: Cisco Info Server Fields Used with Automations
Actual Event Type Alert Group Value Type Value

ASMTempAboveNormal

ASMTempAboveNormal

1

ASMTemperature Normal

ASMTempAboveNormal

2

AXISUserLogin

AXISUserLoginLogout

1

AXISUserLogout

AXISUserLoginLogout

2

shelfLossLmiAlarmTrap

shelfLossLmiAlarmClear

1

shelfLossLmiAlarmClearTrap

shelfLossLmiAlarmClear

2

@NEName, @AlertKey

These two fields are used to uniquely identify an Enterprise element.

@LastOccurrence

This standard time stamp field is used to ensure that a problem event is not cleared by a resolution event which occurred before the problem event itself.

The Automations

With the fields set, Automations can now correlate the problems and resolutions independently of the source of the events. The Automation can also expire events based on an expiration time in the Type field. The following example shows the set of Automations used to achieve this functionality.
Trigger Action Purpose

GenericClear

GenericClear

Detects and deletes events of @Type = 2 (resolutions), then clears (sets severity to 0) any associated problems
(@Type = 1) which are older and have matching Node, AlertKey, and AlertGroup entries.

Generic Clear

The generic clear Automation executes in real time. As this Automation substantially reduces the overall numbers of Automations required, real time processing overhead can be incurred.

Trigger Condition

select * from alerts.status where Type = 2

Action

update alerts.status set Severity = 0, BitMapField ='@BitMapField', ObjectStatus = 4 where Type = 1 and NEName = `@NEName' and AlertGroup = `@AlertGroup' and AlertKey = `@AlertKey' and LastOccurrence <= @LastOccurrence;

delete from alerts.status via `@Identifier';

Status

InActive

Sample Rate

3 seconds

Type 3/Type 4 Automations

The generic clear Automation above is applicable to events that have a resolution and fault state. For events that have a pair of associated events, but not a case of fault and resolutions, the Type 3/Type 4 Automations are used.

These Automations are applicable to events that indicate the latest state of the card.

For example:

In the above sequence, the final state is the Card Removal. This event should clear the Card Insert event, indicating the latest status of the card action.

Now, when the card is inserted, the current state of the Card is Inserted and this new event should clear the Card Removed event.

In the Generic Clear, the Resolution clears the Fault event, while in the above example neither of the events are Resolution or Fault Cases. These events indicate the current state of the Object and the Automation provides a toggle effect.

The Automation uses the same fields as the Generic Clears.

The AlertGroup field is populated with the Alert identifier as in the Generic Clears. The difference is in the Type value. Following is an example for the Cisco SV+ Mediators:


Table 5-2: Sample AlertGroup Values for Cisco SV+ Mediators
Actual Event Type Alert Group Value Type Value

FunctionalModuleRemove

FuncModInsertRemove

3

FunctionalModuleInsert

FuncModInsertRemove

4

Switch Card Removed

CardInserted

3

Switch Card Inserted

CardInserted

4

Endpoint Added

endpointdeleted

3

Endpoint Deleted

endpointdeleted

4

Select Type 3

This Automation selects all events that have the Type = 3 and Grade <> 5, and deletes the corresponding Type 4 event. The action also updates the Grade = 5 for the Type 3 event selected in the trigger. This has been done so the Automation does not keep executing the trigger once this condition has been satisfied.

Trigger Condition

select * from alerts.status where Type = 3 and Grade <> 5

Action

delete from alerts.status where Type = 4 and LastOccurrence <= @LastOccurrence and AlertGroup = `@AlertGroup' and NEName = `@NEName' and AlertKey = `@AlertKey';

update alerts.status via `@Identifier'set Grade = 5;

Status

InActive

Sample Rate

5 seconds

Select Type 4

This Automation selects all events that have the Type = 4 and Grade <> 5, and deletes the corresponding Type 3 event. The action also updates the Grade = 5 for the Type 4 event selected in the trigger. This has been done so the Automation does not keep executing the trigger once this condition has been satisfied.

Trigger Condition

select * from alerts.status where Type = 4 and Grade <> 5

Action

delete from alerts.status where Type = 3 and LastOccurrence <= @LastOccurrence and AlertGroup = `@AlertGroup' and NEName = `@NEName' and AlertKey = `@AlertKey';

update alerts.status via `@Identifier'set Grade = 5;

Status

InActive

Sample Rate

5 seconds


hometocprevnextglossaryfeedbacksearchhelp
Posted: Thu Apr 1 10:59:45 PST 1999
Copyright 1989-1999©Cisco Systems Inc.