HP System Management Homepage Installation Guide, December 2005
Configuring HP SMH
The HP SMH configuration is based on environment variables that are set by /opt/hpsmh/lbin/envvars
and /opt/hpsmh/conf/timeout.conf scripts. To change the default configuration, you can modify the
scripts to properly set the value of the following variables.
ScriptDescriptionVariable
/opt/hpsmh/lbin/envvarsPoints to the directory where JDK is
installed.
JAVA_HOME
/opt/hpsmh/conf/timeout.confDefines the SMH timeout in minutes. If it is
not defined or equal to 0 (zero), then HP
SMH is started without timeout. If present,
then HP SMH is stopped after this time
period has elapsed without any
user-activity.
TIMEOUT_SMH
/opt/hpsmh/conf/timeout.confDefines the Tomcat timeout in minutes. If it
is not defined or equal to 0 (zero), then
Tomcat is started without timeout. In this
case, Tomcat is stopped only when HP
SMH is stopped. If present, Tomcat is
stopped after this time period has elapsed
without any request to a Java web
application. By default, the timeout for the
HP-UX Tomcat-based Servlet Engine is 20
minutes and the timeout for the HP-UX
Apache-based Web Server is 30 minutes.
TIMEOUT_TOMCAT
Configuring the Startup Mode
HP SMH supports three startup modes:
• autostart URL
This is the default setting for startup. You can start HP SMH by using a Web browser and navigating
to http://hostname:2301/. If autostart is configured as the default, there is a daemon listening
on http://hostname:2301 only (nothing is listening on port 2381 so that port will fail). When it
contacts port 2301 (http), then the HP-UX Apache-based Web Server is started on port 2381 (https)
and the page is automatically redirected.
• automatic startup on boot
This starts HP SMH automatically during the system initialization. If the automatic startup on boot start
mode is enabled and the system was rebooted using this configuration, you can access HP SMH by
using a Web browser and navigating to https://hostname:2381/. Daemons are listening on both
http://hostname:2301/ and https://hostname:2381/. If you use port 2301 (http), then the HP-UX
Apache-based Web Server is started on port 2381 (https) and the page is automatically redirected.
NOTE For autostart URL and automatic startup on boot, you can use http://hostname:2301, as it
works in both cases. This is possible on an HP-UX system only.
• manual startup
You can start HP SMH from the HP-UX command line.
Use the /opt/hpsmh/bin/smhstartconfig script to configure the startup mode of the HP SMH
server and of the Tomcat instance that HP SMH uses.
Syntax: smhstartconfig [ -a <on|off> -b <on|off> ] [ -t <on|off> ]
Options:
-a <on|off> Enable/disable the autostart URL mode.
-b <on|off> Enable/disable the automatic startup on boot mode.
-t <on|off> Set the Tomcat startup mode where:
on Start Tomcat when HP SMH starts.
off Start Tomcat on demand (default).
20 Installing on HP-UX