Invoke-RASRetrieveAgentLogs
SYNOPSIS
Retrieves the Log files for one or more RAS Agents.
SYNTAX
Invoke-RASRetrieveAgentLogs [-InputObject] <RASAgentInfo[]> [-FilePath <string>]
[<CommonParameters>]Invoke-RASRetrieveAgentLogs [[-Server] <string>] [[-SiteId] <uint>] [-FilePath <string>]
[-ServerType {RDS | Provider | Gateway | Broker | HALBDevice | EnrollmentServer | All}]
[<CommonParameters>]DESCRIPTION
Retrieves the Log files for one or more RAS Agents.
For every RAS Agent log retrieved, a '.zip' file is generated. The output file path for every RAS Agent is returned.
EXAMPLES
Example 1
Retrieves log files for the specified RAS server.
The log files will be save in the default Parallels RAS log path.
Example 2
Retrieves log files for every RAS RDS Agent.
Example 3
Retrieves log files for the specified RAS server.
Log file names will be auto generated with this format: <ServerName>_<ServerType>_Logs_<Timestamp>.zip.
PARAMETERS
-FilePath
The path where the logs will be saved.
FilePath is optional. If not supplied, the logs are saved in default Parallels RAS log folder.
If any of these tags [<ServerName> | <ServerType> | <Timestamp>] are used in the filename, they will be replaced with a proper value.
-ServerType
Specifies the server type for which to retrieve the information.
Possible values: RDS, Provider, Gateway, Broker, HALBDevice, EnrollmentServer, All
Type reference: RASLogSrvType
-Server
The name of the RAS agent server.
The name can be either FQDN or IP address, but you have to enter the actual name this server has in the RAS farm.
-SiteId
Site ID in which to modify the specified server.
If the parameter is omitted, the site ID of the Licensing Server will be used.
-InputObject
The RAS agent info.
To obtain an RASAgentInfo object representing an RAS agent info list, use the Get-RASAgent command."
Type reference: RASAgentInfo[]
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
RASAgentInfo[]
OUTPUTS
RASFiles
RELATED LINKS
Last updated