Endpoint Protection for Linux: sadiag displays warning or fails to run

book

Article ID: 164961

calendar_today

Updated On:

Products

Endpoint Protection

Issue/Introduction

You want to collect diagnostic information for the SEP (Symantec Endpoint Protection) Linux client and the script displays "unexpected operator" warning(s) or fails with "bad variable name".

[email protected]:/opt/Symantec/symantec_antivirus$ sudo ./sadiag.sh 
 
   sadiag.sh - Shell Antivirus DIAGnostic script
   v.0.066 - 2007-FEB-20
 
   Please wait while your data is gathered...
 
    7:35:08 Detecting operating system...
./sadiag.sh: 202: [: -a: unexpected operator
Distro: Unsupported Distribution, Unsupported revision
    7:35:08 Detecting system resources...
    7:35:08 Detecting network resources...
    7:35:09 Detecting software environment...
    7:35:09 Detecting Symantec shared resources...
    7:35:10 Performing LiveUpdate diagnostics...
    7:35:10 Detecting Symantec security products...
    7:35:15 Gathering bulk data...
Collecting install logs for SAVFL...
Collecting debug logs for SAVFL...
Collecting liveupdate logs for SAVFL...
Collecting configuration files for SAVFL...
./sadiag.sh: 131: local: sepfl.pem: bad variable name

Cause

This may be caused by running the sadiag script under a non-bash shell (e.g. dash or sh).

Resolution

The sadiag script is designed to run under the bash shell. Ensure bash is installed before running.

sadiag is installed with the SEP product and may be run explicitly with bash using the following command line:

sudo bash /opt/Symantec/symantec_antivirus/sadiag.sh

To avoid other unexpected behavior, please run the version of sadiag that is installed with your product. The sadiag script is maintained and supported just as the rest of the SEP is; if you suspect a problem with this script, please open a case with Symantec technical support.