New-LMNetscan
Syntax
Section titled “Syntax”__AllParameterSets
Section titled “__AllParameterSets”New-LMNetscan [-CollectorId] <string> [-Name] <string> [[-Description] <string>] [[-ExcludeDuplicateType] <string>] [[-IgnoreSystemIpDuplicates] <bool>] [[-Method] <string>] [[-NextStart] <string>] [[-NextStartEpoch] <string>] [[-NetScanGroupId] <string>] [[-Schedule] <psobject>] [-SubnetRange] <string> [[-CredentialGroupId] <string>] [[-CredentialGroupName] <string>] [[-ChangeNameToken] <string>] [-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”-ChangeNameToken
Section titled “-ChangeNameToken”The token to use for changing the name of discovered devices. The default value is “##REVERSEDNS##”.
Type: System.StringDefaultValue: '##REVERSEDNS##'SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 13 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CollectorId
Section titled “-CollectorId”The ID of the collector to use for the network scan. This parameter is mandatory.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 0 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CredentialGroupId
Section titled “-CredentialGroupId”The ID of the credential group to use for the network scan.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 11 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CredentialGroupName
Section titled “-CredentialGroupName”The name of the credential group to use for the network scan.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 12 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”The description of the network scan.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 2 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ExcludeDuplicateType
Section titled “-ExcludeDuplicateType”The type of duplicate exclusion to apply. The default value is “1”.
Type: System.StringDefaultValue: 1SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 3 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-IgnoreSystemIpDuplicates
Section titled “-IgnoreSystemIpDuplicates”Specifies whether to ignore duplicate system IPs. The default value is $false.
Type: System.Nullable`1[System.Boolean]DefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 4 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Method
Section titled “-Method”The method to use for the network scan. Only “nmap” is supported. The default value is “nmap”.
Type: System.StringDefaultValue: nmapSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 5 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The name of the network scan. This parameter is mandatory.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 1 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-NetScanGroupId
Section titled “-NetScanGroupId”The ID of the network scan group to assign the network scan to. The default value is “1”.
Type: System.StringDefaultValue: 1SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 8 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-NextStart
Section titled “-NextStart”The next start time for the network scan. The default value is “manual”.
Type: System.StringDefaultValue: manualSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 6 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-NextStartEpoch
Section titled “-NextStartEpoch”The next start time epoch for the network scan. The default value is “0”.
Type: System.StringDefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 7 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Schedule
Section titled “-Schedule”PSCustomObject containing schedule configuration for the netscan. If not provided, defaults to manual execution.
Type: System.Management.Automation.PSObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 9 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SubnetRange
Section titled “-SubnetRange”The subnet range to scan. This parameter is mandatory.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 10 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.