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 |
|
---|---|---|
|
Top level diagnose command for OCVPN. |
|
|
|
Display OCVPN device state. |
|
|
Display OCVPN log file from the device. |
|
|
Display the current status of the device and last response code from the OCVPN service. |
|
|
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. |