Hitachi

JP1 Version 12 JP1/Integrated Management 2 - 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 might 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.

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 might 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.

The following table the regular expressions that can be used in JP1/IM functions.

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

Function

Description

Windows

Linux

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 (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 (POSIX1003.2)

--

Define system nodes

Regular expressions can be used to specify hosts in an IM configuration, hosts belonging to a system such as registration agents of linked products, and object root nodes belonging to either a system or a subsystem.

The types of regular expressions are fixed.

Extended regular expressions (XPG4-compliant)

--

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 (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 (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 (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 (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)

--

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 (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 (POSIX1003.2)

--

Display message change function

Regular expressions can be used in event conditions for JP1 events whose display message is to be changed.

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

Extended regular expressions (XPG4-compliant)

--

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 (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 (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 (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 (POSIX1003.2)

--

Intelligent Integrated Management Base

Regular expressions can be used in the definitions that are used by the Intelligent Integrated Management Base.

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

Extended regular expressions (XPG4-compliant)

--

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 Chapter 2. Definition Files in the manual JP1/Integrated Management 2 - Manager Command, Definition File and API 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 JP1/Base User's Guide.