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

Item Description
-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.

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

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

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