After upgrading my SSL/VPN VPX to latest 10.1 releases, the VPN tunnel starts dropping every two minutes with error 2017…
Here is some instructions regarding how to enable Netscaler Plugin Client logging to ease the troubleshooting process…

1. Enable logging on Netscaler box with following command:
set vpn parameter clientdebug DEBUG

2. Run AG plugin and reproduce the issue you are facing

3. Go to AG client’s program folder on command prompt:
( i.e. C:\Program Files\Citrix\Secure Access Client )

4. Run nsClientCollect.exe with following command:
nsClientCollect path_to_log_file\logfile.zipĀ  (extension should be zip)
This will generate logfile at specified location.

5. Revert back logs settings with following command:
set vpn parameter clientdebug OFF