# \*TOOLS/SYSTEMANALYSIS Analyze PxPlus Installation and Setup

> Source: https://manual.pvxplus.com/utilities/system-analysis

## Description

The System Analysis utility analyzes the PxPlus installation and setup. It runs the following tests and displays the results, reporting any issues found:

| **Test** | **Description** |
| --- | --- |
| PxPlus Install Test | Create and delete a file in the install directory.  <br>Create and delete a file in the *Lib* directory and all *Lib* sub-directories.<br>*(A permissions check on all Lib sub-directories was added In PxPlus 2023.)* |
| WindX Test | Display client and server PxPlus versions and the WindX program version.  <br>Ensure client PxPlus version equals the server PxPlus version.  <br>Validate **%PXPLUS_HOST$** is set correctly and that spawning works. |
| PxPlus Environment Variables | Display all of the PxPlus environment variables. |
| Internet Test | Test that PxPlus can connect to the Internet at **[www.pvxplus.com](https://www.pvxplus.com/)**. |
| SSL Test | Test that PxPlus can connect securely via SSL to **www.pvxplus.com**.  <br>Display OpenSSL version. |
| External DB Test | Test that ADO is supported.  <br>Test that ODB is supported. On UNIX, test that UNIX ODBC is setup.  <br>Test that DB2 is supported and the DB2 client is setup.  <br>Test that OCI is supported and the Oracle instant client is installed.  <br>Test that MySQL client library is installed. |
| PDF Test | Check that LibHaru is supported and enabled.  <br>Open a PDF file. |

*(The System Analysis utility was added in PxPlus 2022.)*

This utility can be invoked either in graphical or **[Text-based](https://manual.pvxplus.com/utilities/system-analysis#text_based)** mode. To invoke this utility in graphical mode, use one of the following methods:

| **Location** | **Method** |
| --- | --- |
| From the **[PxPlus IDE Main Launcher](https://manual.pvxplus.com/pxplus-ide/ide-main-launcher)** | Expand the *Installation and Setup* category and select *System Analysis*. |
| From the PxPlus Command window | Enter: **SA** |

The **System Analysis** window displays. Clicking the *Execute* button runs the tests and displays the results:

|  |  |  |
| --- | --- | --- |
| ![](https://manual.pvxplus.com/migration-assets/f11b98afb4f296ae2c708dcae621f734844a4365d0727775a16fd55044003d9b.jpg) | ![](https://manual.pvxplus.com/migration-assets/809f351deb828d8068c7c1618e042f49f78df84a97bee84415cb4bcbe5916868.png) | ![](https://manual.pvxplus.com/migration-assets/cef2329cb23231b86ffc03ff20f929abee56d510f6bc243e6d343fb2f8748b94.jpg)  <br>***Results Displayed (first section has been expanded)*** |

This window consists of the following:

|  |  |
| --- | --- |
| *Execute* | Runs the system analysis and, when completed, displays the results in sections. Click on a section to expand it and view the results.<br>Each section is labelled with the name of the test, and the color indicates the status of the tests completed for the section:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Green* \| No issues found. All tests were successful. \|<br>\| *Orange* \| Possible issues found, which may or may not need to be addressed. Suggested fixes are provided, if possible. \|<br>\| *Red* \| Issues found, which must be resolved. Suggested fixes are provided, if possible. \| |
| *Save* | Saves the results as HTML. |
| *Close* | Exits the **System Analysis** utility. |

To invoke this utility in text-based mode, use the following format:

```
CALL "*tools/systemanalysis",results$,htmlOutput
```

***Where:***

|  |  |
| --- | --- |
| *results$* | Output string where the test results are returned. |
| *htmlOutput* | If set, the output will be HTML. If not set or set to 0, the output is plain text. |
