Set-LMCollectorConfig
Syntax
Section titled “Syntax”Id-SnippetConf
Section titled “Id-SnippetConf”Set-LMCollectorConfig [-Id <int>] [-SnmpThreadPool <int>] [-SnmpPduTimeout <int>] [-ScriptThreadPool <int>] [-ScriptTimeout <int>] [-BatchScriptThreadPool <int>] [-BatchScriptTimeout <int>] [-PowerShellSPSEProcessCountMin <int>] [-PowerShellSPSEProcessCountMax <int>] [-NetflowEnable <bool>] [-NbarEnable <bool>] [-NetflowPorts <string[]>] [-SflowPorts <string[]>] [-LMLogsSyslogEnable <bool>] [-LMLogsSyslogHostnameFormat <string>] [-LMLogsSyslogPropertyName <string>] [-WaitForRestart] [-WhatIf] [-Confirm] [<CommonParameters>]Id-Conf
Section titled “Id-Conf”Set-LMCollectorConfig [-Id <int>] [-CollectorSize <string>] [-CollectorConf <string>] [-SbproxyConf <string>] [-WatchdogConf <string>] [-WebsiteConf <string>] [-WrapperConf <string>] [-WaitForRestart] [-WhatIf] [-Confirm] [<CommonParameters>]Name-SnippetConf
Section titled “Name-SnippetConf”Set-LMCollectorConfig [-Name <string>] [-SnmpThreadPool <int>] [-SnmpPduTimeout <int>] [-ScriptThreadPool <int>] [-ScriptTimeout <int>] [-BatchScriptThreadPool <int>] [-BatchScriptTimeout <int>] [-PowerShellSPSEProcessCountMin <int>] [-PowerShellSPSEProcessCountMax <int>] [-NetflowEnable <bool>] [-NbarEnable <bool>] [-NetflowPorts <string[]>] [-SflowPorts <string[]>] [-LMLogsSyslogEnable <bool>] [-LMLogsSyslogHostnameFormat <string>] [-LMLogsSyslogPropertyName <string>] [-WaitForRestart] [-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] [-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”-BatchScriptThreadPool
Section titled “-BatchScriptThreadPool”Specifies the batch script thread pool size for snippet configuration.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-BatchScriptTimeout
Section titled “-BatchScriptTimeout”Specifies the batch script timeout in seconds for snippet configuration.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CollectorConf
Section titled “-CollectorConf”Specifies the collector configuration file content.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CollectorSize
Section titled “-CollectorSize”Specifies the size of the collector. Valid values are “nano”, “small”, “medium”, “large”, “extra_large”, “double_extra_large”.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-Conf 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: ''Specifies the ID of the collector to configure.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: false- Name: Id-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LMLogsSyslogEnable
Section titled “-LMLogsSyslogEnable”Indicates whether LM Logs syslog is enabled for snippet configuration.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LMLogsSyslogHostnameFormat
Section titled “-LMLogsSyslogHostnameFormat”Specifies the hostname format for LM Logs syslog. Valid values: “IP”, “FQDN”, “HOSTNAME”.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LMLogsSyslogPropertyName
Section titled “-LMLogsSyslogPropertyName”Specifies the property name for LM Logs syslog configuration.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the name of the collector to configure.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-NbarEnable
Section titled “-NbarEnable”Indicates whether NBAR is enabled for snippet configuration.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-NetflowEnable
Section titled “-NetflowEnable”Indicates whether Netflow is enabled for snippet configuration.
Type: System.Nullable`1[System.Boolean]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-NetflowPorts
Section titled “-NetflowPorts”Specifies the Netflow ports for snippet configuration.
Type: System.String[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PowerShellSPSEProcessCountMax
Section titled “-PowerShellSPSEProcessCountMax”Specifies the maximum PowerShell SPSE process count for snippet configuration.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PowerShellSPSEProcessCountMin
Section titled “-PowerShellSPSEProcessCountMin”Specifies the minimum PowerShell SPSE process count for snippet configuration.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SbproxyConf
Section titled “-SbproxyConf”Specifies the sbproxy configuration file content.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ScriptThreadPool
Section titled “-ScriptThreadPool”Specifies the script thread pool size for snippet configuration.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ScriptTimeout
Section titled “-ScriptTimeout”Specifies the script timeout in seconds for snippet configuration.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SflowPorts
Section titled “-SflowPorts”Specifies the sFlow ports for snippet configuration.
Type: System.String[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SnmpPduTimeout
Section titled “-SnmpPduTimeout”Specifies the SNMP PDU timeout in milliseconds for snippet configuration.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SnmpThreadPool
Section titled “-SnmpThreadPool”Specifies the SNMP thread pool size for snippet configuration.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-SnippetConf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WaitForRestart
Section titled “-WaitForRestart”Indicates whether to wait for the collector restart to complete.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WatchdogConf
Section titled “-WatchdogConf”Specifies the watchdog configuration file content.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WebsiteConf
Section titled “-WebsiteConf”Specifies the website configuration file content.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-Conf 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: ''-WrapperConf
Section titled “-WrapperConf”Specifies the wrapper configuration file content.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-Conf Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-Conf 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.