Checking the time of nodes in a cluster

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

Single line command to check the time of a cluster.

asmonitor -e 'asinfo -v namespace/<NAMESPACE>'|grep -o 'current-time=[0-9]*'

example:

asmonitor -e 'asinfo -v namespace/test'|grep -o 'current-time=[0-9]*'
current-time=150505663
current-time=150505663
current-time=150505663
current-time=150505663