الحالة
يتم استخدام الأمر الفرعي الحالة للتحقق مما إذا كان النسخ المتماثل لا يزال متزامنًا ومن هو الأساسي:
/opt/eranger/bin/eranger-server-replication.pl help status
Usage:
/opt/eranger/bin/eranger-server-replication.pl status [outfile]
# with optional argument outfile: to be used in crontab
# exit status 0 if replication is ok
# 1 if replication is down
# 2 if replication is not configured
# 3 for any other error
الإخراج النموذجي على الخادم الأساسي (10.1.0.88 هو الأساسي الحالي):
# eranger-server-replication.pl status 10.1.0.88 10.1.0.88 checking ssh for user reranger # Tue Jan 9 13:21:04 2018 # Status is OK, if there is at least one slave, FAILED otherwise # Legend: 'Slave: <seconds-last-read> (<ip>)' # slaves: 1 Status: OK Slave: 0 (10.1.0.89)
الإخراج النموذجي على الخادم الاحتياطي (10.1.0.88 هو الأساسي الحالي):
10.1.0.89 10.1.0.89 checking ssh for user reranger 10.1.0.88 is running Last read on master(10.1.0.88) 0 seconds ago