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 WebQoS Peak for HP-UX Concepts and Operation Guide > Chapter 6 Configuring HP LocalDirector Controller

Configuring HP LocalDirector Controller

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

There are two components you need to configure before using hp ldc: the HP LDControl server and the HP LDControl daemon.

First, bring up the LDControl page by doing the following:

  1. Start the HP server. Type the following:

    /opt/hpldc/admserv/start-admin

  2. Start a browser that supports frames, is Java-enabled, and supports JDK 1.1.

  3. Go to the URL

    http://hostname:8282

    where hostname is the name of the system on which you are running the HP server.

    Reload this page if you have visited it prior to this installation.

  4. Enter the following administration user (server) ID and password:

    User ID: hpadmin
    Password: Enter the password you configured when you ran /opt/hpldc/admserv/setup after installation.

    The HP LDControl page displays.

    Figure 6-2 HP LDControl Page

    HP LDControl Page

Configuring the HP LDControl Server

From the LDControl page, select "Server Configuration" from the side menu. The following page displays:

Figure 6-3 HP LDControl Server Configuration Page

HP LDControl Server Configuration Page

Set the following parameters to configure the HP LDControl server:

Table 6-1 HP LDControl Server Configurable Parameters

ParameterDescription
Server DirectoryThe home directory of the web server. For example, /opt/ns-enterprise4.
Port NumberThe port number used by the web server. This must be a non-SSL port number. For example, 80.
Document DirectoryThe document root directory of the web server. For example, /opt/ns-enterprise4/docs-https-default.

 

The HP LDControl daemon must be started/restarted for these values to take effect. “Starting and Stopping the HP LDControl Daemon” for more information on starting hp ldc.

NOTE: The web server configured in the /etc/hpldc/webstone/conf/server-list file must be running before the HP LDControl daemon is started.

Configuring the HP LDControl Daemon

From the LDControl web page, select "Configuration" from the side menu. The following page displays:

Figure 6-4 HP LDControl Service Configuration Screen

HP LDControl Service Configuration Screen

Set the following parameters to configure the HP LDControl daemon:

Table 6-2 HP LDControl Daemon Configurable Parameters

ParameterDescription
LocalDirector HostnameThe hostname of the system on which Cisco LocalDirector is running.
Dynamic WeightStarts/Stops the HP LDControl daemon. When activated, the daemon will monitor the system and adjust the weights, if necessary. When deactivated, the HP LDControl daemon sends the initial weights to Cisco LocalDirector and exits.
CPU ThresholdThe highest percentage the CPU usage should reach before the weight of the server is automatically decreased. Note that the run queue threshold (average load) must also be reached before the weights are adjusted.

Default: 80
Range: 50 - 100% (integer only)
Run Queue ThresholdThe highest amount the average load should reach before the weight of the server is automatically decreased. Note that the CPU usage threshold must also be reached before the weights are adjusted.

Default: 2
Range: 1.0 - 10.0 (real number)
Time IntervalHow often, in seconds, the thresholds are checked and adjustments are made, if needed, to the weights.

Default: 5 seconds
Range: 5 - 300 seconds (integer only)

 

Click on "OK" to save your changes. The values are saved in the file /etc/opt/hpldc/conf/ldc.conf.

NOTE: The web server configured in the /etc/hpldc/webstone/conf/server-list file must be running before the HP LDControl daemon is started.

Starting and Stopping the HP LDControl Daemon

The HP LDControl daemon can be started and stopped from the LDControl web page. Select "Start/Stop Daemon" from the side menu. A page similar to the following displays.

NOTE: The web server configured in the /opt/hpldc/webstone/conf/server-list file must be running before the HP LDControl daemon is started.

Figure 6-5 HP LDControl Start/Stop Daemon Page

HP LDControl Start/Stop Daemon Page

To start or stop the HP LDControl daemon from the command line, type:

/opt/hpldc/bin/ldc_agt

Configuring a System with More than One LAN Card

If the system on which you are running the web server has more than one LAN card, you must set the snmp-server host and real parameters in Cisco LocalDirector. Do the following:

  1. On the system with multiple LAN cards, run netstat -rn and check the routing table information. Use the IP address associated with the Cisco LocalDirector gateway to configure the snmp-server host parameter of Cisco LocalDirector.

  2. On the system with multiple LAN cards, run
    nslookup local_hostname and use this IP address to configure the real parameter of Cisco LocalDirector.

