Skip to content

Invoke-LMActiveDiscovery

Syntax

Id

Terminal window
Invoke-LMActiveDiscovery -Id <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]

Name

Terminal window
Invoke-LMActiveDiscovery -Name <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]

GroupId

Terminal window
Invoke-LMActiveDiscovery -GroupId <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]

GroupName

Terminal window
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

Terminal window
#Run active discovery on a device by ID
Invoke-LMActiveDiscovery -Id 12345

Example 2

Terminal window
#Run active discovery on a device group by name
Invoke-LMActiveDiscovery -GroupName "Production-Servers"

Parameters

-Id

The ID of the device to run active discovery on. Required for Id parameter set.

Type: Int32
Parameter Sets: Id
Aliases:
Required: True
Position: Named
Default value: 0
Accept 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: String
Parameter Sets: Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-GroupId

The ID of the device group to run active discovery on. Required for GroupId parameter set.

Type: String
Parameter Sets: GroupId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-GroupName

The name of the device group to run active discovery on. Required for GroupName parameter set.

Type: String
Parameter Sets: GroupName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept 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.