1 1.1 christos /* -*- Mode: Text -*- */ 2 1.1.1.2 christos AutoGen Definitions perlopt; 3 1.1.1.2 christos 4 1.1 christos #include autogen-version.def 5 1.1.1.2 christos 6 1.1 christos prog-name = 'summary'; 7 1.1 christos prog-title = 'compute various stastics from NTP stat files'; 8 1.1.1.2 christos package = ntp; 9 1.1.1.2 christos #include version.def 10 1.1.1.2 christos 11 1.1 christos long-opts; 12 1.1 christos gnu-usage; 13 1.1 christos 14 1.1 christos flag = { 15 1.1 christos name = directory; 16 1.1 christos arg-type = string; 17 1.1 christos arg-default = '/var/log/ntp'; 18 1.1 christos descrip = 'Directory containing stat files'; 19 1.1 christos doc = <<- _EndOfDoc_ 20 1.1 christos The directory where @code{ntpd} will search for .stat files generated 21 1.1 christos by @code{ntpd}. 22 1.1 christos _EndOfDoc_; 23 1.1 christos }; 24 1.1 christos 25 1.1 christos flag = { 26 1.1 christos name = end-date; 27 1.1 christos arg-type = number; 28 1.1 christos descrip = 'End date'; 29 1.1 christos doc = <<- _EndOfDoc_ 30 1.1 christos Process all files with the date suffix less or equal to value of this 31 1.1 christos option. Defaults to today minus one day (Use @code{date -u +%Y%m%d}) 32 1.1 christos to get the timestamp. 33 1.1 christos _EndOfDoc_; 34 1.1 christos }; 35 1.1 christos 36 1.1 christos flag = { 37 1.1 christos name = output-directory; 38 1.1 christos arg-type = str; 39 1.1 christos arg-default = '/tmp'; 40 1.1 christos descrip = 'Output directory'; 41 1.1 christos doc = <<- _EndOfDoc_ 42 1.1 christos The output directory @code{summary} will write all output files to. 43 1.1 christos _EndOfDoc_; 44 1.1 christos }; 45 1.1 christos 46 1.1 christos flag = { 47 1.1 christos name = peer-dist-limit; 48 1.1 christos arg-type = string; 49 1.1 christos arg-name = float; 50 1.1 christos arg-default = 400; 51 1.1 christos descrip = 'Peer dist limit'; 52 1.1 christos doc = <<- _EndOfDoc_ 53 1.1 christos _EndOfDoc_; 54 1.1 christos }; 55 1.1 christos 56 1.1 christos flag = { 57 1.1 christos name = skip-time-steps; 58 1.1 christos arg-type = string; 59 1.1 christos arg-name = float; 60 1.1 christos arg-default = 3600; 61 1.1 christos descrip = 'Ignore time offsets larger that this'; 62 1.1 christos doc = <<- _EndOfDoc_ 63 1.1 christos _EndOfDoc_; 64 1.1 christos }; 65 1.1 christos 66 1.1 christos flag = { 67 1.1 christos name = start-date; 68 1.1 christos arg-type = num; 69 1.1 christos arg-default = 19700101; 70 1.1 christos descrip = 'Start date'; 71 1.1 christos doc = <<- _EndOfDoc_ 72 1.1 christos Process all files with the date suffix more or equal to value of 73 1.1 christos this option. Defaults to 197000101. 74 1.1 christos _EndOfDoc_; 75 1.1 christos }; 76 1.1 christos 77 1.1 christos doc-section = { 78 1.1 christos ds-type = 'DESCRIPTION'; 79 1.1 christos ds-format = 'texi'; 80 1.1 christos ds-text = <<- _EndOfDoc 81 1.1 christos _EndOfDoc; 82 1.1 christos }; 83