RSclient module diagnostics

Important

All commands are executed only from superuser.

Mode superuser:

sudo -i

Services logging used by module

Logging happens using logging module.

If log_file_location parameter is not specified in the file client.conf, then logging occurs in the file client.log located in the user’s home directory in the directory .rsclient. If this parameter is specified, then in the directory, the path to which is equal to the parameter value, the following is created log file. In this case, name of user who launched the application is added to the file name, for example, client-admin.log.

Note

Description of the logging process provided by the OpenStack platform can be found in the corresponding section of the official documentation.

Module diagnostics in the Windows operating system

You can perform module self-diagnostics using the run_self_diagnostics.exe application, which is located in the root directory of the installed RSclient module.

Self-test result is written to a file RSclient_self_diagnostics_YYYY-MM-DD.log and is saved in the directory that is set for writing log files.

Module diagnostics in the Linux operating system

You can perform self-diagnosis of the module in the Linux operating system using the command rs_client --diagnostic.

Example of command execution:

rs_client --diagnostic

==============================
Extracted parameters: RSclient
==============================
+----+----------------------------+-----------------------------------------+
| N  | Variable name              | Value                                   |
+----+----------------------------+-----------------------------------------+
| 1  | PYKCS11LIB                 |                                         |
+----+----------------------------+-----------------------------------------+
| 2  | SMARTCARD_OID              |                                         |
+----+----------------------------+-----------------------------------------+
| 3  | additional_clouds          |                                         |
+----+----------------------------+-----------------------------------------+
| 4  | cloud                      | test.stand.loc                          |
+----+----------------------------+-----------------------------------------+
| 5  | connect                    | echo {ip} {user} {password}             |
+----+----------------------------+-----------------------------------------+
| 6  | contact_support_message_en | Please contact system administrator.    |
+----+----------------------------+-----------------------------------------+
| 7  | contact_support_message_ru | Обратитесь к системному администратору. |
+----+----------------------------+-----------------------------------------+
| 8  | domain_name                | default                                 |
+----+----------------------------+-----------------------------------------+
| 9  | get_vm_timeout             | 5                                       |
+----+----------------------------+-----------------------------------------+
| 10 | ignore_domain              | False                                   |
+----+----------------------------+-----------------------------------------+
| 11 | ikecfg                     |                                         |
+----+----------------------------+-----------------------------------------+
| 12 | language                   | ru                                      |
+----+----------------------------+-----------------------------------------+
| 13 | log_file_location          |                                         |
+----+----------------------------+-----------------------------------------+
| 14 | log_level                  | INFO                                    |
+----+----------------------------+-----------------------------------------+
| 15 | password_generation        | True                                    |
+----+----------------------------+-----------------------------------------+
| 16 | project                    | True                                    |
+----+----------------------------+-----------------------------------------+
| 17 | retries                    | 2                                       |
+----+----------------------------+-----------------------------------------+
| 18 | secondary_cloud            |                                         |
+----+----------------------------+-----------------------------------------+
| 19 | show_settings              | True                                    |
+----+----------------------------+-----------------------------------------+
| 20 | store_session              | True                                    |
+----+----------------------------+-----------------------------------------+
| 21 | store_password             | False                                   |
+----+----------------------------+-----------------------------------------+
| 22 | timeout                    | 15                                      |
+----+----------------------------+-----------------------------------------+
| 23 | use_smartcard              | True                                    |
+----+----------------------------+-----------------------------------------+
| 24 | web_guard                  | False                                   |
+----+----------------------------+-----------------------------------------+


RSclient 2.1.0
+---------------------------------------+--------+-----------------+
| Test name                             | Status | Failure reason  |
+---------------------------------------+--------+-----------------+
| test check trs server connection      | OK     |                 |
+---------------------------------------+--------+-----------------+
| test config file has required values  | OK     |                 |
+---------------------------------------+--------+-----------------+
| test config file read save            | OK     |                 |
+---------------------------------------+--------+-----------------+
| test session file has required values | OK     |                 |
+---------------------------------------+--------+-----------------+
| test session file read save           | OK     |                 |
+---------------------------------------+--------+-----------------+
| test locale files are in place        | OK     |                 |
+---------------------------------------+--------+-----------------+
Ran 6
OK (success=6, failures=0, errors=0))

Result is saved in /home/user/.rsclient/RSclient_self_diagnostics_2019-05-15.log