Skip to content

Set-LMCollectorConfig

Terminal window
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>]
Terminal window
Set-LMCollectorConfig [-Id <Int32>] [-CollectorSize <String>] [-CollectorConf <String>] [-SbproxyConf <String>]
[-WatchdogConf <String>] [-WebsiteConf <String>] [-WrapperConf <String>] [-WaitForRestart]
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
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>]
Terminal window
Set-LMCollectorConfig [-Name <String>] [-CollectorSize <String>] [-CollectorConf <String>]
[-SbproxyConf <String>] [-WatchdogConf <String>] [-WebsiteConf <String>] [-WrapperConf <String>]
[-WaitForRestart] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

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.

Terminal window
Set-LMCollectorConfig -Id 123 -CollectorSize "medium" -WaitForRestart
Updates the collector size and waits for the restart to complete.

Specifies the ID of the collector to configure.

Type: Int32
Parameter Sets: Id-SnippetConf, Id-Conf
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Specifies the name of the collector to configure.

Type: String
Parameter Sets: Name-SnippetConf, Name-Conf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the size of the collector. Valid values are “nano”, “small”, “medium”, “large”, “extra_large”, “double_extra_large”.

Type: String
Parameter Sets: Id-Conf, Name-Conf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the collector configuration file content.

Type: String
Parameter Sets: Id-Conf, Name-Conf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the sbproxy configuration file content.

Type: String
Parameter Sets: Id-Conf, Name-Conf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the watchdog configuration file content.

Type: String
Parameter Sets: Id-Conf, Name-Conf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the website configuration file content.

Type: String
Parameter Sets: Id-Conf, Name-Conf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the wrapper configuration file content.

Type: String
Parameter Sets: Id-Conf, Name-Conf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the SNMP thread pool size for snippet configuration.

Type: Int32
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the SNMP PDU timeout in milliseconds for snippet configuration.

Type: Int32
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the script thread pool size for snippet configuration.

Type: Int32
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the script timeout in seconds for snippet configuration.

Type: Int32
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the batch script thread pool size for snippet configuration.

Type: Int32
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the batch script timeout in seconds for snippet configuration.

Type: Int32
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the minimum PowerShell SPSE process count for snippet configuration.

Type: Int32
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the maximum PowerShell SPSE process count for snippet configuration.

Type: Int32
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Indicates whether Netflow is enabled for snippet configuration.

Type: Boolean
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Indicates whether NBAR is enabled for snippet configuration.

Type: Boolean
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the Netflow ports for snippet configuration.

Type: String[]
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the sFlow ports for snippet configuration.

Type: String[]
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Indicates whether LM Logs syslog is enabled for snippet configuration.

Type: Boolean
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the hostname format for LM Logs syslog. Valid values: “IP”, “FQDN”, “HOSTNAME”.

Type: String
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the property name for LM Logs syslog configuration.

Type: String
Parameter Sets: Id-SnippetConf, Name-SnippetConf
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Indicates whether to wait for the collector restart to complete.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

You can pipe objects containing Id properties to this function.

Section titled “You can pipe objects containing Id properties to this function.”

Returns a string indicating the status of the configuration update and restart operation.

Section titled “Returns a string indicating the status of the configuration update and restart operation.”

This function requires a valid LogicMonitor API authentication and will restart the collector.