Set-NetIntentTracing

Starts or stops ATC tracing sessions on the host.

Syntax

Set-NetIntentTracing
   [-StopTracing]
   [[-ComputerName] <String>]

Description

The Set-NetIntentTracing cmdlet starts or stops ATC tracing sessions on the specified host. Tracing sessions are useful for diagnosing issues related to network intents by capturing relevant data.

Examples

Example 1

Set-NetIntentTracing -ComputerName "Server01"

This example starts an ATC tracing session on the computer named Server01.

Example 2

Set-NetIntentTracing -StopTracing -ComputerName "Server01"

This example stops an ATC tracing session on the computer named Server01.

Parameters

-ComputerName

Specifies the name of the computer on which to start or stop the tracing session. If this parameter is not specified, the cmdlet operates on the local computer.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StopTracing

Indicates that the cmdlet should stop the tracing session instead of starting it.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

[switch] $StopTracing, switch to stop tracing

[string] $ComputerName, target computer name