New-LMEnhancedNetScan
Syntax
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>] [<CommonParameters>]
Description
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.
Examples
Example 1
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.
Parameters
-CollectorId
The ID of the collector where the network scan will be executed.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Name
The name of the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NetScanGroupName
The name of the net scan group.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CustomCredentials
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: FalsePosition: 4Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Filters
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: FalsePosition: 5Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Description
A description of the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 6Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ExcludeDuplicateType
The type of duplicates to be excluded. Default value is “1”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 7Default value: 1Accept pipeline input: FalseAccept wildcard characters: False
-Method
The method to be used for the network scan. Default value is “enhancedScript”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 8Default value: EnhancedScriptAccept pipeline input: FalseAccept wildcard characters: False
-NextStart
The next start time for the network scan. Default value is “manual”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 9Default value: ManualAccept pipeline input: FalseAccept wildcard characters: False
-NextStartEpoch
The next start epoch for the network scan. Default value is “0”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 10Default value: 0Accept pipeline input: FalseAccept wildcard characters: False
-GroovyScript
The Groovy script to be executed during the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 11Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CredentialGroupId
The ID of the credential group to be used for the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 12Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CredentialGroupName
The name of the credential group to be used for the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 13Default 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
Outputs
Notes
For more information about LogicMonitor network scans, refer to the LogicMonitor documentation.