Skip to content

New-LMEnhancedNetScan

Terminal window
New-LMEnhancedNetscan [-CollectorId] <String> [-Name] <String> [[-NetScanGroupName] <String>]
[[-CustomCredentials] <System.Collections.Generic.List`1[System.Management.Automation.PSObject]>]
[[-Filters] <System.Collections.Generic.List`1[System.Management.Automation.PSObject]>]
[[-Description] <String>] [[-ExcludeDuplicateType] <String>] [[-Method] <String>] [[-NextStart] <String>]
[[-NextStartEpoch] <String>] [[-GroovyScript] <String>] [[-CredentialGroupId] <String>]
[[-CredentialGroupName] <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
[<CommonParameters>]

The New-LMEnhancedNetScan function creates a new enhanced network scan in LogicMonitor. It allows you to specify various parameters such as the collector ID, name, net scan group name, custom credentials, filters, description, exclude duplicate type, method, next start, next start epoch, Groovy script, credential group ID, and credential group name.

Terminal window
New-LMEnhancedNetScan -CollectorId "12345" -Name "MyNetScan" -NetScanGroupName "Group1" -CustomCredentials $customCreds -Filters $filters -Description "This is a network scan" -ExcludeDuplicateType "1" -Method "enhancedScript" -NextStart "manual" -NextStartEpoch "0" -GroovyScript "script" -CredentialGroupId "67890" -CredentialGroupName "Group2"

This example creates a new enhanced network scan with the specified parameters.

The ID of the collector where the network scan will be executed.

Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

The name of the network scan.

Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

The name of the net scan group.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

A list of custom credentials to be used for the network scan.

Type: System.Collections.Generic.List`1[System.Management.Automation.PSObject]
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

A list of filters to be applied to the network scan.

Type: System.Collections.Generic.List`1[System.Management.Automation.PSObject]
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

A description of the network scan.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

The type of duplicates to be excluded. Default value is “1”.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False

The method to be used for the network scan. Default value is “enhancedScript”.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value: EnhancedScript
Accept pipeline input: False
Accept wildcard characters: False

The next start time for the network scan. Default value is “manual”.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 9
Default value: Manual
Accept pipeline input: False
Accept wildcard characters: False

The next start epoch for the network scan. Default value is “0”.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 10
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

The Groovy script to be executed during the network scan.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 11
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

The ID of the credential group to be used for the network scan.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 12
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

The name of the credential group to be used for the network scan.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 13
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

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

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

For more information about LogicMonitor network scans, refer to the LogicMonitor documentation.