< Back

Get-lmSdt

Sat Jan 18, 2020 9:52 am

NAME Get-lmSdt



SYNOPSIS

Removes scheduled downtime by device, user or time





SYNTAX

Get-lmSdt [[-Filter] <String[]>] [-Sort <String>] [-Field <String[]>] [-ItemLimit <Int32>] [<CommonParameters>]





DESCRIPTION

Pop pop





PARAMETERS

-Filter <String[]>

Filter using LogicMonitors filter spec:

property{operator}value

Uses wild card char "*"

where operator is one of:

Greater than or equals: >:

Less than or equals: <:

Greater than: >

Less than: <

Does not equal: !:

Equals: :

Includes: ~

Does not include: :



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Sort <String>

Sort by a property (+property or -property)



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Field <String[]>

Limit the returned fields



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ItemLimit <Int32>

Number of items to retrieve per call (for rate limiting)



Required? false

Position? named

Default value 500

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





LogicMonitor cares about capitalization, if it really matters, use ID.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>#Puts the device named "CORP-DC01" in Scheduled Downtime for the next 3 hours



Add-lmSdt -Type Device -Name CORP-DC01 -StartTime (Get-Date) -EndTime ((Get-Date).AddHours(3)) -Comment "DC is

acting up, rebooting and running some diagnostics"









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>#Puts a device in SDT by id for 3 hours at midnight the first of next month.



Add-lmSdt -Type Device -Id 966 -StartTime (Get-Date -day 1 -Hour 0 -minute 0 -second 0).AddMonths(1) -EndTime

(Get-Date -day 1 -Hour 3 -minute 0 -second 0).AddMonths(1)











RELATED LINKS