Check msmq queue Status –
some application are using with the feature installed called MSMQ which allow to the application to manage the queue if its sent by other clients .
to avoid from to many messages in the queue it’s recommended to monitor it !
and it can be done simply with powershell script ,which will tell you exactly what’s going on inside your queue you’re managed.
with this script below you’ll be able to check out the status of the private Queues on Server –
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
####### Check the Status of the Private Message Queue ###### cls $PrvMSMqReport = @() $prvque = Get-MsmqQueue -QueueType Private foreach ($pq in $prvque) { $hostname = $pq.MachineName $Qname = $pq.QueueName $MessageCount = $pq.MessageCount $time = get-date -format yyy-MM-dd/HH:mm:ss $row = new-object System.Object $row | Add-Member -type NoteProperty -Name ServerName -Value $hostname $row | Add-Member -type NoteProperty -Name QueueName -Value $Qname $row | Add-Member -type NoteProperty -Name MessageCount -Value $MessageCount $row | Add-Member -type NoteProperty -Name Time -Value $time.ToString() $PrvMSMqReport += $row } $PrvMSMqReport |
Whats going on with the Outgoing Message Queues ?
(Visited 5,388 times, 1 visits today)
Nice script. Is there a way to see the arrival time of each message?