Set-LMNetscan
Syntax
Set-LMNetscan [[-CollectorId] <String>] [[-Name] <String>] [-Id] <String> [[-Description] <String>] [[-ExcludeDuplicateType] <String>] [[-IgnoreSystemIpDuplpicates] <Boolean>] [[-Method] <String>] [[-NextStart] <String>] [[-NextStartEpoch] <String>] [[-NetScanGroupId] <String>] [[-SubnetRange] <String>] [[-CredentialGroupId] <String>] [[-CredentialGroupName] <String>] [[-Schedule] <PSObject>] [[-ChangeNameToken] <String>] [[-PortList] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Set-LMNetscan function modifies an existing NetScan configuration in LogicMonitor.
Examples
Example 1
Set-LMNetscan -Id 123 -Name "UpdatedScan" -Description "New description"Updates the NetScan with ID 123 with a new name and description.
Parameters
-CollectorId
Specifies the ID of the collector to use for the NetScan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Name
Specifies the name of the NetScan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Id
Specifies the ID of the NetScan to modify.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 3Default value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: False
-Description
Specifies the description for the NetScan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 4Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ExcludeDuplicateType
Specifies the type of duplicates to exclude.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 5Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-IgnoreSystemIpDuplpicates
Specifies whether to ignore system IP duplicates.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: 6Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Method
Specifies the scanning method to use.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 7Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NextStart
Specifies when the next scan should start.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 8Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NextStartEpoch
Specifies when the next scan should start in epoch time.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 9Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NetScanGroupId
Specifies the ID of the NetScan group.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 10Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-SubnetRange
Specifies the subnet range to scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 11Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CredentialGroupId
Specifies the ID of the credential group.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 12Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CredentialGroupName
Specifies the name of the credential group.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 13Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Schedule
Specifies the scanning schedule configuration.
Type: PSObjectParameter Sets: (All)Aliases:
Required: FalsePosition: 14Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ChangeNameToken
Specifies the token for changing names.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 15Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-PortList
Specifies the list of ports to scan.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 16Default 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
You can pipe objects containing Id properties to this function.
Outputs
Returns a LogicMonitor.NetScan object containing the updated scan configuration.
Notes
This function requires a valid LogicMonitor API authentication.