Invoke-LMActiveDiscovery
Syntax
Section titled “Syntax”Invoke-LMActiveDiscovery -Id <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]Invoke-LMActiveDiscovery -Name <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]GroupId
Section titled “GroupId”Invoke-LMActiveDiscovery -GroupId <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]GroupName
Section titled “GroupName”Invoke-LMActiveDiscovery -GroupName <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”The Invoke-LMActiveDiscovery function schedules an active discovery task for LogicMonitor devices. It can target individual devices or device groups using either ID or name.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”#Run active discovery on a device by IDInvoke-LMActiveDiscovery -Id 12345Example 2
Section titled “Example 2”#Run active discovery on a device group by nameInvoke-LMActiveDiscovery -GroupName "Production-Servers"Parameters
Section titled “Parameters”The ID of the device to run active discovery on. Required for Id parameter set.
Type: Int32Parameter Sets: IdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: True (ByPropertyName)Accept wildcard characters: FalseThe name of the device to run active discovery on. Required for Name parameter set.
Type: StringParameter Sets: NameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-GroupId
Section titled “-GroupId”The ID of the device group to run active discovery on. Required for GroupId parameter set.
Type: StringParameter Sets: GroupIdAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-GroupName
Section titled “-GroupName”The name of the device group to run active discovery on. Required for GroupName parameter set.
Type: StringParameter Sets: GroupNameAliases:
Required: TruePosition: NamedDefault value: NoneAccept 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 a success message if the task is scheduled successfully.
Section titled “Returns a success message if the task is scheduled successfully.”You must run Connect-LMAccount before running this command.