Skip to content

Export-LMLogicModule

Terminal window
Export-LMLogicModule -LogicModuleId <int> -Type <string> [-DownloadPath <string>]
[<CommonParameters>]
Terminal window
Export-LMLogicModule -LogicModuleName <string> -Type <string> [-DownloadPath <string>]
[<CommonParameters>]

The Export-LMLogicModule function exports LogicModules from LogicMonitor. It supports exporting various types of modules including datasources, property rules, event sources, and more.

Terminal window
#Export a LogicModule by ID
Export-LMLogicModule -LogicModuleId 1907 -Type "eventsources"
Terminal window
#Export a LogicModule by name
Export-LMLogicModule -LogicModuleName "SNMP_Network_Interfaces" -Type "datasources"

The path where the exported LogicModule will be saved. Defaults to current directory.

Type: System.String
DefaultValue: (Get-Location).Path
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The ID of the LogicModule to export. This parameter is mandatory when using the Id parameter set.

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases:
- Id
ParameterSets:
- Name: Id
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The name of the LogicModule to export. This parameter is mandatory when using the Name parameter set.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Name
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The type of LogicModule to export. Valid values are: “datasources”, “propertyrules”, “eventsources”, “topologysources”, “configsources”, “logsources”, “functions”, “oids”.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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.