Set-LMCollector
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”Set-LMCollector -Id <int> [-Description <string>] [-BackupAgentId <int>] [-CollectorGroupId <int>] [-Properties <hashtable>] [-EnableFailBack <bool>] [-EnableFailOverOnCollectorDevice <bool>] [-EscalatingChainId <int>] [-SuppressAlertClear <bool>] [-ResendAlertInterval <int>] [-SpecifiedCollectorDeviceGroupId <int>] [-WhatIf] [-Confirm] [<CommonParameters>]Set-LMCollector -Name <string> [-Description <string>] [-BackupAgentId <int>] [-CollectorGroupId <int>] [-Properties <hashtable>] [-EnableFailBack <bool>] [-EnableFailOverOnCollectorDevice <bool>] [-EscalatingChainId <int>] [-SuppressAlertClear <bool>] [-ResendAlertInterval <int>] [-SpecifiedCollectorDeviceGroupId <int>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Set-LMCollector function modifies an existing collector’s settings in LogicMonitor, including its description, backup agent, group, and various properties.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”Set-LMCollector -Id 123 -Description "Updated collector" -EnableFailBack $trueUpdates the collector with ID 123 with a new description and enables fail-back.
Parameters
Section titled “Parameters”-BackupAgentId
Section titled “-BackupAgentId”Specifies the ID of the backup collector.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CollectorGroupId
Section titled “-CollectorGroupId”Specifies the ID of the collector group to which this collector should belong.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false 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: ''-Description
Section titled “-Description”Specifies a new description for the collector.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EnableFailBack
Section titled “-EnableFailBack”Specifies whether to enable fail-back functionality.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EnableFailOverOnCollectorDevice
Section titled “-EnableFailOverOnCollectorDevice”Specifies whether to enable fail-over on the collector device.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EscalatingChainId
Section titled “-EscalatingChainId”Specifies the ID of the escalation chain.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the ID of the collector to modify. This parameter is mandatory when using the ‘Id’ parameter set.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Id Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the name of the collector to modify. This parameter is mandatory when using the ‘Name’ parameter set.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Properties
Section titled “-Properties”Specifies a hashtable of custom properties to set for the collector.
Type: System.Collections.HashtableDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ResendAlertInterval
Section titled “-ResendAlertInterval”Specifies the interval for resending alerts.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SpecifiedCollectorDeviceGroupId
Section titled “-SpecifiedCollectorDeviceGroupId”Specifies the ID of the device group for the collector.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SuppressAlertClear
Section titled “-SuppressAlertClear”Specifies whether to suppress alert clear notifications.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false 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.