NOTE: The PRM groups must be enabled at the time the scopeux collector is restarted by the mwa restart scope command. If PRM is not running, data for some—or all—PRM groups may be absent from OpenView graphs and reports. Also, it may affect alarms defined in /var/opt/perf/alarmdefs.

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 or memory 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

To configure PRM on reboot, set PRM_CONFIG equal to one:

PRM_CONFIG=1

To use a configuration file other than /etc/prmconf, set PRM_CONFIG_FILE equal to the name of the new file:

PRM_CONFIG_FILE=/etc/opt/prm/conf/dayconf.prm

To enable the appropriate resource managers after PRM has been configured, set PRM_ENABLE to one:

PRM_ENABLE=1

The PRM_ENABLE variable can be set to one only when PRM_CONFIG is set to one.

To specify a sleep period for PRM, allowing PRM daemons to stabilize when large memory consumers are started immediately after PRM is configured, set PRM_SLEEP to the number of seconds to sleep:

PRM_SLEEP=n

The PRM_SLEEP variable can be set only when PRM_CONFIG is set to one.

To enable PRM’s CPUCAPON mode, set the PRM_CAPPING variable equal to one:

PRM_CAPPING=1

The PRM_CAPPING variable can be set to one only when PRM_ENABLE is set to one.

98 Administering PRM

Page 98
Image 98
HP Process Resource Manager (PRM) Automating PRM administration with scripts, PRMCONFIGFILE=/etc/opt/prm/conf/dayconf.prm