Get-LMCollectorInstaller
Syntax
Id (Default)
Get-LMCollectorInstaller -Id <Int32> [-Size <String>] [-OSandArch <String>] [-UseEA <Boolean>] [-DownloadPath <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name
Get-LMCollectorInstaller -Name <String> [-Size <String>] [-OSandArch <String>] [-UseEA <Boolean>] [-DownloadPath <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Get-LMCollectorInstaller function downloads the LogicMonitor Collector installer based on the specified parameters. It supports different operating systems, architectures, and collector sizes, and can download either standard or Early Access (EA) versions.
Examples
Example 1
#Download a Windows collector installerGet-LMCollectorInstaller -Id 123 -Size medium -OSandArch Win64 -DownloadPath "C:\Downloads"
Example 2
#Download a Linux collector installer with Early AccessGet-LMCollectorInstaller -Name "Collector1" -OSandArch Linux64 -UseEA $true
Parameters
-Id
The ID of the collector to download the installer for. This parameter is mandatory when using the Id parameter set.
Type: Int32Parameter Sets: IdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-Name
The name of the collector to download the installer for. This parameter is mandatory when using the Name parameter set.
Type: StringParameter Sets: NameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Size
The size of the collector to install. Valid values are ‘nano’, ‘small’, ‘medium’, ‘large’, ‘extra_large’, ‘double_extra_large’. Defaults to ‘medium’.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: MediumAccept pipeline input: FalseAccept wildcard characters: False
-OSandArch
The operating system and architecture for the installer. Valid values are ‘Win64’, ‘Linux64’. Defaults to ‘Win64’.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: Win64Accept pipeline input: FalseAccept wildcard characters: False
-UseEA
Switch to use the Early Access version of the collector. Defaults to $false.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False
-DownloadPath
The path where the installer file will be saved. Defaults to the current directory.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: (Get-Location).PathAccept pipeline input: FalseAccept wildcard characters: False
-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
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
None. You cannot pipe objects to this command.
Outputs
Returns the path to the downloaded installer file.
Notes
You must run Connect-LMAccount before running this command.