Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Integrated Management - Manager Overview and System Design Guide


G.1 Types of regular expressions

The regular expressions available in JP1/IM differ according to the operating system and the function in which the regular expression is interpreted. This is because the various JP1/IM functions and operating systems support different types of regular expressions. These differences mean differences in the syntax of the available regular expressions. For details, see G.2 Syntax of regular expressions.

The types of regular expressions are as follows:

JP1-specific regular expressions (Windows)

Special characters that can be used as regular expressions, defined specifically in JP1.

You can change the JP1/IM and JP1/Base settings to operate with XPG4-compliant extended regular expressions, but this may result in unintended behavior. You should therefore review the defined conditional expressions and redefine them to comply with the extended regular expressions.

XPG4-compliant extended regular expressions (Windows)

Regular expressions (special characters) additional to the preset JP1-specific regular expressions.

Functions in which the use of regular expressions is supported from version 7 operate according to the syntax of these regular expressions.

XPG4 basic regular expressions (Solaris, AIX)

XPG4 basic regular expressions provided by UNIX (for details, see the OS regexp(5)).

Care is required as the range of basic regular expressions you can use is dependent on the computer model and OS.

You can change the JP1/Base settings to operate with XPG4-compliant extended regular expressions, but this may result in unintended behavior. You should therefore review the existing settings and redefine them to comply with the extended regular expressions.

XPG4 extended regular expressions (Solaris, AIX)

XPG4 extended regular expressions provided by UNIX (for details, see the OS regexp(5)). These are basically XPG4 basic regular expressions plus a number of additional regular expressions (special characters), but with some XPG4 basic regular expressions deleted.

Care is required as the range of extended regular expressions you can use is dependent on the computer model and OS.

The table below describes the functions in which regular expressions can be used and the types of regular expressions that each function supports.

POSIX1003.2 basic regular expressions (Linux)

POSIX1003.2 basic regular expressions provided by Linux (for details, see the OS regex). Care is required as the range of basic regular expressions you can use is dependent on the OS. You can change the JP1/Base settings to operate with POSIX1003.2 extended regular expressions, but this may result in unintended behavior. You should therefore review the existing settings and redefine them to comply with the extended regular expressions.

POSIX1003.2 extended regular expressions (Linux)

POSIX1003.2 extended regular expressions provided by Linux (for details, see the OS regexp(7)). Care is required as the range of extended regular expressions you can use is dependent on the OS.

Table G‒1: Regular expressions that can be used in JP1/IM functions

Function

Description

Windows

Solaris, AIX

Linux

Default

Can be set

Default

Can be set

Default

Can be set

Search for events from JP1/IM - View

Regular expressions can be used in JP1 event search conditions.

The types of regular expressions that can be used depend on the JP1/Base settings on the target host.

JP1-specific regular expressions

Extended regular expressions (XPG4-compliant)

Basic regular expressions (XPG4)

Extended regular expressions (XPG4)

Basic regular expressions (POSIX1003.2)

Extended regular expressions (POSIX1003.2)

Search for monitoring nodes from JP1/IM - View

Regular expressions can be used in monitoring node search conditions.

The types of regular expressions are fixed.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Display event guide information

Regular expressions can be used in conditions for displaying event guide information.

The types of regular expressions are fixed.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Change monitoring node status and display guide information

Regular expressions can be used in the common conditions and individual conditions of monitoring node status change conditions, and in conditions for displaying guide information.

The types of regular expressions are fixed.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Automated actions

Regular expressions can be used in conditions for executing automated actions.

In Windows, the types of regular expressions that can be used depend on the settings in the JP1/IM - Manager that executes the automated action. (Fixed in UNIX.)

Extended regular expressions (XPG4-compliant)

JP1-specific regular expressions

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Issue correlation events

Regular expressions can be used in the event attribute specified in a correlation event generation condition.

The types of regular expressions are fixed.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Filtering

  • Event receiver filter

  • Severe events filter

  • View filter

Regular expressions can be used in conditions for displaying JP1 events in the Event Console window.

The types of regular expressions are fixed in both Windows and UNIX.

Extended regular expressions (XPG4-compliant)

--

Basic regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

  • Event acquisition filter

  • Common exclusion-condition (basic mode)

Regular expressions can be used in conditions for JP1 event acquisition by JP1/IM - Manager from JP1/Base on the manager.

The types of regular expressions that can be used depend on the settings in JP1/Base on the manager.

JP1-specific regular expressions

Extended regular expressions (XPG4-compliant)

Basic regular expressions (XPG4)

Extended regular expressions (XPG4)

Basic regular expressions (POSIX1003.2)

Extended regular expressions (POSIX1003.2)

Severity changing

Regular expressions can be used in event conditions for which you change the severity levels using the severity changing function.

The types of regular expressions are fixed in both Windows and UNIX.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Common exclusion-condition (extended mode)

Regular expressions can be used in conditions for excluding events in common exclusion-condition (extended mode).

The types of regular expressions are fixed in both Windows and UNIX.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Event-source-host mapping

Regular expressions can be used when the event source host name is specified in the function corresponding to the Event source host name attribute.

The types of regular expressions are fixed in both Windows and UNIX.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Repeated event condition

Regular expressions can be used in the repeated event conditions specified for repeated-event monitoring suppression.

The types of regular expressions are fixed in both Windows and UNIX.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Remote monitoring

Regular expressions can be used in the log conditions that are converted into JP1 events by remote monitoring.

The types of regular expressions are fixed in both Windows and UNIX.

Extended regular expressions (XPG4-compliant)

--

Extended regular expressions (XPG4)

--

Extended regular expressions (POSIX1003.2)

--

Legend:

--: Cannot be changed because extended regular expressions are used by default.

As shown above, under the default settings, the types of regular expressions used in JP1/IM differ according to the function and operating system used. You need to be aware of these differences when using regular expressions.

If you prefer to use regular expressions transparently, you can change the settings and use extended regular expressions compliant with the XPG4 standard in Windows, or extended regular expressions according to XPG4 in UNIX. We recommend changing the settings because you can then use regular expressions without regard to OS-based or function-based differences in usage.

For details on JP1/IM settings, see Automated action environment definition file (action.conf.update) in 2. Definition Files in the manual Job Management Partner 1/Integrated Management - Manager Command and Definition File Reference.

For details on the JP1/Base functions that can use regular expressions, and the types of regular expressions used in JP1/Base, see the chapter on JP1/Base installation and setup in the Job Management Partner 1/Base User's Guide.