How to gather Symdiag logs without user interaction
search cancel

How to gather Symdiag logs without user interaction

book

Article ID: 381213

calendar_today

Updated On:

Products

Cloud Secure Web Gateway - Cloud SWG

Issue/Introduction

Is it possible to launch Symdiag for a specific time period without user interaction to start/stop process?

Is it possible to save Symdiag logs to a location without any user prompting?

Is it possible to launch Symdiag from the CLI?

 

Environment

WSS Agent.

macOS and Windows OS.

Resolution

Here is an example of a script that launches Symdiag from the CLI for 3 minutes, then drops the resulting file on the desktop.

1. Windows OS: needs SymDiagv3 (and run as Administrator)

  • SymDiagWin.exe sd-collect WssAgent,WssService sd-logging --for 3 sd-dest--file "%USERPROFILE%\Desktop\capture" sd-s
    • Add ",WssBlade" to the "sd-collect" parameter to collect for SEA Web Gateway
    • The "sd-s" option must always be listed last
    • File extension (.sdz3) is automatically added

2. MacOS: Launch wssa-diag.sh (run as root or with sudo to prevent password prompt) with following parameters:

  • wssa-diag.sh --trace-time 3 "${HOME}/Desktop/capture.wdbz”