Previous Topic: oprcmd-Pass Command to Event Management ServiceNext Topic: oprcmd  (Windows only)


oprcmd (UNIX/Linux, z/OS)

oprcmd [-n node]
       [-c color]
       [-a attribute]
       [-s source]
       [-g category]
       {opreload|caistop|cmd|export variable=value|emexit exit=value|emexit status}
-n node

Directs the message to the identified node, which is one other than the node the user is on. If the node is not available, the message is sent to the local node.

-c color

The message displays on the system console in the identified color, which is other than the default. Supported colors:

Black (default), Red, Orange, Yellow, Green, Blue, Pink, and Purple

-a attribute

The message displays on the system console in the identified attribute, which is other than the default. Supported attributes:

DEFAULT

BLINK

REVERSE

Note: The attribute name is not case-sensitive.

-s source

Assigns the identified source to the message for purposes of message matching.

Note: The color name is not case-sensitive.

-g category

Assigns the identified category to the message for purposes of message matching.

opreload

Directs the Event Management daemon to refresh the active message record and message action lists with the definitions stored in the Enterprise Management database. All requests for automated message processing are queued until the refresh of the active message record and message action lists is complete.

caistop

Shuts down the Event Management daemon (equivalent to kill -15).

cmd

Specify the command request, up to 255 alphanumeric bytes.

Note: Since the oprcmd command is issued from the command line, the cmd string you specify is subject to evaluation by the shell you are executing. Therefore, embedded blanks, special characters, and quotes in the text string require special consideration. See your operating system documentation for the rules and guidelines regarding text strings.

export variablename=value

Dynamically changes the value of any environment variable. This operand is equivalent to the Korn shell command, export.

emexit exit=value

Sets the value of the enabling environment variable for the identified Event Management user exit (ON or OFF).

Exit Names

Environment Variable

User Exit Function Name

MSGPRE

EMEVTENV_MSGPRE

EmEvt_ExitMessagePre

MSGPOST

EMEVTENV_MSGPOST

EmEvt_ExitMessagePost

ACTPRE

EMEVTENV_ACTPRE

EmEvt_ExitActionPre

ACTPOST

EMEVTENV_ACTPOST

EmEvt_ExitActionPost

LOGPRE

EMEVTENV_LOGPRE

EmEvt_ExitLogPre

LOGPOST

EMEVTENV_LOGPOST

EmEvt_ExitLogPost

SYSINIT

EMEVTENV_SYSINIT

EmEvt_ExitSystemInit

SYSTERM

EMEVTENV_SYSTERM

EmEvt_ExitSystemTerm

emexit status

Causes the settings of all of the enabling environment variables for the Event Management user exits to be displayed on the system console.