home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume23 / tua / part05 < prev    next >
Encoding:
Text File  |  1991-09-23  |  18.5 KB  |  366 lines

  1. Newsgroups: comp.sources.misc
  2. From: piggy@idea.sublink.org (Lele Gaifas)
  3. Subject:  v23i011:  tua - The Uucp Analyzer, Part05/05
  4. Message-ID: <1991Sep22.203557.23128@sparky.imd.sterling.com>
  5. X-Md4-Signature: bb9b6b97b6cfdb828dcd557e5687cdcd
  6. Date: Sun, 22 Sep 1991 20:35:57 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: piggy@idea.sublink.org (Lele Gaifas)
  10. Posting-number: Volume 23, Issue 11
  11. Archive-name: tua/part05
  12. Environment: Xenix, SYSV
  13.  
  14. ---- Cut Here and feed the following to sh ----
  15. # This is part 05 of a multipart archive
  16. # ============= tua.1l ==============
  17. if test -f 'tua.1l' -a X"$1" != X"-c"; then
  18.     echo 'x - skipping tua.1l (File already exists)'
  19. else
  20. echo 'x - extracting tua.1l (Text)'
  21. sed 's/^X//' << 'SHAR_EOF' > 'tua.1l' &&
  22. X
  23. X
  24. X
  25. X     TTTTUUUUAAAA((((1111LLLL))))          RRRReeeelllleeeeaaaasssseeee 3333....3333 ((((1111 SSSSeeeepppptttteeeemmmmbbbbeeeerrrr 1111999999991111))))           TTTTUUUUAAAA((((1111LLLL))))
  26. X
  27. X
  28. X
  29. X     NNNNAAAAMMMMEEEE
  30. X          TUA - The Uucp Analyzer
  31. X
  32. X     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  33. X          ttttuuuuaaaa [ option ]
  34. X
  35. X     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  36. X          The purpose of the _T_U_A utility is to produce a readable and
  37. X          complete analysis of the _H_o_n_e_y_D_a_n_b_e_e_r UUCP connections.
  38. X          This manual page describes the _T_U_A command line options and
  39. X          shortly explains its output.
  40. X
  41. X     OOOOPPPPTTTTIIIIOOOONNNNSSSS
  42. X          To specify any of the options, you can use either the short
  43. X          form or the more mnemonic long form. In the latter case, you
  44. X          can abbreviate the name as long as it is unique. For more
  45. X          information on the long format, please refer to the _G_N_U
  46. X          _g_e_t_o_p_t package description.
  47. X
  48. X
  49. X          ----SSSS,,,, ++++nnnnoooo----ssssyyyyssss----rrrreeeepppp
  50. X               Do not print the ppppeeeerrrr SSSSyyyysssstttteeeemmmm rrrreeeeppppoooorrrrtttt.  The default is to
  51. X               print it out.
  52. X
  53. X          ----UUUU,,,, ++++nnnnoooo----uuuusssseeeerrrr----rrrreeeepppp
  54. X               Do not print the ppppeeeerrrr UUUUsssseeeerrrr rrrreeeeppppoooorrrrtttt.  The default is to
  55. X               print it out.
  56. X
  57. X          ----DDDD,,,, ++++nnnnoooo----ddddaaaaiiiillllyyyy----rrrreeeepppp
  58. X               Do not print the DDDDaaaaiiiillllyyyy rrrreeeeppppoooorrrrtttt.  The default is to print
  59. X               it out.
  60. X
  61. X          ----CCCC,,,, ++++ccccoooommmmmmmmaaaannnndddd----lllliiiissssttttssss
  62. X               Show also the command lists. It is off by default
  63. X               because it makes TUA very hungry of memory.
  64. X
  65. X          ----OOOO,,,, ++++oooonnnnllllyyyy----ssssyyyysssstttteeeemmmm _S_Y_S_T_E_M
  66. X               Consider just system _S_Y_S_T_E_M in the reports. You can
  67. X               specify more than one of this option, so you can have
  68. X               TUA consider just those systems.
  69. X
  70. X          ----mmmm,,,, ++++nnnnoooo----mmmmoooonnnntttthhhhllllyyyy----aaaacccctttt
  71. X               Do not output the last 12 months activity summary.
  72. X
  73. X          ----hhhh,,,, ++++nnnnoooo----hhhhiiiissssttttoooorrrryyyy
  74. X               Do not output the history at the end of the reports.
  75. X
  76. X          ----cccc,,,, ++++sssseeeeppppaaaarrrraaaatttteeee----ccccoooommmm
  77. X               Separate command lists from the other data. So there
  78. X               will be two tables with the header _B_y _S_y_s_t_e_m , the
  79. X               first containing only the amounts and the timing of
  80. X               each transfer, the second with all the commands invoked
  81. X
  82. X
  83. X
  84. X     Page 1                                           (printed 9/1/91)
  85. X
  86. X
  87. X
  88. X
  89. X
  90. X
  91. X     TTTTUUUUAAAA((((1111LLLL))))          RRRReeeelllleeeeaaaasssseeee 3333....3333 ((((1111 SSSSeeeepppptttteeeemmmmbbbbeeeerrrr 1111999999991111))))           TTTTUUUUAAAA((((1111LLLL))))
  92. X
  93. X
  94. X
  95. X               by each System. You must specify also the ----CCCC option to
  96. X               make it works.
  97. X
  98. X          ----kkkk,,,, ++++kkkkiiiillllllll----ssssyyyysssstttteeeemmmm _S_Y_S_T_E_M
  99. X               Eliminate each reference to _S_Y_S_T_E_M from the reports.
  100. X               Neither the transfer table nor the _S_Y_S_T_E_M command list
  101. X               will be printed.
  102. X
  103. X          ----KKKK,,,, ++++kkkkiiiillllllll----uuuusssseeeerrrr _U_S_E_R
  104. X               Like ----kkkk , but it applies to the user called _U_S_E_R .
  105. X
  106. X          ----HHHH,,,, ++++uuuuppppddddaaaatttteeee----hhhhiiiisssstttt
  107. X               Update the _h_i_s_t_o_r_y database (see the FILES section
  108. X               below) with the new values. You must have the uuuuuuuuccccpppp
  109. X               write permission.
  110. X
  111. X          ----0000,,,, ++++rrrreeeesssseeeetttt----hhhhiiiisssstttt
  112. X               Reset the _h_i_s_t_o_r_y database, deleting any systems in it.
  113. X               Then put in the database the analysis since the last
  114. X               _u_u_c_l_e_a_n . You have to specify also ----HHHH to make this
  115. X               option do his job.
  116. X
  117. X          ----yyyy,,,, ++++nnnnoooo----hhhhoooouuuurrrrllllyyyy----cccchhhhaaaarrrrtttt
  118. X               Do not display the hourly activity chart.
  119. X
  120. X          ----zzzz,,,, ++++cccchhhhaaaarrrrtttt----ssssiiiizzzzeeee _S_I_Z_E
  121. X               Set the size of the hourly activity chart to _S_I_Z_E rows.
  122. X               The greater is this number, the smaller is the scale.
  123. X               By default it is set to 10.
  124. X
  125. X          ----oooo,,,, ++++cccchhhhaaaarrrrtttt----oooonnnnllllyyyy
  126. X               Display only the hourly activity chart. Since with this
  127. X               options _T_U_A reads only ....AAAAddddmmmmiiiinnnn////xxxxffffeeeerrrrssssttttaaaattttssss, it is faster.
  128. X
  129. X          ----vvvv,,,, ++++vvvveeeerrrrbbbboooosssseeee
  130. X               Print, on standard error, what is going on. While _T_U_A
  131. X               reads the various logs, it displays a counter of the
  132. X               loaded lines.
  133. X
  134. X          ----pppp,,,, ++++pppprrrreeeeffffiiiixxxx----ppppaaaatttthhhh _P_A_T_H
  135. X               By default, _T_U_A looks for uucp data in ////uuuussssrrrr////ssssppppoooooooollll////uuuuuuuuccccpppp////
  136. X               and in the relative subdirectory. For debugging
  137. X               purpose, this option lets you change this directory, so
  138. X               that _T_U_A looks for the data in the specified _P_A_T_H.
  139. X               Below this point _T_U_A needs a hierarchy like the
  140. X               standard one (see FILES below).
  141. X
  142. X          ----iiii,,,, ++++hhhheeeellllpppp
  143. X               Show a summary and a description of all the options.
  144. X
  145. X     OOOOUUUUTTTTPPPPUUUUTTTT
  146. X          All reports are printed on the standard output, so you can
  147. X
  148. X
  149. X
  150. X     Page 2                                           (printed 9/1/91)
  151. X
  152. X
  153. X
  154. X
  155. X
  156. X
  157. X     TTTTUUUUAAAA((((1111LLLL))))          RRRReeeelllleeeeaaaasssseeee 3333....3333 ((((1111 SSSSeeeepppptttteeeemmmmbbbbeeeerrrr 1111999999991111))))           TTTTUUUUAAAA((((1111LLLL))))
  158. X
  159. X
  160. X
  161. X          easily redirect them wherever you want. Assuming, unless
  162. X          otherwise stated, that you do not explicity request to
  163. X          disable some of the reports (eg. when you do not specify any
  164. X          command line option), here is a short description of what
  165. X          you get.
  166. X
  167. X          BBBByyyy SSSSyyyysssstttteeeemmmm
  168. X
  169. X          With this report, you get all the information relative to
  170. X          all the nodes that talk with your machine but those which
  171. X          didn't sent or received something. The data are divided in
  172. X          _i_n_b_o_u_n_d and _o_u_t_b_o_u_n_d. For each system, displayed in
  173. X          alphabetical order, you have the total count of the files
  174. X          transferred, with the relative bytes and times, as well as
  175. X          an average transfer rate (ATP). If ++++ccccoooommmmmmmmaaaannnnddddssss----lllliiiissssttttssss was
  176. X          specified, next there is the list of the commands invoked by
  177. X          that node, or directed to it. If a command is preceeded by a
  178. X          number between brackets, that number indicates how many
  179. X          times that command was invoked.
  180. X
  181. X          BBBByyyy UUUUsssseeeerrrr
  182. X
  183. X          This report is similar to the previous one, but it shows, in
  184. X          alphabetical order for each local user, all the commands the
  185. X          user invoked, and the transfers he caused.
  186. X
  187. X          BBBByyyy DDDDaaaayyyy
  188. X
  189. X          This report summarize the per day activity on the local
  190. X          machine. It doesn't depend on the destinations and on the
  191. X          users.
  192. X
  193. X          SSSSUUUUMMMMMMMMAAAARRRRYYYY bbbbyyyy SSSSyyyysssstttteeeemmmm
  194. X
  195. X          It shows a summary of the activity of each system, and the
  196. X          number of calls (inbound and outbound) for it. Please note
  197. X          that sometimes _T_U_A fails in calculating the exact number of
  198. X          calls, because of the misleading log of uucico. Note also
  199. X          that the "total connection time" always differs from the sum
  200. X          of the trasmissions times, because it takes care also of the
  201. X          various uucp dead time. In fact, it is calculated from the
  202. X          difference between the time in which the nodes are really
  203. X          connected (ie. at the end of dial phase, when the modem
  204. X          answers) and the time in which the link is dropped, due to
  205. X          the the end of the conversation as well as to any error.
  206. X          Then comes the time of the last connection with that system.
  207. X          There is also the subdivision of the connection time based
  208. X          on the phone costs, ie "day", "evening", "night". This is
  209. X          completely configurable, so if your telephone company uses a
  210. X          different hourly division you can adjust it (see ccccoooonnnnffffiiiigggg....hhhh
  211. X          and pppphhhhoooonnnneeeesssswwww....cccc.)
  212. X
  213. X
  214. X
  215. X
  216. X     Page 3                                           (printed 9/1/91)
  217. X
  218. X
  219. X
  220. X
  221. X
  222. X
  223. X     TTTTUUUUAAAA((((1111LLLL))))          RRRReeeelllleeeeaaaasssseeee 3333....3333 ((((1111 SSSSeeeepppptttteeeemmmmbbbbeeeerrrr 1111999999991111))))           TTTTUUUUAAAA((((1111LLLL))))
  224. X
  225. X
  226. X
  227. X          SSSSUUUUMMMMMMMMAAAARRRRYYYY bbbbyyyy SSSSyyyysssstttteeeemmmm ((((ttttaaaabbbblllleeee ffffoooorrrrmmmmaaaatttt))))
  228. X
  229. X          Substancially, this report summarizes some of the previous
  230. X          informations in a tabular form. Nothing new...
  231. X
  232. X          aaaannnndddd ssssiiiinnnncccceeee ............
  233. X
  234. X          This is the historical data maintained by _T_U_A. It looks like
  235. X          the previous table, but it includes the history of the
  236. X          system, incrementally.
  237. X
  238. X          LLLLaaaasssstttt 11112222 MMMMoooonnnntttthhhhssss AAAAccccttttiiiivvvviiiittttyyyy
  239. X
  240. X          This table shows the activity of the local machine during
  241. X          the last 12 months.  Only the transferred amounts are
  242. X          computed.
  243. X          The months are displayed in a manner so that the last column
  244. X          contains the current one, so it is very readable (of course,
  245. X          it is a matter of opinions!)
  246. X
  247. X          HHHHoooouuuurrrrllllyyyy AAAAccccttttiiiivvvviiiittttyyyy ((((ppppeeeerrrr ccccoooommmmmmmmuuuunnnniiiiccccaaaattttiiiioooonnnn ppppoooorrrrtttt))))
  248. X
  249. X          This chart shows the uucp hourly load for each used
  250. X          communication port. Each hour is divided in 20 minutes
  251. X          slices.
  252. X
  253. X          GGGGlllloooobbbbaaaallll HHHHoooouuuurrrrllllyyyy AAAAccccttttiiiivvvviiiittttyyyy
  254. X
  255. X          The same as the previous chart, but it reports the sums of
  256. X          all the ports.
  257. X
  258. X     HHHHIIIISSSSTTTTOOOORRRRYYYY
  259. X          _T_U_A maintains a database with the history of each system and
  260. X          of the activity in each of the last 12 months activities. It
  261. X          is usually located in ////uuuussssrrrr////ssssppppoooooooollll////uuuuuuuuccccpppp////....AAAAddddmmmmiiiinnnn////ttttuuuuaaaa....hhhhiiiissssttttoooorrrryyyy and
  262. X          it is actually an ASCII file. It is up to you to update it
  263. X          or not, because probably you will like to run _T_U_A simply to
  264. X          have a notion of what is going on. To make it working
  265. X          correctly, you have to run _T_U_A with the option ++++uuuuppppddddaaaatttteeee----hhhhiiiisssstttt
  266. X          just before you run uuclean. So probably you will have to
  267. X          modify that script including in it a line like
  268. X
  269. X                  tua +update-hist {whatever options you like} | mail lele
  270. X
  271. X          before it cleans up the uucp logs.
  272. X
  273. X     BBBBUUUUGGGGSSSS
  274. X          Since HDB-Uucp doesn't put a complete datestamp in its logs,
  275. X          but omits the year, it may be possible that _T_U_A fails to
  276. X          compute the various times in the first analysis of the year.
  277. X          This is in my opinion its major weakness. For this
  278. X          silliness, _T_U_A cannot correctly handle logs that cover
  279. X
  280. X
  281. X
  282. X     Page 4                                           (printed 9/1/91)
  283. X
  284. X
  285. X
  286. X
  287. X
  288. X
  289. X     TTTTUUUUAAAA((((1111LLLL))))          RRRReeeelllleeeeaaaasssseeee 3333....3333 ((((1111 SSSSeeeepppptttteeeemmmmbbbbeeeerrrr 1111999999991111))))           TTTTUUUUAAAA((((1111LLLL))))
  290. X
  291. X
  292. X
  293. X          several years. There is little that I can do to correct the
  294. X          situation; I tried to adjust the year when the to-be-parsed
  295. X          date refers obviously to the previous year, but this is just
  296. X          a work-around...
  297. X
  298. X          There is a limit: if your system spent more than 9999 hours
  299. X          linked with someone (or the sum exceed that value), the
  300. X          reports will be garbaged...
  301. X
  302. X     DDDDIIIISSSSCCCCLLLLAAAAIIIIMMMMEEEERRRR
  303. X          _T_U_A is ffffrrrreeeeeeee, and it is redistribuitable under the terms of
  304. X          the GNU General Public License. You can find a copy of it in
  305. X          the file CCCCOOOOPPPPYYYYIIIINNNNGGGG in the distribution package.  I reject any
  306. X          responsability about it. It is simple and safe, but I did
  307. X          not try it under all the possible conditions and
  308. X          environments, so if it causes you some trouble, I'll be sad
  309. X          for a while, but that's it. However, I will try to correct
  310. X          any bugs you will tell me.
  311. X
  312. X          And pppplllleeeeaaaasssseeee,,,, forgive my poor english, but I put my soul in
  313. X          it...
  314. X
  315. X     AAAAUUUUTTTTHHHHOOOORRRR
  316. X          Lele Gaifas, Idea Informatica, Rovereto (TN) - Italy
  317. X          ( piggy@idea.sublink.org )
  318. X
  319. X     FFFFIIIILLLLEEEESSSS
  320. X           .../.Log/uucico/*       uucico's logs
  321. X           .../.Log/uucp/*         uucp's logs
  322. X           .../.Log/uux/*          uux's logs
  323. X           .../.Log/uuxqt/*        uuxqt's logs
  324. X           .../.Admin/xferstat     Transfer stats
  325. X           .../.Admin/tua.history  TUA's system history
  326. X
  327. X     BBBBUUUUGGGGSSSS RRRREEEEPPPPOOOORRRRTTTT TTTTOOOO
  328. X          Lele Gaifas, piggy@idea.sublink.org
  329. X
  330. X     AAAACCCCKKKKNNNNOOOOLLLLEEEEDDDDGGGGMMMMEEEENNNNTTTT
  331. X          I want to thank expecially Marco Lorenzini
  332. X          (marlor@gear.sublink.org) for his help in debugging the
  333. X          previous releases of _T_U_A on the SCO Unix architecture, and
  334. X          for his suggestions on the layout of the reports. And to the
  335. X          "omnipresent" Paolo Ventafridda (venta@i2ack.sublink.org)
  336. X          for his support and interest, and several other people that
  337. X          encouraged me to add more and more functionality, or that
  338. X          let me scan their huge logs.
  339. X          Thanks also to all the people that, with their PD or GPL
  340. X          software, helped me indirectly with ideas or examples.
  341. X
  342. X
  343. X
  344. X
  345. X
  346. X
  347. X
  348. X     Page 5                                           (printed 9/1/91)
  349. X
  350. X
  351. X
  352. SHAR_EOF
  353. chmod 0664 tua.1l ||
  354. echo 'restore of tua.1l failed'
  355. Wc_c="`wc -c < 'tua.1l'`"
  356. test 17344 -eq "$Wc_c" ||
  357.     echo 'tua.1l: original size 17344, current size' "$Wc_c"
  358. fi
  359. exit 0
  360. exit 0 # Just in case...
  361. -- 
  362. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  363. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  364. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  365. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  366.