IBM Books

Administration Guide

Understanding the Problem Management resource monitor daemon

The pmanrmd daemon is a resource monitor daemon that provides resource variables to Event Management services. When you install your SP system, a pmanrmd daemon is automatically configured on each node in a system partition. Additionally, there is a pmanrmd daemon running on the control workstation for each system partition in the SP system.

Controlling pmanrmd

The pmanrmd daemon is under the System Resource Controller (SRC). Only the following SRC commands are available for controlling the pmanrmd daemon:

No command is provided to refresh the pmanrmd daemon while it is running. To refresh the daemon, you must stop and start the daemon (using stopsrc and startsrc).

Creating resource monitors

The Problem Management subsystem provides sixteen resource variables, named through You can associate values with the provided resource variables and configure pmanrmd to supply the values that you associate to Event Management services.

Associating values with Problem Management resource variables

Two mechanisms are provided for associating values with the Problem Management resource variables:

  1. The pmanrminput command
  2. The pmanrmd.conf sample configuration file

The /usr/lpp/ssp/bin/pmanrminput command requires root authority to use. The command can be run from within scripts. It takes as arguments:

For example, if you have a server application running on node 10 and you sometimes want to tell users on nodes 1-9 to stop using the server application, you could use the Problem Management subsystem to accomplish this. Create a Problem Management subscription on nodes 1-9 to run the wall command to inform the users about the state of the server application:

pmandef -s ready_or_not \
-e '"READY"' \
-r 'X@0!="READY"' \
-c "wall Node 10 is ready" -C "wall Stop using node 10" -n 1-9

When the server application is ready for users, it uses the pmanrminput command to communicate its state to the Problem Management subsystem:

pmanrminput -s pman -a ""

The Problem Management subsystem passes the string READY to Event Management as the value of the resource variable, and that value satisfies the event definition, so the command wall Node 10 is ready runs on nodes 1-9. When the server application has a problem, it can use pmanrminput to communicate its state change:

pmanrminput -s pman -a " READY+"

The resource value NOT READY satisfies the rearm event definition, so the command wall Stop using node 10 runs on nodes 1-9.

Another way to associate a value with one of the Problem Management resource variables is to provide the name of the resource variable and a command in a configuration file, based on the pmanrmd.conf sample file (for more information on the pmanrmd.conf sample file refer to Configuring pmanrmd to provide resource variables). The standard output of the command will be provided to Event Management services as the value for the specified Problem Management resource variable.

Configuring pmanrmd to provide resource variables

In the example in Associating values with Problem Management resource variables, the resource, an application server, was able to communicate its state change directly to the Problem Management subsystem. However, this is not always possible. For example, if you want to run a command whenever the contents of the /etc directory on nodes 1-5 change, the /etc directory is the resource, and a directory is not capable of stating when it has changed. In this case, the Problem Management subsystem needs to be configured to periodically send the name and time stamp of the last changed file in the /etc directory as the resource variable value to Event Management. This can be accomplished by defining a resource monitor command to the Problem Management subsystem.

A sample pmanrmd.conf file is provided. Copy, rename, and edit this file to specify:

For example:

Command="/bin/ls -tl /etc | /bin/head -2 | /bin/grep -v total"

In this example, the pmanrmd daemon will run the command /bin/ls -tl /etc | /bin/head -2 | /bin/grep -v total every ten minutes, and it will send the output of that command as the value of the resource variable to Event Management. The output of this command is the name of the last file to be changed and its time stamp. You could then subscribe to changes in the /etc directory resource with the following command:

pmandef -s etc_file_changed \
-e '!=X@P0' \
-c "echo somebody changed a file in /etc >/tmp/etc_change_log"

Whenever the most recent output of the /bin/ls -tl /etc | /bin/head -2 | /bin/grep -v total command is different from the previous output, the event definition will be satisfied, and the "echo somebody changed a file in /etc >/tmp/etc_change_log" command will be run.

Loading pmanrmd configuration information into the SDR

pmanrmdloadSDR reads the configuration file and loads the information in the stanzas into the SDR. pmanrmdloadSDR runs on the control workstation.

The syntax for pmanrmdloadSDR is :

pmanrmdloadSDR configuration_file

After you load the configuration information into the SDR, refresh the affected pmanrmd daemons.

[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]