Troubleshooting Tips

Most interoperability problems occur during IKE negotiations, so examining IKE log events is useful. You can use the following procedures to enable and view IKE log events:

Using IKE Logging on HP-UX Systems

Use the following procedure to view detailed IKE log events on HP-UX systems:

1.Enter the following command to set the HP-UX IPSec log level to debug and increase the maximum log file size:

ipsec_admin -al debug -maxsize 99999

IPSec creates the log files in the /var/adm/ipsec directory. The log file names are auditdateinfo.log

2.Reproduce the problem.

3.Enter the following command to format the audit file:

ipsec_report -audit /var/adm/ipsec/auditdateinfo.log

4.Use the following command to set the HP-UX IPSec log level back to warning (the default log level):

ipsec_admin -al warning

Using IKE Logging on Windows Systems

Use the following procedure to view IKE log events on Windows systems:

1.Enable IKE logging. On Windows XP systems, use the regedit utility to enable IKE logging in the system registry. On Windows systems, IKE logging is configured using the Oakley6 key.

CAUTION: Incorrectly editing the registry may severely damage the system. Before making changes to the registry, HP recommends that you back up the registry and any valued data on the computer. Refer to the article How to back up, edit, and restore the registry in Windows XP and Windows Server 2003 in the Windows Knowledge Base for more information. The Windows Knowledge Base is available at http://support.microsoft.com

Set the

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PolicyAgent\Oakley\EnableLogging REG_DWORD value to 1. On some Windows versions, you may need to create the Oakley key.

On Windows 2003 systems, enter the following command to enable IKE logging: netsh ipsec dynamic set config ikelogging 1

2.Stop and restart the IP Security service. You can use the following commands at the Windows command prompt:

net stop policyagent net start policyagent

Refer to “Step 9: Starting the IP Security Service” (page 29) for more information.

3.Reproduce the problem.

4.View the IKE log file. Windows creates the log file in the directory systemroot\Debug (by default, this is the WINDOWS\Debug directory). The file name is Oakley.log.

6. The Oakley protocol is a key-agreement protocol that is incorporated in the IKE protocol.

38