menu:admin:system:debug_logs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
menu:admin:system:debug_logs [2021/10/22 06:40] – ↷ Links adapted because of a move operation pgels | menu:admin:system:debug_logs [2024/07/03 12:31] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | ===== Debugging ===== | ||
+ | The 'Admin - System - Debugging' | ||
+ | |||
+ | Log files can be viewed using a pop-up window from this tool. The ' | ||
+ | the log file in a scrolling window as information is added to it. | ||
+ | |||
+ | Additionally, | ||
+ | |||
+ | ==== Debug mode ==== | ||
+ | |||
+ | Every NetYCE server can be configured dynamically to run in debug mode. This mode, when enabled, will create extensive debug files used for troubleshooting and development purposes. | ||
+ | |||
+ | The debug mode can be enabled and disabled using the front-end tool. Be mindful that running in debug mode will have some impact on the systems performance and disk space usage. For this reason is the debug mode automatically disabled after 24 hours. This period can be altered by modifying the " | ||
+ | |||
+ | When changing the debug setting, the system will be unresponsive for a short period (5-10 seconds) to restart some processes that need to switch to debug/ | ||
+ | |||
+ | {{menu: | ||
+ | |||
+ | To enable the debug mode simple click the "Start debug" button. The default action is to first clear any existing debug files. This behaviour can be omitted by clearing the "Clear debug files" checkbox. | ||
+ | |||
+ | Not all systems will show the same log and debug files. Depending on installed licensed functions and used NMS integrations will some log files be present or not. | ||
+ | |||
+ | {{menu: | ||
+ | |||
+ | While the debug mode is enabled and the 'Debug logs' page is visited, the username and timestamps of the start and scheduled end of the debug period is displayed. Because it is desirable to collect not more data than the relevant period, the current running duration of the debug mode is also included. | ||
+ | |||
+ | To monitor the disk usage of the logging and debug files the current free disk space on the underlying filesystem of the logging directory is shown. The " | ||
+ | |||
+ | |||
+ | ==== View or Follow log ==== | ||
+ | |||
+ | The regular and debug log files can be viewed using the front-end. Two options exist: The " | ||
+ | |||
+ | When using the " | ||
+ | |||
+ | The content and structure of the data differs per log file. Some are structured to include the software subroutines calling sequence in data header lines. These lines are highlighted in teal when detected. | ||
+ | |||
+ | {{menu: | ||
+ | |||
+ | > Note: Be aware that the log files opened for viewing can be quite sizeable or that a file opened for following can receive a lot of data in a short time. This information is sent to the browser regardless of available resources on the local PC. In some cases the browser may not be able to accommodate the request or consume all memory causing the PC or browser to crash. | ||
+ | |||
+ | |||
+ | |||
+ | ==== Job debug ==== | ||
+ | |||
+ | For the debugging of command jobs, additional debug files will be created for each running job. The filenames of these job debug files start with the job-id of the corresponding job. They will contain a very detailed log of the scenario commands and all intermediate parsing results of the received data from the device. These files cannot be cleared, only deleted. | ||
+ | |||
+ | The job debug files are of prime interest to our developers investigating a communication or parsing problem. | ||
+ | |||
+ | |||
+ | ==== Support file ==== | ||
+ | |||
+ | To assist NetYCE support engineers and developers in investigating and resolving experienced issues, a NetYCE support file can be created. It will take a snapshot of the all relevant (debug) log files and system configuration files | ||
+ | and combine these in a single downloadable file. | ||
+ | |||
+ | The files included in the support file: | ||
+ | < | ||
+ | -- regular and debug log files: | ||
+ | / | ||
+ | |||
+ | -- the two last regular log rollover files | ||
+ | / | ||
+ | |||
+ | -- the job definition and execution files for jobs having | ||
+ | -- / | ||
+ | / | ||
+ | |||
+ | -- the NetYCE configuration directory | ||
+ | / | ||
+ | |||
+ | -- the angular and mojo local setup file | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | All NetYCE support files are first compressed and then encrypted for safe communication with NetYCE support. The encryption key is the same key that is used to encrypt the database archives and is based on the customer specific license file. | ||
+ | |||
+ | This key is available to NetYCE support and need not be communicated. To obtain this key, login to the NetYCE cli as '' | ||
+ | |||
+ | If it is desirable to review the contents of the NetYCE support file, follow the steps below. Replace the appropriate file names and key values. It is essential to login/ | ||
+ | |||
+ | < | ||
+ | -- find the support file | ||
+ | $ go logs | ||
+ | -- goto logs -> / | ||
+ | yce@genesis / | ||
+ | $ l *.bin | ||
+ | -rw-r--r-- 1 yce nms 243712 Mar 4 10:08 netYCE_support_20190304_1008.bin | ||
+ | yce@genesis / | ||
+ | |||
+ | -- obtain the encryption key | ||
+ | $ ck_license -y | ||
+ | 6CEA-5C24-EC27-B699-0B4C | ||
+ | yce@genesis / | ||
+ | |||
+ | -- this step decrypts the support file | ||
+ | -- replace the filename and key values to the appropriate values | ||
+ | -- the decrypted tar-gzip file is created in /var/tmp | ||
+ | $ openssl des3 -d -salt -in ' | ||
+ | |||
+ | |||
+ | $ go tmp | ||
+ | -- goto tmp -> /var/tmp | ||
+ | yce@genesis /var/tmp | ||
+ | |||
+ | $ l | ||
+ | total 244 | ||
+ | -rw-rw-r-- 1 yce nms 243692 Mar 4 12:00 netYCE_support_20190304_1008.tgz | ||
+ | drwxr-xr-x 2 yce nms 4096 Mar 1 14:44 yce_install/ | ||
+ | yce@genesis /var/tmp | ||
+ | |||
+ | -- extract the tar-gzip file | ||
+ | $ gtar xvzf netYCE_support_20190304_1008.tgz | ||
+ | logs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | jobs/ | ||
+ | logs/ | ||
+ | logs/ | ||
+ | logs/ | ||
+ | logs/ | ||
+ | logs/ | ||
+ | ::: | ||
+ | opt/ | ||
+ | opt/ | ||
+ | opt/ | ||
+ | opt/ | ||
+ | opt/ | ||
+ | opt/ | ||
+ | opt/ | ||
+ | opt/ | ||
+ | opt/ | ||
+ | |||
+ | $ l | ||
+ | total 256 | ||
+ | drwxrwxr-x 3 yce nms 4096 Mar 4 12:01 jobs/ | ||
+ | drwxrwxr-x 2 yce nms 4096 Mar 4 12:01 logs/ | ||
+ | -rw-rw-r-- 1 yce nms 243692 Mar 4 12:00 netYCE_support_20190304_1008.tgz | ||
+ | drwxrwxr-x 3 yce nms 4096 Mar 4 12:01 opt/ | ||
+ | drwxr-xr-x 2 yce nms 4096 Mar 1 14:44 yce_install/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | The config, log and debug files are now extracted to the jobs/, logs/ and opt/ directories here. | ||
+ | |||
+ | |||
+ | // |