Getting started with HP-UX Workload Manager

51
prmrun: Starting a process in a workload group
You can explicitly start a process in a particular workload group using the prmrun command. For a
particular user, the groups the user can access are identified in the WLM configuration file’s prm
structure. The first group named after the user is the default group for processes the user starts;
however, if any additional groups are named, the user can also run processes in those groups. For
example, given the following prm structure:
prm {
groups = OTHERS : 1,
testers : 2,
coders : 3,
surfers : 4;
users = moe : coders surfers,
curly : coders surfers,
larry : testers surfers;
}
user larry running the command
# my_really_big_job &
would cause his job to be run in group testers. However, user larry also has permission to run
processes in the group surfers. Thus, larry can use the following prmrun command:
# /opt/prm/bin/prmrun -g surfers my_really_big_job &
to run his process in the group surfers.
prmmove: Moving an existing process to a workload group
Use the prmmove command to move existing processes to a different workload group. If larry from
the preceding example has a job running with process ID (PID) 4065 in the group testers, he
could move that process to group surfers by running the command:
# /opt/prm/bin/prmmove surfers -p 4065