Invoke-LMActiveDiscovery
Syntax
Id
Invoke-LMActiveDiscovery -Id <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name
Invoke-LMActiveDiscovery -Name <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
GroupId
Invoke-LMActiveDiscovery -GroupId <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
GroupName
Invoke-LMActiveDiscovery -GroupName <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
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
Example 1
#Run active discovery on a device by IDInvoke-LMActiveDiscovery -Id 12345
Example 2
#Run active discovery on a device group by nameInvoke-LMActiveDiscovery -GroupName "Production-Servers"
Parameters
-Id
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: False
-Name
The 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
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
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
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 a success message if the task is scheduled successfully.
Notes
You must run Connect-LMAccount before running this command.