Fortinet black logo

Handbook

Debugging and logging

6.0.0
Copy Link
Copy Doc ID 4afb0436-a998-11e9-81a4-00505692583a:820182
Download PDF

Debugging and logging

OCVPN debugging and logging is handled through a common API function. All debugs (except polling) are logged to /tmp/ocvpn/log. When the size of the log file exceeds 128k, the file is truncated and only the most recent 32k is saved.

The following diagnose commands may be useful when troubleshooting and debugging OCVPN configurations.

Command

Description

diag vpn ocvpn

Top level diagnose command for OCVPN.

device-state

Display OCVPN device state.

log

Display OCVPN log file from the device.

status

Display the current status of the device and last response code from the OCVPN service.

print-members

Print the OCVPN member table. This command accesses the OCVPN cloud service to retrieve the latest information, irrespective of the state of the device. It prints the raw JSON responses from OCVPN.

Debugging and logging

OCVPN debugging and logging is handled through a common API function. All debugs (except polling) are logged to /tmp/ocvpn/log. When the size of the log file exceeds 128k, the file is truncated and only the most recent 32k is saved.

The following diagnose commands may be useful when troubleshooting and debugging OCVPN configurations.

Command

Description

diag vpn ocvpn

Top level diagnose command for OCVPN.

device-state

Display OCVPN device state.

log

Display OCVPN log file from the device.

status

Display the current status of the device and last response code from the OCVPN service.

print-members

Print the OCVPN member table. This command accesses the OCVPN cloud service to retrieve the latest information, irrespective of the state of the device. It prints the raw JSON responses from OCVPN.