Set-LMCollectorConfig
Syntax
Id-SnippetConf
Set-LMCollectorConfig [-Id <Int32>] [-SnmpThreadPool <Int32>] [-SnmpPduTimeout <Int32>] [-ScriptThreadPool <Int32>] [-ScriptTimeout <Int32>] [-BatchScriptThreadPool <Int32>] [-BatchScriptTimeout <Int32>] [-PowerShellSPSEProcessCountMin <Int32>] [-PowerShellSPSEProcessCountMax <Int32>] [-NetflowEnable <Boolean>] [-NbarEnable <Boolean>] [-NetflowPorts <String[]>] [-SflowPorts <String[]>] [-LMLogsSyslogEnable <Boolean>] [-LMLogsSyslogHostnameFormat <String>] [-LMLogsSyslogPropertyName <String>] [-WaitForRestart] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Id-Conf
Set-LMCollectorConfig [-Id <Int32>] [-CollectorSize <String>] [-CollectorConf <String>] [-SbproxyConf <String>] [-WatchdogConf <String>] [-WebsiteConf <String>] [-WrapperConf <String>] [-WaitForRestart] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Name-SnippetConf
Set-LMCollectorConfig [-Name <String>] [-SnmpThreadPool <Int32>] [-SnmpPduTimeout <Int32>] [-ScriptThreadPool <Int32>] [-ScriptTimeout <Int32>] [-BatchScriptThreadPool <Int32>] [-BatchScriptTimeout <Int32>] [-PowerShellSPSEProcessCountMin <Int32>] [-PowerShellSPSEProcessCountMax <Int32>] [-NetflowEnable <Boolean>] [-NbarEnable <Boolean>] [-NetflowPorts <String[]>] [-SflowPorts <String[]>] [-LMLogsSyslogEnable <Boolean>] [-LMLogsSyslogHostnameFormat <String>] [-LMLogsSyslogPropertyName <String>] [-WaitForRestart] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Name-Conf
Set-LMCollectorConfig [-Name <String>] [-CollectorSize <String>] [-CollectorConf <String>] [-SbproxyConf <String>] [-WatchdogConf <String>] [-WebsiteConf <String>] [-WrapperConf <String>] [-WaitForRestart] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Description
The Set-LMCollectorConfig function modifies detailed configuration settings for a collector, including SNMP settings, script settings, and various other parameters. This operation will restart the collector.
Examples
Example 1
Set-LMCollectorConfig -Id 123 -CollectorSize "medium" -WaitForRestartUpdates the collector size and waits for the restart to complete.
Parameters
-Id
Specifies the ID of the collector to configure.
Type: Int32Parameter Sets: Id-SnippetConf, Id-ConfAliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: True (ByPropertyName)Accept wildcard characters: False
-Name
Specifies the name of the collector to configure.
Type: StringParameter Sets: Name-SnippetConf, Name-ConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CollectorSize
Specifies the size of the collector. Valid values are “nano”, “small”, “medium”, “large”, “extra_large”, “double_extra_large”.
Type: StringParameter Sets: Id-Conf, Name-ConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CollectorConf
Specifies the collector configuration file content.
Type: StringParameter Sets: Id-Conf, Name-ConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-SbproxyConf
Specifies the sbproxy configuration file content.
Type: StringParameter Sets: Id-Conf, Name-ConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-WatchdogConf
Specifies the watchdog configuration file content.
Type: StringParameter Sets: Id-Conf, Name-ConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-WebsiteConf
Specifies the website configuration file content.
Type: StringParameter Sets: Id-Conf, Name-ConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-WrapperConf
Specifies the wrapper configuration file content.
Type: StringParameter Sets: Id-Conf, Name-ConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-SnmpThreadPool
Fill SnmpThreadPool Description
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-SnmpPduTimeout
Fill SnmpPduTimeout Description
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ScriptThreadPool
Fill ScriptThreadPool Description
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ScriptTimeout
Fill ScriptTimeout Description
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-BatchScriptThreadPool
Fill BatchScriptThreadPool Description
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-BatchScriptTimeout
Fill BatchScriptTimeout Description
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-PowerShellSPSEProcessCountMin
Fill PowerShellSPSEProcessCountMin Description
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-PowerShellSPSEProcessCountMax
Fill PowerShellSPSEProcessCountMax Description
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NetflowEnable
Fill NetflowEnable Description
Type: BooleanParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NbarEnable
Fill NbarEnable Description
Type: BooleanParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-NetflowPorts
Fill NetflowPorts Description
Type: String[]Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-SflowPorts
Fill SflowPorts Description
Type: String[]Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-LMLogsSyslogEnable
Fill LMLogsSyslogEnable Description
Type: BooleanParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-LMLogsSyslogHostnameFormat
Fill LMLogsSyslogHostnameFormat Description
Type: StringParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-LMLogsSyslogPropertyName
Fill LMLogsSyslogPropertyName Description
Type: StringParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-WaitForRestart
Indicates whether to wait for the collector restart to complete.
[Additional parameters for snippet configuration omitted for brevity]
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False
-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
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
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 string indicating the status of the configuration update and restart operation.
Notes
This function requires a valid LogicMonitor API authentication and will restart the collector.