7.1 Useful Tools for Troubleshooting the Linux Access Gateway

7.1.1 Useful Tools

Table 7-1 describes some of the tools available in the Linux operating system or installed by the Linux Access Gateway that can help you determine the cause of a problem.

Table 7-1 Useful Tools

Tool

Description

Re-push Current Configuration

If you have an Access Gateway that does not seem to be using the current configuration, you can select to push the current configuration in the Administration Console to the Access Gateway. Click Auditing > Troubleshooting. In the Current Access Gateway Configuration section, select an Access Gateway, then click Re-push Current Configuration.

Health icon

In the Administration Console, click the Health icon to view details about the health of the Access Gateway. For more information, see Section 4.6.2, Monitoring the Health of an Access Gateway.

curl

Use this command to view identity provider metadata from the Linux Access Gateway. See Testing Whether the Provider Can Access the Metadata in the Novell Access Manager 3.1 SP1 Identity Server Guide.

tail -f

Use this command to view real time activity in key log files. For information on useful files to tail, see Useful Files for Troubleshooting the Access Gateway Appliance.

proc

Use this command to check resources available on the system.

netstat /ss

Use this command to view statistics about the listeners on the Linux Access Gateway.

netcat

Use this command to access the Linux Access Gateway console, which displays statistics and information about various processes.

For more information, see The Linux Access Gateway Console.

tcpdump

Use this command to capture data on standard and loopback interfaces and to view SSL data with imported keys.

nash

Use this command to manually configure log level verbosity and replace IP addresses. For log level information, see Gateway Appliance Logs.

/etc/init.d/novell-vmc

Use the novell-vmc command line options to restart the proxy and view status. For more information, see Table 7-2.

The /chroot/lag/opt/novell/bin directory contains the following scripts:

getlaglogs.sh

Generates a /var/log/laglogs.tar.gz file of the install and system log files. For more information, see Linux Access Gateway Logs.

lagupgrade.sh

Use this script to apply patches. For more information, see Upgrading the Linux Access Gateway Appliance in the Novell Access Manager 3.1 SP1 Installation Guide.

lagconfigure.sh

Use this script to resolve auto-import issues. For more information, see Triggering an Import Retry in the Novell Access Manager 3.1 SP1 Installation Guide.

You can use the following commands to stop and start the Linux Access Gateway and to view its status.

Table 7-2 novell-vcm Commands

Command

Description

/etc/init.d/novell-vmc start

Starts the Linux Access Gateway.

/etc/init.d/novell-vmc stop

Stops the Linux Access Gateway.

/etc/init.d/novell-vmc status

Displays the Linux Access Gateway status.

/etc/init.d/novell-vmc restart

Stops and starts the Linux Access Gateway.

7.1.2 The Linux Access Gateway Console

  1. To access the console, run the following command:

    netcat localhost 2300

  2. Press Enter at the Please enter terminal type prompt.

    This displays the Linux Access Gateway console screens.

    Most of the time, the Proxy Console screen is the one you should pick. The other screens are used mainly by the developers of the Linux Access Gateway. If you are having SSL connection problems, the SSL screens can help in diagnosing the problem.

  3. To access the Proxy Console screen, enter 13.

  4. To access a specific screen, enter the number.

    Screen

    Description

    1. Display current activity

    Displays information about connections (server and client), cached objects, and HTTP requests.

    2. Display memory usage

    Displays information about memory pools and memory used and the types of objects stored in memory.

    3. Display ICP statistics

    Displays statistics for the Internet Cache Protocol.

    4. Display DNS options

    Displays statistics and information about the entries in the DNS table.

    5. Display cache statistics

    Displays information about cached objects and the COS partition.

    For more information, see Checking if the COS Partition Is Mounted.

    6. Display not cached statistics

    Displays statistics about requests for objects that cannot be cached.

    7. Display HTTP server statistics

    Displays statistics about the server handling of HTTP requests.

    8. Display HTTP client statistics

    Displays statistics about the client handling of HTTP requests.

    9. Display connection statistics

    Displays general information about connections.

    Displays statistics about FTP client requests.

    10. Display FTP client statistics

    11. Display GOPHER client statistics

    Displays statistics about GOPHER requests.

    12. Display configured addresses and services

    Displays information about the IP addresses that the Access Gateway is using.

    13. Display SOCKS client statistics

    Displays statistics about SOCKS client requests.

    14. Application Proxies

    Displays proxy service statistics.

    15. Transparent Proxy statistics

    Displays transparent proxy statistics.

    16. Site download options

    Displays information about the last download and prompts for information to schedule a new download.

    17. Debug options

    Allows you to control cache purging.

    18. Identity Agent Console

    Displays user information.

    For more information about the user screen, see User Details.

  5. To return to the opening page of the console from other console page, press Esc+Enter.

    This keystroke works only on some pages.

  6. To exit the console, press Ctrl+C.

7.1.3 Viewing Configuration Information

The configuration store maintains two versions of the Access Gateway configuration and the browser cache maintains one.

  • Current: The current configuration is the version of the configuration that the Access Gateway is currently using.

    You can view this configuration in file format by clicking Access Manager > Access Gateways > [Name of Server] > Configuration > Export. Do not set a password to encrypt the file. The exported file contains the current configuration.

  • Working: The working configuration is the version that you have saved by clicking the OK button on the Server Configuration page, but you have not applied the changes by clicking the Update or the Update All link on the Access Gateways page. This version is not viewable from the Administration Console.

  • Browser Cache: All configuration changes are saved to browser cache when you click the OK button on a configuration page. To view the configuration currently in browser cache, click Access Manager > Auditing > Troubleshooting, scroll to the Cached Access Gateway Configurations section, then click View. You can view the cached configuration of an individual Access Gateway, or if the Access Gateway is a member of a cluster, you can view the cached configuration of the cluster and each member. The + and - buttons allow you to expand and collapse individual configurations.