Get-LMCollectorInstaller
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”Get-LMCollectorInstaller -Id <Int32> [-Size <String>] [-OSandArch <String>] [-UseEA <Boolean>] [-DownloadPath <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Get-LMCollectorInstaller -Name <String> [-Size <String>] [-OSandArch <String>] [-UseEA <Boolean>] [-DownloadPath <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “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
Section titled “Examples”Example 1
Section titled “Example 1”#Download a Windows collector installerGet-LMCollectorInstaller -Id 123 -Size medium -OSandArch Win64 -DownloadPath "C:\Downloads"Example 2
Section titled “Example 2”#Download a Linux collector installer with Early AccessGet-LMCollectorInstaller -Name "Collector1" -OSandArch Linux64 -UseEA $trueParameters
Section titled “Parameters”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: FalseThe 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: FalseThe 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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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
Section titled “Inputs”None. You cannot pipe objects to this command.
Section titled “None. You cannot pipe objects to this command.”Outputs
Section titled “Outputs”Returns the path to the downloaded installer file.
Section titled “Returns the path to the downloaded installer file.”You must run Connect-LMAccount before running this command.