HP Process Resource Manager User's Guide

Administering PRM
Automating PRM administration with scripts
Chapter 9194
Automating PRM administration with scripts
To automate PRM administration, you can create scripts that use
prmconfig, prmmove, and prmmonitor.
If you want to use prmmonitor to report information that is later
manipulated or analyzed by other programs, use prmmonitor -t,
directing the output to a logfile; then, create a script that summarizes
the output for system accounting.
If you need to change the CPU, memory, or disk bandwidth shares during
off hours, say for batch processing, create a script to change the
configuration and use cron to run the script. For example, you could use
multiple configuration files such as am_prmconf for daytime
configuration and pm_prmconf for nighttime configuration.
Protecting the PRM configuration from
reboots
To preserve your configuration across boots, modify the variables in the
PRM startup script /etc/rc.config.d/prm to automatically configure PRM
on reboot. This startup script uses the configuration file you specify or
the last active configuration file to configure PRM.
The variables in the /etc/rc.config.d/prm file, along with their default
values, are:
PRM_CONFIG=0
PRM_CONFIG_FILE=/etc/prmconf
PRM_ENABLE=0
PRM_SLEEP=0
PRM_CAPPING=0
PRM_INT_APPL=0
PRM_INT_MEM=0
PRM_LOG_APPL=0
PRM_LOG_MEM=0
PRM_SNMPAGT=0