eventmonitor Command

The eventmonitor command supports the ability to track events for business objects and relationships.

This page discusses:

User Level

System Administrator

Add Eventmonitor

Event monitors are defined using the Add Eventmonitor command

add eventmonitor NAME [ADD_ITEM {ADD_ITEM}];
ADD_ITEM defines the events to be monitored. The add eventmonitor clauses are:
EVENT|FILTER
description VALUE
property NAME [value STRING]
property NAME to ADMIN [value STRING]
FILTER:
 | filter vault [include | exclude] VAULT_NAME{,VAULT_NAME}              |
  | filter businesstype [include | exclude] BUSINESS_TYPE{,BUSINESS_TYPE} |
  | filter relationshiptype [include | exclude] REL_TYPE{,REL_TYPE}       |
  | filter admin [include | exclude] ADMIN_FILTER_ITEM {ADMIN_FILTER_ITEM}|
 

where ADMIN_FILTER_ITEM is:

kind ADMIN_TYPE [pattern NAME_PATTERN{,NAME_PATTERN}]
Note: If the name of admin type matches both include and exclude filters, the exclude filter supersedes the include filter. For example, for the code,
add eventmonitor em1 event admin all 
filter admin include kind set pattern my*
filter admin exclude kind set pattern myP*;
Events of type “myAssemblySet” are generated because the name only matches include filter and events of type “myPartSet” are not generated because the name matches both include and exclude filters.

where ADMIN_TYPE is,

    | attribute    |
    | association  |
    | channel      |
    | command      |
    | cue          |
    | customevent  |
    | dataobject   |
    | dimension    |
    | expression   |
    | filter       |
    | form         |
    | format       |
    | group        |
    | index        |
    | inquiry      |
    | interface    |
    | linktype     |
    | menu         |
    | package      |
    | page         |
    | pathtype     |
    | person       |
    | policy       |
    | portal       |
    | program      |
    | query        |
    | relationship |
    | resource     |
    | role         |
    | rule         |
    | set          |
    | table        |
    | tool         |
    | type         |
    | uniquekey    |
    | webreport    |

FILTER 
derived EVENTMONITOR 
!hidden nothidden 
logbusreltypeon 
logbusreltypeoff 
[[!|not]logov] 
[abstract] 
[enable|disable] 
EVENT is:
event businessobject add
event businessobject delete
event businessobject bestsofar
event businessobject custom
event businessobject modify
event businessobject all
event relationship add
event relationship delete
event relationship bestsofar
event relationship custom
event relationship modify
event relationship modifyfrom
event relationship modifyto
event relationship modifytype
event relationship all
event admin add
event admin delete
event admin modify
event transaction commit
event businessobject checkin 
event businessobject sync 
event businessobject purge 
event admin rename 
event admin all
event transaction all 
event flattablerow add 
event flattablerow delete 
event flattablerow modify 
event flattablerow purge 
event flattablerow checkin 
event flattablerow deletefile 
event mibadmin add 
event mibadmin modify 
event mibadmin delete 
event mibadmin rename 
event mibadmin all 
event mibcontent reserve 
event mibcontent unreserve 
event mibcontent all

Check Eventmonitor

Use this syntax to list the events you can include in an event monitor as shown in the Event list above.

check eventmonitor;

Copy Eventmonitor

You can copy the events from one event monitor to another event monitor

copy eventmonitor SRC_NAME DST_NAME [MOD_ITEM {MOD_ITEM}];
  • SRC_NAME is the source event monitor (copying from this event monitor)
  • DST_NAME is the destination event monitor (copying to this event monitor)
  • MOD_ITEM is an item listed in Modify Eventmonitor.

Log Eventmonitor

You can use the Log Eventmonitor command to log an event other than the ones listed in Add Eventmonitor.

log eventmonitor NAME PHYSICAL_ID LOG_EVENT;
  • NAME is the name of the event monitor
  • PHYSICAL_ID is the physical ID of the business object or relationship
  • LOG_EVENT is one of these:
    event | businessobject | custom
          |relationship    |

Modify Eventmonitor

Use the Modify Eventmonitor command to change the definition of an existing event monitor.

modify eventmonitor NAME [MOD_ITEM {MOD_ITEM}];
  • NAME is the name of the event monitor you want to modify.
  • MOD_ITEM is the type of modification you want to make. Each is specified in a modify clause, as listed in the following table. You only need to specify the fields to be modified.
    MOD_ITEM Specifies
    add EVENT|FILTER Adds the specified event (listed in Add Eventmonitor) to the event monitor.
    remove EVENT|FILTER Removes the specified event from the event monitor.
    description VALUE Replaces and existing description for the event monitor with the text in VALUE.
    add property NAME [to ADMIN] [value STRING] The named property is added to the event monitor with any specified value.
    remove property NAME [to ADMIN] The named property is removed from the event monitor.
    !hidden | nothidden
    logbusreltypeon 
    logbusreltypeoff 
    [[!|not]logov] 
    abstract 
    derived EVENTMONITOR 
    remove derived 
    enable|disable

Clear Eventmonitor

You can clear entries in an event monitor.

clear eventmonitor NAME [VAULT_PATTERN] [EVENT];
Important:
  • clear eventmonitor Parent has no effect on abstract monitors
  • clear eventmonitor Child clears all given events for the child only.
  • NAME is the name of the event monitor to be cleared.
  • VAULT_PATTERN restricts the events being cleared to the matching vaults.
  • EVENT defines which event to clear from the event monitor. If not specified, all events are cleared.

Enable/Disable Eventmonitor

You can enable or disable only derived eventmonitors. Abstract eventmonitor cannot be enabled.

enable eventmonitor NAME;
or
modify eventmonitor EventMonitor enable;
disable eventmonitor NAME;
or
modify eventmonitor EventMonitor disable;
NAME is the name of the event monitor to be enabled.
Important:
  • clear eventmonitor Parent has no effect on abstract monitors
  • clear eventmonitor Child clears all given events for the child only.
  • Disabled eventmonitors do not log events.