You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> To diagnose Always On availability group health issues that trigger availability group failover, see [Troubleshoot Always On Availability Groups failover](troubleshooting-availability-group-failover.md).
12
12
13
-
AGDiag is an application that automates the manual analysis described in the article (mentioned in the **Note** section). It analyzes the cluster log and correlates and reports pertinent events from the other logs (SQL Server error logs, Windows event logs, and so on). It generates a summary report of Windows Cluster and Always On health events and then provides more detailed analysis results for each health event detected. It automates much of the work described in the article (mentioned in the **Note** section) when the proper logs are provided from the availability group primary replica at the time of the health event.
13
+
AGDiag is an application that automates the manual analysis described in the article (mentioned in the **Note** section). It analyzes the cluster log and correlates and reports pertinent events from the other logs (SQL Server error logs, Windows event logs, and so on). It generates a summary report of Windows Cluster and Always On health events and then provides more detailed analysis results for each health event detected. It automates much of the work described in the article (mentioned in the **Note** section) when you provide the proper logs from the availability group primary replica at the time of the health event.
14
14
15
15
## Generate logs for AGDiag to diagnose
16
16
@@ -29,11 +29,11 @@ Besides manually collecting these logs, you can use either of the following log
29
29
30
30
### Use SQL LogScout to capture logs for AGDiag analysis
31
31
32
-
To diagnose an availability group health event, use the SQL LogScout to collect logs on the SQL Server instance that was in the primary role at the time of the event:
32
+
To diagnose an availability group health event, use SQL LogScout to collect logs on the SQL Server instance that was in the primary role at the time of the event:
33
33
34
34
1. Download the latest [SQL LogScout](https://aka.ms/get-sqllogscout) as zip file.
35
35
1. Save and extract the zip file on the machine where SQL Server hosts the primary replica. This system is where the failover started or the availability group was resolving.
36
-
1. Open an elevated PowerShell command (Run as Administrator), change the directory to the SQL LogScout folder where the zip file was extracted.
36
+
1. Open an elevated PowerShell command (Run as Administrator), change the directory to the SQL LogScout folder where you extracted the zip file.
37
37
1. Run the following command to capture the `Basic` scenario and follow the prompts.
38
38
39
39
```PowerShell
@@ -42,21 +42,21 @@ To diagnose an availability group health event, use the SQL LogScout to collect
42
42
43
43
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/launch-sql-logscout-powershell.png" alt-text="Screenshot of starting SQL LogScout from an elevated PowerShell command window":::
44
44
45
-
1.Once the log capture process is complete, you can point AGDiag to the `\output` folder created inside the SQL LogScout folder. This folder contains the logs collected by SQL LogScout.
45
+
1.When the log capture process completes, you can point AGDiag to the `\output` folder created inside the SQL LogScout folder. This folder contains the logs collected by SQL LogScout.
46
46
47
47
### Use TSS to generate logs for AGDiag to diagnose
48
48
49
-
Alternatively, you can capture the logs using the TSS on the SQL Server instance that was in the primary role at the time of the event:
49
+
Alternatively, you can capture the logs by using TSS on the SQL Server instance that was in the primary role at the time of the event:
50
50
51
51
1. Download the toolset ([TSSv2.zip](https://aka.ms/getTSS)) as a zip file. For more information, see [Introduction to TroubleShootingScript toolset (TSSv2)](../../../windows-client/windows-troubleshooters/introduction-to-troubleshootingscript-toolset-tssv2.md).
52
52
53
53
1. Save and extract the zip file to a folder on the SQL Server instance that hosted the availability group primary replica when the failover started or the availability group was resolving.
54
54
55
-
1. Open an elevated command prompt, change the directory to the TSS folder where the zip file *TSSv2.zip*was saved and extracted, run `TSS SDP:SQLBase`, and respond to the prompts.
55
+
1. Open an elevated command prompt, change the directory to the TSS folder where you saved and extracted the *TSSv2.zip*file, run `TSS SDP:SQLBase`, and respond to the prompts.
56
56
57
57
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/command-prompt-tss.png" alt-text="Screenshot of the elevated command prompt changing the directory to the TSS folder." lightbox="media/use-agdiag-diagnose-availability-group-health-events/command-prompt-tss.png":::
58
58
59
-
1.Once the TSS creates the SQLBase cab file, extract the cab file into a folder.
59
+
1.When TSS creates the SQLBase cab file, extract the cab file into a folder.
60
60
61
61
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/extract-tss-sqlbase-cab.png" alt-text="Screenshot of extracting the SQLBase cab file to a folder." lightbox="media/use-agdiag-diagnose-availability-group-health-events/extract-tss-sqlbase-cab.png":::
62
62
@@ -71,7 +71,7 @@ To download AGDiag, follow these steps:
71
71
72
72
## Launch AGDiag and feed it the unzipped TSS logs
73
73
74
-
Once the tool is downloaded, follow these steps to launch AGDiag and feed it the unzipped TSS logs:
74
+
After you download the tool, follow these steps to launch AGDiag and feed it the unzipped TSS logs:
75
75
76
76
1. Extract the zip and double-click *agdiag.exe* to launch AGDiag.
77
77
@@ -83,13 +83,13 @@ Once the tool is downloaded, follow these steps to launch AGDiag and feed it the
83
83
84
84
## Interpret the AGDiag report
85
85
86
-
The AGDiag report should be launched in the default system browser. The following illustrations help you interpret the report.
86
+
The default system browser launches the AGDiag report. The following illustrations help you interpret the report.
87
87
88
88
- The following AGDiag Splash Screen describes AGDiag capabilities and version information:
89
89
90
90
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/agdiag-splash-screen.png" alt-text="Screenshot of the AGDiag Splash Screen." lightbox="media/use-agdiag-diagnose-availability-group-health-events/agdiag-splash-screen.png":::
91
91
92
-
- AGDiag reports on the logs analyzed in the initialize section. To see more detailed information, select the triangles (highlighted in red boxes in the following image).
92
+
- AGDiag reports on the logs it analyzes in the initialize section. To see more detailed information, select the triangles (highlighted in red boxes in the following image).
93
93
94
94
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/agdiag-report.png" alt-text="Screenshot of the AGDiag reports on the logs." lightbox="media/use-agdiag-diagnose-availability-group-health-events/agdiag-report.png":::
0 commit comments