Click for ADQueueLoop download link and official documentation.

Use ADQueueLoop.exe instead of typing repadmin /queue over and over again and still missing what you are watching for.

Usage

    adqueueloop -h host \[switches\]

Any option that you specify that has spaces or special characters such as &,|,<,>, etc need to be placed within quotes. All options/switches can be specified with either a / or a -. Type adqueueloop /? for usage.

Switch/option Purpose Example
-delay <time_ms> How long to sleep between queries in ms. About the fastest you can go is 10ms, I generally don't recommend going much below 100ms. -delay 500
-top Output the currently running item on the queue -top
-force Show queue info even if nothing has changed -force
-showtime Show the time stamp of the last API call for queue info -showtime
-skipcon Don't display as much on the console -skipcon
-file xx Write info to file xx -file replinfo.txt
-csv Write into to file in CSV format -csv

  


Examples

Monitor AD Replication Queue as fast as possible and display top queue item when there are queue items.

F:\Dev\CPP\ADQueueLoop>adqueueloop -h 2k3dc01 -top

AdQueueLoop V02.00.00cpp Joe Richards (joe@joeware.net) March 2006

Successfully bound to 2k3dc01
Monitoring...


Current Local Machine Time: 03/23/2006-12:23:37.15
Pending Ops: 7
Current Op start time (server): 03/23/2006-12:23:28.00
Delta (seconds): 9.015
Queue Number : 19691
Queue Time (server) : 03/23/2006-12:23:28.00
Priority : 170
Naming Context : CN=Configuration,DC=joe,DC=com
DSA : CN=NTDS Settings,CN=2K3DC02,CN=Servers,CN=VSite,CN=Sites,CN=Configuration,DC=joe,DC=com
DSA Address : d0cbf909-1378-4b04-b537-1e3e2621776c._msdcs.joe.com
Op Type : (0) DS_REPL_OP_TYPE_SYNC
Options : (4103) ASYNC,WRITEABLE,SCHEDULED,NEVERNOTIFY


Current Local Machine Time: 03/23/2006-12:23:37.135
Pending Ops: 6
Current Op start time (server): 03/23/2006-12:23:28.00
Delta (seconds): 9.135
Queue Number : 19692
Queue Time (server) : 03/23/2006-12:23:28.00
Priority : 170
Naming Context : CN=Schema,CN=Configuration,DC=joe,DC=com
DSA : CN=NTDS Settings,CN=2K3DC02,CN=Servers,CN=VSite,CN=Sites,CN=Configuration,DC=joe,DC=com
DSA Address : d0cbf909-1378-4b04-b537-1e3e2621776c._msdcs.joe.com
Op Type : (0) DS_REPL_OP_TYPE_SYNC
Options : (4103) ASYNC,WRITEABLE,SCHEDULED,NEVERNOTIFY


Current Local Machine Time: 03/23/2006-12:23:37.205
Pending Ops: 5
Current Op start time (server): 03/23/2006-12:23:28.00
Delta (seconds): 9.205
Queue Number : 19690
Queue Time (server) : 03/23/2006-12:23:28.00
Priority : 90
Naming Context : DC=joe,DC=com
DSA : CN=NTDS Settings,CN=2K3DC02,CN=Servers,CN=VSite,CN=Sites,CN=Configuration,DC=joe,DC=com
DSA Address : d0cbf909-1378-4b04-b537-1e3e2621776c._msdcs.joe.com
Op Type : (0) DS_REPL_OP_TYPE_SYNC
Options : (4103) ASYNC,WRITEABLE,SCHEDULED,NEVERNOTIFY


Current Local Machine Time: 03/23/2006-12:23:37.275
Pending Ops: 4
Current Op start time (server): 03/23/2006-12:23:28.00
Delta (seconds): 9.275
Queue Number : 19693
Queue Time (server) : 03/23/2006-12:23:28.00
Priority : 90
Naming Context : DC=DomainDnsZones,DC=joe,DC=com
DSA : CN=NTDS Settings,CN=2K3DC02,CN=Servers,CN=VSite,CN=Sites,CN=Configuration,DC=joe,DC=com
DSA Address : d0cbf909-1378-4b04-b537-1e3e2621776c._msdcs.joe.com
Op Type : (0) DS_REPL_OP_TYPE_SYNC
Options : (4103) ASYNC,WRITEABLE,SCHEDULED,NEVERNOTIFY


Current Local Machine Time: 03/23/2006-12:23:37.345
Pending Ops: 3
Current Op start time (server): 03/23/2006-12:23:28.00
Delta (seconds): 9.345
Queue Number : 19694
Queue Time (server) : 03/23/2006-12:23:28.00
Priority : 90
Naming Context : DC=ForestDnsZones,DC=joe,DC=com
DSA : CN=NTDS Settings,CN=2K3DC02,CN=Servers,CN=VSite,CN=Sites,CN=Configuration,DC=joe,DC=com
DSA Address : d0cbf909-1378-4b04-b537-1e3e2621776c._msdcs.joe.com
Op Type : (0) DS_REPL_OP_TYPE_SYNC
Options : (4103) ASYNC,WRITEABLE,SCHEDULED,NEVERNOTIFY


Current Local Machine Time: 03/23/2006-12:23:37.406
Pending Ops: 2
Current Op start time (server): 03/23/2006-12:23:28.00
Delta (seconds): 9.406
Queue Number : 19695
Queue Time (server) : 03/23/2006-12:23:28.00
Priority : 90
Naming Context : DC=AppTest,DC=local
DSA : CN=NTDS Settings,CN=2K3DC02,CN=Servers,CN=VSite,CN=Sites,CN=Configuration,DC=joe,DC=com
DSA Address : d0cbf909-1378-4b04-b537-1e3e2621776c._msdcs.joe.com
Op Type : (0) DS_REPL_OP_TYPE_SYNC
Options : (4103) ASYNC,WRITEABLE,SCHEDULED,NEVERNOTIFY


Current Local Machine Time: 03/23/2006-12:23:37.446
Pending Ops: 1
Current Op start time (server): 03/23/2006-12:23:29.00
Delta (seconds): 8.446
Queue Number : 19696
Queue Time (server) : 03/23/2006-12:23:28.00
Priority : 50
Naming Context : DC=child1,DC=joe,DC=com
DSA : CN=NTDS Settings,CN=2K3DC02,CN=Servers,CN=VSite,CN=Sites,CN=Configuration,DC=joe,DC=com
DSA Address : d0cbf909-1378-4b04-b537-1e3e2621776c._msdcs.joe.com
Op Type : (0) DS_REPL_OP_TYPE_SYNC
Options : (4101) ASYNC,SCHEDULED,NEVERNOTIFY


Current Local Machine Time: 03/23/2006-12:23:37.556
Delta (seconds): 8.556
Previous Displayed Op completed.