Skip to content

Commit

Permalink
Merge pull request #1860 from chrismcgurk/patch-1
Browse files Browse the repository at this point in the history
Add example command to delete a previously created data collector set
  • Loading branch information
bill-long authored Oct 20, 2023
2 parents cc2e168 + 8afe201 commit 2c0872d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Diagnostics/ExTRA/ExTRA.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ param(
. $PSScriptRoot\GetTagsFromFileContent.ps1

function ShowCommandToHost {
Write-Host "The trace can be created, started, and stopped from the command line or PowerShell"
Write-Host "The trace can be created, deleted, started, and stopped from the command line or PowerShell"
Write-Host
Write-Host "To delete a previously created data collector set:"
Write-Host
Write-Host "logman delete ExchangeDebugTraces" -ForegroundColor Green
Write-Host
Write-Host "To create a data collector which is non-circular and stops at 1 GB:"
Write-Host
Expand Down
8 changes: 6 additions & 2 deletions Diagnostics/ExTRA/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ <h5>Tags</h5>

</div>
<div class="row hidden" id="syntaxDiv">
<p>The trace can be created, started, and stopped from the command line or PowerShell.</p>
<p>The trace can be created, deleted, started, and stopped from the command line or PowerShell.</p>
<p>To delete a previously existing data collector set:</p>
<p class="black green-text code">
<code>logman delete ExchangeDebugTraces</code>
</p>
<p>To create a data collector which is non-circular and stops at 1 GB:</p>
<p class="black green-text code">
<code>logman create trace ExchangeDebugTraces -p "{79bb49e6-2a2c-46e4-9167-fa122525d540}" -o c:\tracing\trace.etl -ow -f bin -max 1024 -mode globalsequence</code>
Expand Down Expand Up @@ -371,4 +375,4 @@ <h5>Tags</h5>
</div>
</body>

</html>
</html>

0 comments on commit 2c0872d

Please sign in to comment.