Collect all SASĀ® 9.4 middle-tier logs and configuration files for SAS Technical Support


Use the collect_latest_midtier_logs_configs_s9 script to collect SAS 9.4 middle-tier logs and configuration files requested by SAS Technical Support. The script creates a compressed log bundle that you can upload to your support case.

This procedure applies to SAS 9.4 middle-tier servers running Microsoft Windows or Linux.

Download the Script

  1. Open the SAS Technical Support Code repository.
  2. Select the script for your operating system:
    • Windows: collect_latest_midtier_logs_configs_s9.ps1
    • Linux: collect_latest_midtier_logs_configs_s9.sh
  3. Click Download raw file.
  4. Copy the script to the SAS middle-tier server.

Windows

Open PowerShell in the directory that contains the script and run the following command:

.\collect_latest_midtier_logs_configs_s9.ps1 -t all -d "C:\SAS\Config\Lev1" -w "C:\SASTemp"

Update the placeholders in the code as follows:

The script displays the location of the generated .tgz or .zip file when processing completes.

Linux

Make the script executable:

chmod 755 collect_latest_midtier_logs_configs_s9.sh

Then, run the script:

./collect_latest_midtier_logs_configs_s9.sh -t all -d /opt/sas/config/Lev1 -w /tmp

Update the placeholders in the code as follows:

Note: The zip command must be installed and available.

The script displays the location of the generated .zip file when processing completes.

Upload the Log Bundle

Upload the generated .tgz or .zip file to the SASTSDrive location (SAS KB0036136) for your SAS Technical Support case.