New-LMEnhancedNetScan
Syntax
Section titled “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>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “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
Section titled “Examples”Example 1
Section titled “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
Section titled “Parameters”-CollectorId
Section titled “-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: FalseThe name of the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-NetScanGroupName
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-Description”A description of the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 6Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ExcludeDuplicateType
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: 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”Outputs
Section titled “Outputs”For more information about LogicMonitor network scans, refer to the LogicMonitor documentation.