[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 3

mknotify Command

Purpose

Adds a notify method definition to the Notify object class.

Syntax

mknotify -n NotifyName -m NotifyMethod

Description

The mknotify command adds a notify method definition to the Notify object class. When a notify method is defined for both a subsystem name and a group name, the subsystem name takes precedence. For example, if the subsystem notify method is executed by the System Resources Controller (SRC), the group notify method is not performed.

The SRC places the name of the unsuccessful subsystem as the first argument to the method and the name of the unsuccessful subsystem group as the second argument.

Flags

-m NotifyMethod Specifies an absolute path to an executable program that starts when the subsystem stops abnormally.
-n NotifyName Specifies the subsystem or group name to which the notify method belongs. The NotifyName variable must exist as either a valid subsystem name or a valid group name in the Subsystem object class. The mknotify command is unsuccessful if the NotifyName variable already exists in the Notify object class.

Examples

  1. To add a notify method for the srctest subsystem, enter:
    mknotify -n srctest -m /usr/lpp/srctest/failure
    This adds a subsystem notify method for the srctest subsystem, with a notify method designated in the /usr/lpp/srctest/failure file.
  2. To add a notify method for the tcpip group, enter:
    mknotify -n tcpip -m /usr/lpp/tcpip/tcpfailure
    This adds a group notify method for the tcpip group, with a notify method designated in the /usr/lpp/tcpip/tcpfailure file.

Files

/etc/objrepos/SRCsubsys Specifies the SRC Subsystem Configuration object class.
/etc/objrepos/SRCnotify Specifies the SRC Notify Method object class.

Related Information

The rmnotify command, lssrc command, mkssys command, rmssys command.

System Resource Controller Overview in the AIX Version 4.3 System Management Guide: Operating System and Devices

System Resource Controller (SRC) Overview for Programmers in the in AIX General Programming Concepts: Writing and Debugging Programs.

Defining Your Subsystem to the SRC in the in AIX General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Contents | Glossary | Home | Search ]