[Contents] [Prev] [Next] [Index] [Report an Error]

How Event Policies Work

An event policy is an if-then-else construct. It defines actions to be executed by the eventd process on receipt of an event. You can configure multiple policies to be processed for an event. The policies are executed in the order in which they appear in the configuration. For each policy, you can configure multiple actions. The actions are also executed in the order in which they appear in the configuration.

To view a list of the events that can be referenced in an event policy, issue the help syslog ? command:

user@host> help syslog ?

Possible completions:
<syslog-tag> System log tag
ACCT_ACCOUNTING_FERROR Error occurred during file processing
ACCT_ACCOUNTING_FOPEN_ERROR Open operation failed on file
...

You can filter the ouput of a search by using the pipe (|) symbol. The following example lists the filters that can be used with the pipe symbol:


user@host# help syslog | ?
Possible completions:
  count                Count occurrences
  display              Show additional kinds of information
  except               Show only text that does not match a pattern
  find                 Search for first occurrence of pattern
  hold                 Hold text without exiting the --More-- prompt
  last                 Display end of output only
  match                Show only text that matches a pattern
  no-more              Don't paginate output
  request              Make system-level requests
  resolve              Resolve IP addresses
  save                 Save output text to file
  trim                 Trim specified number of columns from start of line

For more information about using the pipe symbol, see the JUNOS CLI User Guide.

In response to events, the eventd process can correlate two or more events based on a policy, and execute the following actions:

For more information, see Configuring Event Policy.


[Contents] [Prev] [Next] [Index] [Report an Error]