Manual:GetLagTimes.php

Details
getLagTimes.php file is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script to display replication lag times from .

The script can be repeatedly called from the command line to create a simple 'lagtop' script that monitors a cluster's status.

Sample output
 10.0.0.236     db3.pmtpa.wmnet   0 10.0.0.235     db2.pmtpa.wmnet   0 10.0.0.237     db4.pmtpa.wmnet   8 ******** 10.0.0.102  samuel.pmtpa.wmnet   1 * 10.0.0.232 thistle.pmtpa.wmnet   1 * 10.0.0.231    ixia.pmtpa.wmnet   1 * 10.0.0.233 lomaria.pmtpa.wmnet   1 * 10.0.0.101   adler.pmtpa.wmnet   0
 * 1) sample output
 * enwiki cluster **

10.0.0.101   adler.pmtpa.wmnet   0 10.0.0.102  samuel.pmtpa.wmnet   0 10.0.0.232 thistle.pmtpa.wmnet   0 10.0.0.231    ixia.pmtpa.wmnet   0 10.0.0.234     db1.pmtpa.wmnet   0 10.0.0.233 lomaria.pmtpa.wmnet   0 10.0.0.24 holbach.pmtpa.wmnet   0
 * dewiki cluster **

ctrl+C to quit