lsrset Command

Purpose

Displays system rset contents.

Syntax

lsrset [ -X ] [ -f ] [ -v | -o ] [ [ -S ] -r rsetname | -n namespace | -a ]

or

lsrset [ -X ] [ -P ] [ -v | -o ] -p pid

Description

The lsrset command displays information contained in rsets stored in the system registry or rsets attached to a process.

Flags

Item Description
-f Displays rset owner, group, and mode data.
-v Verbose mode. Displays resources contained in the rset, rset owner, group and mode data.
-o Displays only the online resources contained in the rset. The default is to display all resources.
-p pid Displays the effective rset attached to this process.
-r rsetname Displays the rset with this name in the system registry. The name consists of a namespace and an rsname separated by a "/" (slash). Both the namespace and rsname may contain up to 255 characters. See the rs_registername() service for additional information about character set limits of rset names.
-n namespace Displays all rsets in this namespace in the system registry.
-a Displays all rsets in the system registry.
-P Displays the partition rset attached to the specified process.
-S Displays the resources contained in this rset if it were to be scheduled with the -S hint with either the execrset or the attachrset command. The rset does not need to be an exclusive rset. This is to be contrasted with the attachrset and execrset commands, which require exclusive rsets to be specified with the -S flag.
-X Prints all available characters of each user and group name instead of truncating to the first 8 characters.

Examples

  1. To display all resources for all rsets in the system registry, type:
    lsrset -v -a
  2. To display a summary of the effective rset attached to pid 28026, type:
    lsrset -p 28026
  3. To display the online resources in the effective rset attached to pid 28026, type:
    lsrset -o -p 28026
  4. To display all the resources in the effective rset attached to pid 28026, type:
    lsrset -v -p 28026
  5. To display online resources for all rsets in the system registry, type:
    lsrset -a -o
  6. To display all resources for all rsets in the system registry with expanded user and group name, type:
    lsrset  -X -v -a
    

Files

Item Description
/etc/bin/lsrset Contains the lsrset command