Refer to Cisco LocalDirector's manuals for information on setting these parameters.

Troubleshooting the HP LD Controller

General Troubleshooting

If an error occurs, check the following two log files for error messages, causes, and recommended actions:

  1. /var/opt/hpldc/ldc.log

  2. /var/opt/hpldc/webstone.log

Problems Accessing the HP LD Controller

Table 6-3 Browser Error Message and Action

Error MessageAction
Applet ConfApplet can't start.The browser that you are using to administer the system must support JDK 1.1 in order to run hpldc. Two browsers that support JDK 1.1 are Netscape Navigator 4.06 and Microsoft Internet Explorer 4.0.

 

HP LDControl Daemon

If the HP LDControl daemon dies, check for the following error messages in the /var/opt/hpldc/ldc.log file. Complete the listed actions for the specified messages

Table 6-4 HP LDControl Daemon Error Log Messages and Actions

Error Message Action
Cannot open file filename.Check that the file filename exists and that the HP LDControl daemon has write permission to its directory.
Server might be down. Initial weight set to 0. Exiting.1. Make sure the web server is running on the system. Restart/Start the web server and then restart the HP LDControl daemon.

2. Check the parameters in the file /etc/hpldc/webstone/conf/server-list.

3. In /etc/passwd, check for the following entry:

webstone:trKI3jiXvewTw:33:1::/tmp:/sbin/sh

If this entry does not exist, add it to the file.

4. If the web server is running, make sure it is using a non-SSL port. The HP LDControl daemon must use a non-SSL port to generate the initial weight.
Cannot send weight to LocalDirector.1. The snmp-server host parameter must be set on the system running Cisco LocalDirector. Refer to Cisco LocalDirector's manual for more information on setting this parameter.

2. Check that LDHostname is set to the system running Cisco LocalDirector in the /etc/opt/hpldc/conf/ldc.conf file.

 

Problems With HP LocalDirector Controller and Cisco LocalDirector

  1. To verify that the HP LDC agent ( ldc_agt) is up and running, type the following:
    ps -efa|grep ldc_agt

    If ldc_agt is not running, start ldc_agt to see if it solves the problem. Refer to “Starting and Stopping the HP LDControl Daemon”.

    If ldc_agt stops running a few minutes after you have started it, dynamic weighting may be turned off (see Step 3b).

  2. Look at the log file /var/opt/hpldc/ldc.log for error messages that may indicate the problem.

  3. Look at the entries in /etc/opt/hpldc/conf/ldc.conf for the following:

    1. Make sure the value of LDHostname is configured to the name of the Cisco LocalDirector. Use ping to test the network connectivity to the Cisco LocalDirector:
      ping <LD_hostname>
      where <LD_hostname> is the value of LDHostname.

    2. Look at the value of DynamicWeight.

      If DynamicWeight is set to "off," the HP LDC agent sends the Initial weight to Cisco LocalDirector and then stops running, since there are no on-going dynamic weight adjustments. In the 'off" mode, it is normal for the HP LDC agent to stop running a few minutes after it has been started.

      If DynamicWeight is set to "on," the HP LDC agent sends the Initial weight to Cisco LocalDirector and then continues to run so it can monitor the system and dynamically change the weight if needed. In the "on" mode, the HP LDC agent should always be running.

    3. Verify the value of InitialWeight. Compare the value of InitialWeight in ldc.conf with the number stored in /var/opt/hpldc/weight. They should be identical.

      • If they match, you are ready to run the snmp_test program. Go to step 4.

      • If they do not match, HP LDC might have trouble in getting the initial weight. Check the error entries in ldc.log again and refer to “Troubleshooting the HP LD Controller ”.

  4. If everything looks normal, you are ready to run the snmp_test tool. The snmp_test program tests the SNMP connectivity between the HP LocalDirector Controller and Cisco's Local Director. It checks if both SNMP_get and SNMP_set are working. Before running the program, read the README.snmp_test.

    If the snmp_test runs successfully without any errors, the SNMP connectivity between HP LocalDirector Controller and Cisco's LocalDirector is working. The problem may be on the Cisco side. Refer to Cisco LocalDirector's manuals for troubleshooting information.

    If snmp_test finds errors, record the errors and look up these errors in “Troubleshooting the HP LD Controller ”.

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