Other considerations when starting the Policy Agent

If you start the Policy Agent with a user ID that does not have superuser authority [UID(0)], then read and write permission is required for the following directories and files:

Requirement: To automatically monitor applications, you must start Policy Agent with a user ID that has superuser authority UID(0). For sample RACF® commands, see the EZARACF member of SEZAINST.

At initialization, the Policy Agent creates a z/OS UNIX file called /tmp/tcpname.Pagent.tmp. This occurs for every TCP/IP stack defined on a TcpImage statement.

In this z/OS UNIX file, tcpname is the name of a TCP/IP stack from a TcpImage statement. During TCP/IP stack initialization, the TCP/IP stack will attempt to modify a file by this name to notify the Policy Agent that the stack has been reactivated. This causes the Policy Agent to automatically attempt to reinstall the existing policies to this stack.

When /tmp/tcpname.Pagent.tmp is in a read/write sysplex-aware z/OS file system (zFS), a symbolic link can be created to a file that is in a hierarchical file system (HFS) or in a read-only zFS to enable the update notification. In the following example, the ln command is used to create a symbolic link to a file in /mydir, where /mydir is in an HFS or a read-only zFS:

ln -s /mydir/TCPIP.Pagent.link /tmp/TCPIP.Pagent.tmp
Restrictions: Start of change End of change
To ensure that only one Policy Agent is started, the Policy Agent uses the following enqueue:

When starting from the shell, note that the Policy Agent executable file is in the /usr/lpp/tcpip/sbin directory. There is also a link from the /usr/sbin directory. Make sure your PATH statement contains either the /usr/sbin or /usr/lpp/tcpip/sbin directory.

For example, the following command starts Policy Agent with these characteristics:
pagent -c /u/user10/pldap.conf -l SYSLOGD &

Use the S PAGENT command on an MVS™ console or SDSF to start the Policy Agent as a started task. A sample procedure is shipped in member EZAPAGSP in SEZAINST.