Enable Cayosoft Administrator service logging
Overview
Cayosoft Support team may request detailed logs to help troubleshoot your support case. Logs contain information on actions performed by the Cayosoft Administrator Service. By default, logs are stored in C:\ProgramData\Cayo Software\AdminAssistant\Logs. This article covers steps to enable service logging that will create a text-based log file that Support team can review for additional information.
NOTE Service logging can slow the product down. Enable it only while troubleshooting.
Enable service logging
In the Cayosoft Administrator console, navigate to Configuration > Support > Service Logging.
Click Enable Logging. The logging is now enabled; the bottom status bar shows Support Logging Enabled.
Perform the task for which detailed logging is needed.
Return to the Service Logging node and click Disable Logging.
Click Open Folder Location to view the log file that was created. The log file is a text file that can be opened with any text editor.
Create a detailed service startup log
NOTE Creating a detailed service startup log requires a Cayosoft Administrator Service restart. Any users connected to the Cayosoft Administrator console or Web Portal will be disconnected and won't be able to re-connect until the service has restarted.
Log in to the server that is running the Cayosoft Administrator Service.
In the Cayosoft Administrator console, navigate to Configuration > Support > Service Logging.
Click Enable Logging. The logging is now enabled; the bottom status bar shows Support Logging Enabled.
- Restart the Cayosoft Administrator Service: navigate to Services, locate the Cayosoft Administrator Service, right-click the service and select Restart.
Wait for the service to restart. Then, start the console and perform the task for which detailed logging is needed.
Return to the Service Logging node and click Disable Logging.
Click Open Folder Location to view the log file that was created. The log file is a text file that can be opened with any text editor.
Schedule service logging
If an issue occurs during a certain time window, you can schedule service logging to start and end using Task Scheduler to automate the task and prevent a disk fill-up. Refer to the following notes for automatic service logging:
When you use the scripts, the Cayosoft Administrator console does not immediately show the change to the logging status. To update the logging status, reopen the console.
-
If you need extended logging enabled, replace the value
DefaultwithExtendedin the following line of theEnableConsoleLogging.ps1script:$connection.EnableDisableDebugLog($True, $True, "Default") | Out-Null -
The scripts may be blocked due to security mechanisms. To unblock them, right-click the .ps1 file and navigate to Properties > General. Select the Unblock checkbox and click Apply.
IMPORTANT Local security policies may still apply. If your organization’s policy still blocks the script, contact your IT team.
Download the EnableConsoleLogging.ps1 file attached to this article. Refer to the following steps to set up Task Scheduler to automate service logging:
Log in to the server that is running the Cayosoft Administrator Service.
Open Windows Task Scheduler. In the Action menu, select Create basic task.
Name the task (e.g., 'Enable Administrator Logging'). Click Next to proceed.
In the Trigger step, define the schedule for the task. Configure the frequency and start time. Proceed to the Action step.
In the Action step, select Start a program. Click Next to proceed.
-
In the Program/script field, specify
powershell.exe. In the Add arguments field, specify a full path to the relevant script. Refer to the example:-File "C:\Scripts\EnableConsoleLogging.ps1"Click Next to proceed.
Review the parameters. Select the Open the Properties dialog checkbox and click Finish to complete the task creation.
-
In the Properties dialog, select the following options:
Run with highest privileges
Run whether user is logged on or not
Click OK to finish. Task Scheduler prompts a login window to verify information of the user running the task.
Repeat the steps to schedule a task to disable logging. Use the dedicated
DisableConsoleLogging.ps1script attached to this article.
Download the required scripts: EnableDebugLogging.ps1; DisableDebugLogging.ps1.
Getting help
For assistance with issues or with interpreting the detailed service log, please send a request via email to support@cayosoft.com.
Comments
0 comments
Please sign in to leave a comment.