Export-LMLogicModule
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”Export-LMLogicModule -LogicModuleId <int> -Type <string> [-DownloadPath <string>] [<CommonParameters>]Export-LMLogicModule -LogicModuleName <string> -Type <string> [-DownloadPath <string>] [<CommonParameters>]Description
Section titled “Description”The Export-LMLogicModule function exports LogicModules from LogicMonitor. It supports exporting various types of modules including datasources, property rules, event sources, and more.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”#Export a LogicModule by IDExport-LMLogicModule -LogicModuleId 1907 -Type "eventsources"EXAMPLE 2
Section titled “EXAMPLE 2”#Export a LogicModule by nameExport-LMLogicModule -LogicModuleName "SNMP_Network_Interfaces" -Type "datasources"Parameters
Section titled “Parameters”-DownloadPath
Section titled “-DownloadPath”The path where the exported LogicModule will be saved. Defaults to current directory.
Type: System.StringDefaultValue: (Get-Location).PathSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LogicModuleId
Section titled “-LogicModuleId”The ID of the LogicModule to export. This parameter is mandatory when using the Id parameter set.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases:- IdParameterSets:- Name: Id Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LogicModuleName
Section titled “-LogicModuleName”The name of the LogicModule to export. 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: ''The type of LogicModule to export. Valid values are: “datasources”, “propertyrules”, “eventsources”, “topologysources”, “configsources”, “logsources”, “functions”, “oids”.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: true 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.