Exchange get transport queues

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Mark Prior Mark Prior 6 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36030
    Profile photo of Mark Prior
    Mark Prior
    Participant

    Hi all

    no issues getting the details i want with the below

    Write-Output "EURXMBS03 QUEUE STATUS"
    Get-MailboxDatabaseCopyStatus -Server eurxmbs03 |select mailboxserver, name, replayqueuelength, COPYqueuelength, status

    MailboxServer : EURXMBS03
    Name : eu_dag1_db1\EURXMBS03
    ReplayQueueLength : 1
    CopyQueueLength : 0
    Status : Healthy

    MailboxServer : EURXMBS03
    Name : eu_dag1_db2\EURXMBS03
    ReplayQueueLength : 1
    CopyQueueLength : 1
    Status : Healthy

    MailboxServer : EURXMBS03
    Name : eu_dag1_db3\EURXMBS03
    ReplayQueueLength : 2
    CopyQueueLength : 0
    Status : Healthy

    MailboxServer : EURXMBS03
    Name : eu_dag1_db4\EURXMBS03
    ReplayQueueLength : 1
    CopyQueueLength : 0
    Status : Healthy

    MailboxServer : EURXMBS03
    Name : eu_dag1_db6\EURXMBS03
    ReplayQueueLength : 1
    CopyQueueLength : 0
    Status : Healthy

    MailboxServer : EURXMBS03
    Name : eu_dag1_db5\EURXMBS03
    ReplayQueueLength : 0
    CopyQueueLength : 62511077
    Status : Seeding

    however im after and IF any "copyqueuelength" = > 50 then output the above results to a file

    one to many beers last night = zero concentration for today 🙂

    #36034
    Profile photo of Aapeli Hietikko
    Aapeli Hietikko
    Participant

    Just one where to the end. I hope i got it right. Im replying from phone 🙂

    Edit:
    No that wasnt what you want but Add If .count -ge 1 do export-CSV.

    Write-Output "EURXMBS03 QUEUE STATUS"
    Get-MailboxDatabaseCopyStatus -Server eurxmbs03 |select mailboxserver, name, replayqueuelength, COPYqueuelength, status | where {$_.copyqueuelength -ge 50}
    
    #36272
    Profile photo of Mark Prior
    Mark Prior
    Participant

    Thanks 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.