genld Command

Purpose

The genld command collects the list of all processes currently running on the system, and optionally reports the list of loaded objects corresponding to each process.

Syntax

genld [ -h | -l [ -d ] ] [ -a Area ] [-u]

Description

For each process currently running, the genld command prints a report consisting of the process ID and name, optionally followed by the list of objects loaded for that process. The object's address and path name are displayed. Members of libraries are shown between brackets. For example, /usr/lib/libc.a[shr.o] means shr.o is a loaded member of the libc.a library.

You can filter the output of the genld command by using the -u flag to display processes that have old versions of loaded objects. An object is considered as an old object if the object image is different from the image that is currently installed on the file system. The -u flag is used after applying an update to list the processes that require a restart operation to use the new binaries and libraries.

Notes:
  • Unprivileged users can see loaded objects only for their processes.
  • If the full path name to a loaded object cannot be determined, the genld command might not report updates to this object if it is located on a file system other than journaled file system (JFS2). The object might also be reported as updated if the object is replaced by an identical copy.

Flags

Item Description
-a Area Lists only processes using the shared library area specified by the Area parameter.
-d Shows the address and size of the Data section, in addition to the address and size of the Text section. This option has no effect without the -l flag.
-h Displays the usage statement.
-l Reports the lists of loaded objects for each process running on the system.
-u Lists only processes that have old versions of loaded objects.

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 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  • To obtain the list of loaded objects for each running process, enter the following command:

    genld -l
  • To obtain the list of processes that have old versions of loaded objects, enter the following command:
    genld -u
  • To obtain the list of processes that have an old version of the libcrypt.a library loaded, enter the following command:
    genld -lu | grep -p libcrypt.a