Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP System Management Homepage: Installation Guide > Chapter 4 Installing on HP-UX

Configuring HP SMH

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The HP SMH configuration is based on environment variables and tags that are set by the /opt/hpsmh/lbin/envvars, /opt/hpsmh/conf.common/smhpd.xml and /opt/hpsmh/conf/timeout.conf files. To change the default configuration, you can modify the files to properly set the value of the following variables and tag.

VariableDescriptionScript
JAVA_HOMEPoints to the /opt/hpsmh/lbin/envvars directory where JDK is installed./opt/hpsmh/lbin/envvars
<session-timeout>15</session-timeout>The <session-timeout> tag defines the HP SMH session timeout in minutes. If it is defined, the HP SMH session is stopped after the time period has elapsed without any user activity. If it is not defined, the default for the HP SMH session timeout is set to 15 minutes. You can define the <session-timeout> tag using any value between 6 and 120 minutes./opt/hpsmh/conf.common/smhpd.xml
TIMEOUT_SMHThe TIMEOUT_SMH environment variable defines the HP SMH server timeout in minutes. If it is defined and lower than the HP SMH session timeout, the HP SMH server will be stopped three minutes after the HP SMH session timeout. If it is defined and greater than the HP SMH session timeout, then the HP SMH server is stopped after the time period has elapsed without any user activity. If it is not defined or equal to zero, then HP SMH is started without timeout. When the "automatic startup on boot" startup mode is in use, the timeout mechanism will not be started./opt/hpsmh/conf/timeout.conf
TIMEOUT_TOMCATDefines the Tomcat timeout in minutes in the /opt/hpsmh/conf/timeout.conf file. If it is defined, 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. If it is not defined or equal to zero, then Tomcat is started without timeout. In this case, Tomcat is stopped only when HP SMH is stopped./opt/hpsmh/conf/timeout.conf

Configuring the startup mode

HP SMH supports three startup modes:

  • Autostart URL

    This mode 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 mode starts HP SMH automatically during 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 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).

    If no options are specified, then smhstartconfig displays the current startup mode. The smhstartconfig command does not accept -a on and -b on options simultaneously.

    For more information, see the smhstartconfig(1M) manpage:

    man smhstartconfig or man sam

    After changing the autostart mode to "on boot" (with the smhstartconfig -b on -a off command), without rebooting you can start the HP-UX Apache-based Web Server processes with the /opt/hpsmh/lbin/hpsmh start command.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2004 - 2008 Hewlett-Packard Development Company, L.P.