PowerShell Module 7.4.3 Missing cmdlets
I'm trying to pull a list of alerts for a device, and in the LM documentation, there is a cmdlet called Get-LMDeviceAlerts, https://logicmonitor.github.io/lm-powershell-module-docs/documentation/devices/get-lmdevicealerts/.
But when I try running the command, I get an error.
Get-LMDeviceAlerts : The term 'Get-LMDeviceAlerts' is not recognized as the name of a cmdlet, function, script file, or operable program.
When I do: Get-Command -Module Logic.Monitor | WHERE Name -eq "Get-LMDeviceAlerts", it returns nothing.
I've tried removing and re-importing the module and still no cmdlet.
mpunderw
Posted 11 months ago·Last reply 11 months ago
4 comments
mpunderw
OP11 months agoIn fact, here are a list of cmdlets from their website that aren't in the current module:
Get-LMCollectorVersions
Get-LMCostOptimizationRecommendation
Get-LMCostOptimizationRecommendationCategory
Get-LMCostOptimizationRecommendations
Get-LMDatasourceMetadata
Get-LMDeviceAlerts
Get-LMDeviceGroupGroup
Get-LMNormalizedProperty
Get-LMService
Get-LMServiceMember
New-LMNormalizedProperty
Remove-LMNormalizedProperty
Set-LMNormalizedProperty
Set-LMUserdata
Mike Moniz
·11 months agoIt looks like the function is actually "Get-LMDeviceAlert" (not plural): https://github.com/logicmonitor/lm-powershell-module/blob/main/Public/Get-LMDeviceAlerts.ps1
mpunderw
OP11 months agoI've also tried Get-LMDeviceAlerts, Get-LMDevicesAlert, and Get-LMDevicesAlerts. None work. There is no Get-LMDeivceAlert or its variants in the 7.4.3 PowerShell module.
mpunderw
OP11 months agoIf you run Get-Command -Module Logic.Monitor | Sort Name, you can get a list of all of the cmdlets in the module and attached you can see there is not Get-LMDeviceAlert