Set-LMCollectorConfig
Syntax
Section titled “Syntax”Id-SnippetConf
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “Examples”Example 1
Section titled “Example 1”Set-LMCollectorConfig -Id 123 -CollectorSize "medium" -WaitForRestartUpdates the collector size and waits for the restart to complete.Parameters
Section titled “Parameters”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: FalseSpecifies 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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-SnmpThreadPool”Specifies the SNMP thread pool size for snippet configuration.
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-SnmpPduTimeout
Section titled “-SnmpPduTimeout”Specifies the SNMP PDU timeout in milliseconds for snippet configuration.
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ScriptThreadPool
Section titled “-ScriptThreadPool”Specifies the script thread pool size for snippet configuration.
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ScriptTimeout
Section titled “-ScriptTimeout”Specifies the script timeout in seconds for snippet configuration.
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-BatchScriptThreadPool
Section titled “-BatchScriptThreadPool”Specifies the batch script thread pool size for snippet configuration.
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-BatchScriptTimeout
Section titled “-BatchScriptTimeout”Specifies the batch script timeout in seconds for snippet configuration.
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PowerShellSPSEProcessCountMin
Section titled “-PowerShellSPSEProcessCountMin”Specifies the minimum PowerShell SPSE process count for snippet configuration.
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PowerShellSPSEProcessCountMax
Section titled “-PowerShellSPSEProcessCountMax”Specifies the maximum PowerShell SPSE process count for snippet configuration.
Type: Int32Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-NetflowEnable
Section titled “-NetflowEnable”Indicates whether Netflow is enabled for snippet configuration.
Type: BooleanParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-NbarEnable
Section titled “-NbarEnable”Indicates whether NBAR is enabled for snippet configuration.
Type: BooleanParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-NetflowPorts
Section titled “-NetflowPorts”Specifies the Netflow ports for snippet configuration.
Type: String[]Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-SflowPorts
Section titled “-SflowPorts”Specifies the sFlow ports for snippet configuration.
Type: String[]Parameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-LMLogsSyslogEnable
Section titled “-LMLogsSyslogEnable”Indicates whether LM Logs syslog is enabled for snippet configuration.
Type: BooleanParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-LMLogsSyslogHostnameFormat
Section titled “-LMLogsSyslogHostnameFormat”Specifies the hostname format for LM Logs syslog. Valid values: “IP”, “FQDN”, “HOSTNAME”.
Type: StringParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-LMLogsSyslogPropertyName
Section titled “-LMLogsSyslogPropertyName”Specifies the property name for LM Logs syslog configuration.
Type: StringParameter Sets: Id-SnippetConf, Name-SnippetConfAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WaitForRestart
Section titled “-WaitForRestart”Indicates whether to wait for the collector restart to complete.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-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
Section titled “-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
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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
Section titled “Inputs”You can pipe objects containing Id properties to this function.
Section titled “You can pipe objects containing Id properties to this function.”Outputs
Section titled “Outputs”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.