Forum Discussion

mpunderw's avatar
27 days ago

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. 

 

 

 

4 Replies

    • mpunderw's avatar
      mpunderw

      I'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's avatar
      mpunderw

      If 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

       

  • In 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