New-LMNetscan
Syntax
Section titled “Syntax”New-LMNetscan [-CollectorId] <String> [-Name] <String> [[-Description] <String>] [[-ExcludeDuplicateType] <String>] [[-IgnoreSystemIpDuplicates] <Boolean>] [[-Method] <String>] [[-NextStart] <String>] [[-NextStartEpoch] <String>] [[-NetScanGroupId] <String>] [[-Schedule] <PSObject>] [-SubnetRange] <String> [[-CredentialGroupId] <String>] [[-CredentialGroupName] <String>] [[-ChangeNameToken] <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMNetScan function is used to create a new network scan in LogicMonitor. It sends a POST request to the LogicMonitor API to create the network scan with the specified parameters.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”New-LMNetScan -CollectorId "12345" -Name "MyNetScan" -SubnetRange "192.168.0.0/24"Creates a new network scan with the specified collector ID, name, and subnet range.Parameters
Section titled “Parameters”-CollectorId
Section titled “-CollectorId”The ID of the collector to use for the network scan. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseThe name of the network scan. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Description
Section titled “-Description”The description of the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ExcludeDuplicateType
Section titled “-ExcludeDuplicateType”The type of duplicate exclusion to apply. The default value is “1”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 4Default value: 1Accept pipeline input: FalseAccept wildcard characters: False-IgnoreSystemIpDuplicates
Section titled “-IgnoreSystemIpDuplicates”Specifies whether to ignore duplicate system IPs. The default value is $false.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: 5Default value: FalseAccept pipeline input: FalseAccept wildcard characters: False-Method
Section titled “-Method”The method to use for the network scan. Only “nmap” is supported. The default value is “nmap”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 6Default value: NmapAccept pipeline input: FalseAccept wildcard characters: False-NextStart
Section titled “-NextStart”The next start time for the network scan. The default value is “manual”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 7Default value: ManualAccept pipeline input: FalseAccept wildcard characters: False-NextStartEpoch
Section titled “-NextStartEpoch”The next start time epoch for the network scan. The default value is “0”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 8Default value: 0Accept pipeline input: FalseAccept wildcard characters: False-NetScanGroupId
Section titled “-NetScanGroupId”The ID of the network scan group to assign the network scan to. The default value is “1”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 9Default value: 1Accept pipeline input: FalseAccept wildcard characters: False-Schedule
Section titled “-Schedule”PSCustomObject containing schedule configuration for the netscan. If not provided, defaults to manual execution.
Type: PSObjectParameter Sets: (All)Aliases:
Required: FalsePosition: 10Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-SubnetRange
Section titled “-SubnetRange”The subnet range to scan. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 11Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-CredentialGroupId
Section titled “-CredentialGroupId”The ID of the credential group to use 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 use for the network scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 13Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ChangeNameToken
Section titled “-ChangeNameToken”The token to use for changing the name of discovered devices. The default value is “##REVERSEDNS##”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 14Default value: ##REVERSEDNS##Accept 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.