Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

452

December 5th, 2013 02:00

Replication Sync-Analysis

Hi,

i'm trying to analyse my remote replikations to get the LastSyncTime and the NextSyncTime. At the moment I do this by executing:

for i in `nas_replicate -l |fgrep remote |awk '{ print $1}'`;do nas_replicate -i $i | fgrep -e Name -e Completion -e "Last Sync"; done

output:

Name                           = remote_replication_1

Last Sync Time                 = Thu Dec 05 07:04:16 CET 2013

Estimated Completion Time      = Thu Dec 05 21:52:46 CET 2013

[...]

this works, but i want the output in a different format, to be able to copy it to .csv or other related scripts.

the output i want to get is something like:

Name LastSyncTime Estimated Completion Time
remote_replication_1 Thu Dec 05 07:04:16 CET 2013 Thu Dec 05 21:52:46 CET 2013
remote_replication_2 Thu Dec 05 07:04:16 CET 2013 Thu Dec 05 21:54:46 CET 2013

of course not as table but as csv:

Name;LastSyncTime;Estimated Completion Time

i'm aware of the -query option for nas_fs and other commands but I don't find something equal for replications.

thx4help and suggestions.

No Responses!
No Events found!

Top