For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-DSGatewayLogs

Sinopsis

Obtener los registros de un gateway

Sintaxis

__AllParameterSets

Get-DSGatewayLogs -GatewayID <guid> -OutputPath <string> [-AsLegacyResponse] [<CommonParameters>]

Descripción

Obtener los registros de un gateway. Los registros se almacenarán en la ruta especificada. Se requiere el módulo de Devolutions Gateway.

Ejemplos

PS C:\> $response = Get-DSGateway -All -AsLegacyResponse;
        $gateways  = $response.Data;
        $gateways | ForEach-Object {Get-DSGatewayLogs -GatewayID $_.Id -OutputPath "C:\my\path\filename_$_.Name.txt"}

Obtener los registros de todos los gateways y crear un fichero para cada uno de ellos.

Parámetros

-AsLegacyResponse

En versiones anteriores a 2024.2, muchos cmdlets de DS devolvían un objeto ServerResponse. Habilitar este modificador de compatibilidad retroactiva permite que los scripts desarrollados para versiones anteriores funcionen correctamente.

-GatewayID

ID del gateway

-OutputPath

Ruta, incluyendo el nombre y la extensión del fichero, donde se guardará el fichero.

CommonParameters

Este cmdlet admite los parámetros comunes: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction y -WarningVariable. Para más información, consulte about_CommonParameters.

Notas

Para más información, escriba "Get-Help Get-DSGatewayLogs -detailed". Para información técnica, escriba "Get-Help Get-DSGatewayLogs -full".

Última actualización

¿Te fue útil?