| Author |
Message |
Russ
Guest
|
Posted:
Fri Dec 17, 2004 12:41 am Post subject:
Queue Monitoring - ms exchange 2000 / 2003 |
|
|
Hello,
I am looking to track messages on ms exchange 2000 / 2003 queues using an
api, ie for a given queue, determine the number of messages and the detail of
those messages (message ids). Could you suggest a suitable api(s)?
Regards
Mike
|
|
| Back to top |
|
 |
Glen Scales [MVP]
Guest
|
Posted:
Fri Dec 17, 2004 6:04 am Post subject:
Re: Queue Monitoring - ms exchange 2000 / 2003 |
|
|
WMI is the API that you what to have a look at download the Exchange SDK
from http://msdn.microsoft.com/exchange and have a look at WMI in the
Reference section. There are some differences in 2000 to 2003 there are a
lot more WMI classes available to do this type of thing now under 2003 but
you should be able to still do what you want to under 2000.
Cheers
Glen
"Russ" <Russ@discussions.microsoft.com> wrote in message
news:F4EAB99F-E27B-4DB4-93CD-D59C2C13B24C@microsoft.com...
| Quote: | Hello,
I am looking to track messages on ms exchange 2000 / 2003 queues using an
api, ie for a given queue, determine the number of messages and the detail
of
those messages (message ids). Could you suggest a suitable api(s)?
Regards
Mike |
|
|
| Back to top |
|
 |
Russ
Guest
|
Posted:
Sat Dec 18, 2004 12:03 am Post subject:
Re: Queue Monitoring - ms exchange 2000 / 2003 |
|
|
The Exchange_Queue class has a CanEnumAll property which indicates whether
the queue can enumerate all messages that it contains. How do we enumerate
the messages ? Via the Exchange_Queued_Message class ?
"Glen Scales [MVP]" wrote:
| Quote: | WMI is the API that you what to have a look at download the Exchange SDK
from http://msdn.microsoft.com/exchange and have a look at WMI in the
Reference section. There are some differences in 2000 to 2003 there are a
lot more WMI classes available to do this type of thing now under 2003 but
you should be able to still do what you want to under 2000.
Cheers
Glen
"Russ" <Russ@discussions.microsoft.com> wrote in message
news:F4EAB99F-E27B-4DB4-93CD-D59C2C13B24C@microsoft.com...
Hello,
I am looking to track messages on ms exchange 2000 / 2003 queues using an
api, ie for a given queue, determine the number of messages and the detail
of
those messages (message ids). Could you suggest a suitable api(s)?
Regards
Mike
|
|
|
| Back to top |
|
 |
Glen Scales [MVP]
Guest
|
Posted:
Mon Dec 20, 2004 6:28 am Post subject:
Re: Queue Monitoring - ms exchange 2000 / 2003 |
|
|
Yes but when your using the Exchange_QueuedMessage class make sure you query
it with the key values for your queue
(linkid,linkname,queueid,queuename,protocol,virtualmachine,virtualserver) .
eg
Select * From Exchange_QueuedMessage Where
LinkId='{68A9F027-2B10-4D16-90EB-E47203521557}/46151108/46151112' And
LinkName='DeferredDeliveryQueue' And ProtocolName='SMTP' And
QueueId='{0C92D8DD-6FF6-4450-8A3D-C3A107D53CB9}/46154372/46154376' And
QueueName='DeferredDeliveryQueue' And VirtualMachine='servername' And
VirtualServerName='1'
Cheers
Glen
"Russ" <Russ@discussions.microsoft.com> wrote in message
news:6C2DC620-4A91-4435-A23B-25AEF46AB691@microsoft.com...
| Quote: | The Exchange_Queue class has a CanEnumAll property which indicates whether
the queue can enumerate all messages that it contains. How do we
enumerate
the messages ? Via the Exchange_Queued_Message class ?
"Glen Scales [MVP]" wrote:
WMI is the API that you what to have a look at download the Exchange SDK
from http://msdn.microsoft.com/exchange and have a look at WMI in the
Reference section. There are some differences in 2000 to 2003 there are
a
lot more WMI classes available to do this type of thing now under 2003
but
you should be able to still do what you want to under 2000.
Cheers
Glen
"Russ" <Russ@discussions.microsoft.com> wrote in message
news:F4EAB99F-E27B-4DB4-93CD-D59C2C13B24C@microsoft.com...
Hello,
I am looking to track messages on ms exchange 2000 / 2003 queues using
an
api, ie for a given queue, determine the number of messages and the
detail
of
those messages (message ids). Could you suggest a suitable api(s)?
Regards
Mike
|
|
|
| Back to top |
|
 |
|
|
|
|