File: auagd013.xml

package info (click to toggle)
openafs 1.8.14-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,972 kB
  • sloc: ansic: 455,934; xml: 66,858; perl: 11,967; makefile: 10,038; sh: 7,955; objc: 6,354; java: 5,638; cpp: 2,268; asm: 1,214; yacc: 441; tcl: 249; lex: 201; csh: 85
file content (3381 lines) | stat: -rw-r--r-- 160,809 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="HDRWQ323">
  <title>Monitoring and Auditing AFS Performance</title>

  <para>
  <indexterm>
    <primary>scout program</primary>
  </indexterm>

  <indexterm>
    <primary>monitoring</primary>

    <secondary>file server processes with scout</secondary>
  </indexterm>

  <indexterm>
    <primary>monitoring</primary>

    <secondary>file server processes with afsmonitor</secondary>
  </indexterm>

  <indexterm>
    <primary>monitoring</primary>

    <secondary>Cache Manager processes with afsmonitor</secondary>
  </indexterm>

  <indexterm>
    <primary>monitoring</primary>

    <secondary>Cache Manager performance</secondary>
  </indexterm>

  <indexterm>
    <primary>Cache Manager</primary>

    <secondary>monitoring performance</secondary>
  </indexterm>

  <indexterm>
    <primary>client machine</primary>

    <secondary>monitoring performance</secondary>
  </indexterm>

  <indexterm>
    <primary>file system</primary>

    <secondary>monitoring activity</secondary>
  </indexterm>

  AFS comes with three main monitoring tools: <itemizedlist>
      <listitem>
        <para>The <emphasis role="bold">scout</emphasis> program, which monitors and gathers statistics on File Server
        performance.</para>
      </listitem>

      <listitem>
        <para>The <emphasis role="bold">fstrace</emphasis> command suite, which traces Cache Manager operations in detail.</para>
      </listitem>

      <listitem>
        <para>The <emphasis role="bold">afsmonitor</emphasis> program, which monitors and gathers statistics on both the File Server
        and the Cache Manager.</para>
      </listitem>
    </itemizedlist></para>

  <para>AFS also provides a tool for auditing AFS events on file server machines running AIX.</para>

  <sect1 id="HDRWQ324">
    <title>Summary of Instructions</title>

    <para>This chapter explains how to perform the following tasks by using the indicated commands:</para>

    <informaltable frame="none">
      <tgroup cols="2">
        <colspec colwidth="70*" />

        <colspec colwidth="30*" />

        <tbody>
          <row>
            <entry>Initialize the <emphasis role="bold">scout</emphasis> program</entry>

            <entry><emphasis role="bold">scout</emphasis></entry>
          </row>

          <row>
            <entry>Display information about a trace log</entry>

            <entry><emphasis role="bold">fstrace lslog</emphasis></entry>
          </row>

          <row>
            <entry>Display information about an event set</entry>

            <entry><emphasis role="bold">fstrace lsset</emphasis></entry>
          </row>

          <row>
            <entry>Change the size of a trace log</entry>

            <entry><emphasis role="bold">fstrace setlog</emphasis></entry>
          </row>

          <row>
            <entry>Set the state of an event set</entry>

            <entry><emphasis role="bold">fstrace setset</emphasis></entry>
          </row>

          <row>
            <entry>Dump contents of a trace log</entry>

            <entry><emphasis role="bold">fstrace dump</emphasis></entry>
          </row>

          <row>
            <entry>Clear a trace log</entry>

            <entry><emphasis role="bold">fstrace clear</emphasis></entry>
          </row>

          <row>
            <entry>Initialize the <emphasis role="bold">afsmonitor</emphasis> program</entry>

            <entry><emphasis role="bold">afsmonitor</emphasis></entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect1>

  <sect1 id="HDRWQ326">
    <title>Using the scout Program</title>

    <indexterm>
      <primary>scout program</primary>

      <secondary>features summarized</secondary>
    </indexterm>

    <para>The <emphasis role="bold">scout</emphasis> program monitors the status of the File Server process running on file server
    machines. It periodically collects statistics from a specified set of File Server processes, displays them in a graphical
    format, and alerts you if any of the statistics exceed a configurable threshold.</para>

    <para>More specifically, the <emphasis role="bold">scout</emphasis> program includes the following features. <itemizedlist>
        <listitem>
          <para>You can monitor, from a single location, the File Server process on any number of server machines from the local and
          foreign cells. The number is limited only by the size of the display window, which must be large enough to display the
          statistics.</para>
        </listitem>

        <listitem>
          <para>You can set a threshold for many of the statistics. When the value of a statistic exceeds the threshold, the
          <emphasis role="bold">scout</emphasis> program highlights it (displays it in reverse video) to draw your attention to it.
          If the value goes back under the threshold, the highlighting is deactivated. You control the thresholds, so highlighting
          reflects what you consider to be a noteworthy situation. See <link linkend="HDRWQ332">Highlighting Significant
          Statistics</link>.</para>
        </listitem>

        <listitem>
          <para>The <emphasis role="bold">scout</emphasis> program alerts you to File Server process, machine, and network outages
          by highlighting the name of each machine that does not respond to its probe, enabling you to respond more quickly.</para>
        </listitem>

        <listitem>
          <para>You can set how often the <emphasis role="bold">scout</emphasis> program collects statistics from the File Server
          processes.</para>
        </listitem>
      </itemizedlist></para>

    <sect2 id="HDRWQ327">
      <title>System Requirements</title>

      <indexterm>
        <primary>scout program</primary>

        <secondary>requirements</secondary>
      </indexterm>

      <indexterm>
        <primary>requirements</primary>

        <secondary>scout program</secondary>
      </indexterm>

      <indexterm>
        <primary>curses graphics utility</primary>

        <secondary>scout program requirements</secondary>
      </indexterm>

      <indexterm>
        <primary>scout program</primary>

        <secondary>setting terminal type</secondary>
      </indexterm>

      <indexterm>
        <primary>setting</primary>

        <secondary>terminal type for scout</secondary>
      </indexterm>

      <indexterm>
        <primary>terminal type</primary>

        <secondary>setting for scout program</secondary>
      </indexterm>

      <indexterm>
        <primary>dumb terminal</primary>

        <secondary>use in scout program</secondary>
      </indexterm>

      <para>The <emphasis role="bold">scout</emphasis> program runs on any AFS client machine that has access to the <emphasis
      role="bold">curses</emphasis> graphics package, which most UNIX distributions include as a standard utility. It can run on
      both dumb terminals and under windowing systems that emulate terminals, but the output looks best on machines that support
      reverse video and cursor addressing. For best results, set the TERM environment variable to the correct terminal type, or one
      with characteristics similar to the actual ones. For machines running AIX, the recommended TERM setting is <emphasis
      role="bold">vt100</emphasis>, assuming the terminal is similar to that. For other operating systems, the wider range of
      acceptable values includes <emphasis role="bold">xterm</emphasis>, <emphasis role="bold">xterms</emphasis>, <emphasis
      role="bold">vt100</emphasis>, <emphasis role="bold">vt200</emphasis>, and <emphasis role="bold">wyse85</emphasis>.</para>

      <indexterm>
        <primary>privilege</primary>

        <secondary>required for scout program</secondary>
      </indexterm>

      <para>No privilege is required to run the <emphasis role="bold">scout</emphasis> program, so any user who can access the
      directory where its binary resides (the <emphasis role="bold">/usr/afsws/bin</emphasis> directory in the conventional
      configuration) can use it. The program's probes for collecting statistics do not impose a significant burden on the File
      Server process, but you can restrict its use by placing the binary file in a directory with a more restrictive access control
      list (ACL).</para>

      <para>Multiple instances of the <emphasis role="bold">scout</emphasis> program can run on a single client machine, each over
      its own dedicated connection (in its own window). It must run in the foreground, so the window in which it runs does not
      accept further input except for an interrupt signal.</para>

      <para>You can also run the <emphasis role="bold">scout</emphasis> program on several machines and view its output on a single
      machine, by opening telnet connections to the other machines from the central one and initializing the program in each remote
      window. In this case, you can include the <emphasis role="bold">-host</emphasis> flag to the <emphasis
      role="bold">scout</emphasis> command to make the name of each remote machine appear in the <emphasis>banner line</emphasis> at
      the top of the window displaying its output. See <link linkend="HDRWQ330">The Banner Line</link>.</para>
    </sect2>

    <sect2 id="HDRWQ328">
      <title>Using the -basename argument to Specify a Domain Name</title>

      <indexterm>
        <primary>scout program</primary>

        <secondary>basename</secondary>
      </indexterm>

      <indexterm>
        <primary>basenames in scout program</primary>
      </indexterm>

      <para>As previously mentioned, the <emphasis role="bold">scout</emphasis> program can monitor the File Server process on any
      number of file server machines. If all of the machines belong to the same cell, then their hostnames probably all have the
      same domain name suffix, such as <emphasis role="bold">example.com</emphasis> in the Example Corporation cell. In this case, you can
      use the <emphasis role="bold">-basename</emphasis> argument to the <emphasis role="bold">scout</emphasis> command, which has
      several advantages: <itemizedlist>
          <listitem>
            <para>You can omit the domain name suffix as you enter each file server machine's name on the command line. The
            <emphasis role="bold">scout</emphasis> program automatically appends the domain name to each machine's name, resulting
            in a fully-qualified hostname. You can omit the domain name suffix even when you don't include the <emphasis
            role="bold">-basename</emphasis> argument, but in that case correct resolution of the name depends on the state of your
            cell's naming service at the time of connection.</para>
          </listitem>

          <listitem>
            <para>The machine names are more likely to fit in the appropriate column of the display without having to be truncated
            (for more on truncating names in the display column, see <link linkend="HDRWQ331">The Statistics Display
            Region</link>).</para>
          </listitem>

          <listitem>
            <para>The domain name appears in the banner line at the top of the display window to indicate the name of the cell you
            are monitoring.</para>
          </listitem>
        </itemizedlist></para>
    </sect2>

    <sect2 id="HDRWQ329">
      <title>The Layout of the scout Display</title>

      <indexterm>
        <primary>scout program</primary>

        <secondary>display layout</secondary>
      </indexterm>

      <indexterm>
        <primary>display layout in scout program window</primary>
      </indexterm>

      <para>The <emphasis role="bold">scout</emphasis> program can display statistics either in a dedicated window or on a plain
      screen if a windowing environment is not available. For best results, use a window or screen that can print in reverse video
      and do cursor addressing.</para>

      <para>The <emphasis role="bold">scout</emphasis> program screen has three main regions: the <emphasis>banner line</emphasis>,
      the <emphasis>statistics display region</emphasis> and the <emphasis>probe/message</emphasis> line. This section describes
      their contents, and graphic examples appear in <link linkend="HDRWQ336">Example Commands and Displays</link>.</para>

      <sect3 id="HDRWQ330">
        <title>The Banner Line</title>

        <indexterm>
          <primary>scout program</primary>

          <secondary>banner line</secondary>
        </indexterm>

        <indexterm>
          <primary>banner line on the scout program screen</primary>
        </indexterm>

        <para>By default, the string <computeroutput>scout</computeroutput> appears in the banner line at the top of the window or
        screen, to indicate that the <emphasis role="bold">scout</emphasis> program is running. You can display two additional types
        of information by include the appropriate option on the command line: <itemizedlist>
            <listitem>
              <para>Include the <emphasis role="bold">-host</emphasis> flag to display the local machine's name in the banner line.
              This is particularly useful when you are running the <emphasis role="bold">scout</emphasis> program on several
              machines but displaying the results on a single machine.</para>

              <para>For example, the following banner line appears when you run the <emphasis role="bold">scout</emphasis> program
              on the machine <emphasis role="bold">client1.example.com</emphasis> and use the<emphasis role="bold">-host</emphasis>
              flag:</para>

              <programlisting>
   [client1.example.com] scout
</programlisting>
            </listitem>

            <listitem>
              <para>Include the <emphasis role="bold">-basename</emphasis> argument to display the specified cell domain name in the
              banner line. For further discussion, see <link linkend="HDRWQ328">Using the -basename argument to Specify a Domain
              Name</link>.</para>

              <para>For example, if you specify a value of <emphasis role="bold">example.com</emphasis> for the <emphasis
              role="bold">-basename</emphasis> argument, the banner line reads:</para>

              <programlisting>
   scout for example.com
</programlisting>
            </listitem>
          </itemizedlist></para>
      </sect3>

      <sect3 id="HDRWQ331">
        <title>The Statistics Display Region</title>

        <indexterm>
          <primary>scout program</primary>

          <secondary>statistics displayed</secondary>
        </indexterm>

        <indexterm>
          <primary>statistics display by scout program</primary>
        </indexterm>

        <para>The statistics display region occupies most of the window and is divided into six columns. The following list
        describes them as they appear from left to right in the window. <variablelist>
            <varlistentry>
              <term><computeroutput>Conn</computeroutput></term>

              <listitem>
                <indexterm>
                  <primary>Conn statistic from scout program</primary>
                </indexterm>

                <para>Displays the number of RPC connections open between the File Server process and client machines. This number
                normally equals or exceeds the number in the fourth <computeroutput>Ws</computeroutput> column. It can exceed the
                number in that column because each user on the machine can have more than one connection open at once, and one
                client machine can handle several users.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><computeroutput>Fetch</computeroutput></term>

              <listitem>
                <indexterm>
                  <primary>Fetch statistic from scout program</primary>
                </indexterm>

                <para>Displays the number of fetch-type RPCs (fetch data, fetch access list, and fetch status) that the File Server
                process has received from client machines since it started. It resets to zero when the File Server process
                restarts.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><computeroutput>Store</computeroutput></term>

              <listitem>
                <indexterm>
                  <primary>Store statistic from scout program</primary>
                </indexterm>

                <para>Displays the number of store-type RPCs (store data, store access list, and store status) that the File Server
                process has received from client machines since it started. It resets to zero when the File Server process
                restarts.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><computeroutput>Ws</computeroutput></term>

              <listitem>
                <indexterm>
                  <primary>active</primary>

                  <secondary>clients statistic from scout program</secondary>
                </indexterm>

                <indexterm>
                  <primary>client machines statistic from scout program</primary>
                </indexterm>

                <indexterm>
                  <primary>Ws statistic from scout program</primary>
                </indexterm>

                <para>Displays the number of client machines (workstations) that have communicated with the File Server process
                within the last 15 minutes (such machines are termed <emphasis>active</emphasis>). This number is likely to be
                smaller than the number in the <computeroutput>Conn</computeroutput>) column because a single client machine can
                have several connections open to one File Server process.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><emphasis role="bold">[Unlabeled column]</emphasis></term>

              <listitem>
                <para>Displays the name of the file server machine on which the File Server process is running. It is 12 characters
                wide. Longer names are truncated and an asterisk (<computeroutput>*</computeroutput>) appears as the last character
                in the name. If all machines have the same domain name suffix, you can use the <emphasis
                role="bold">-basename</emphasis> argument to decrease the need for truncation; see <link linkend="HDRWQ328">Using
                the -basename argument to Specify a Domain Name</link>.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><computeroutput>Disk attn</computeroutput></term>

              <listitem>
                <indexterm>
                  <primary>disk partition</primary>

                  <secondary>monitoring usage of</secondary>
                </indexterm>

                <indexterm>
                  <primary>monitoring</primary>

                  <secondary>disk usage with scout program</secondary>
                </indexterm>

                <indexterm>
                  <primary>scout program</primary>

                  <secondary>monitoring disk usage</secondary>
                </indexterm>

                <indexterm>
                  <primary>Disk attn statistic from scout program</primary>
                </indexterm>

                <para>Displays the number of kilobyte blocks available on up to 26 of the file server machine's AFS server
                (<emphasis role="bold">/vicep</emphasis>) partitions. The display for each partition has the following format:
                <programlisting>
   partition_letter:free_blocks
</programlisting></para>

                <para>For example, <computeroutput>a:8949</computeroutput> indicates that partition <emphasis
                role="bold">/vicepa</emphasis> has 8,949 KB free. If the window is not wide enough for all partition entries to
                appear on a single line, the <emphasis role="bold">scout</emphasis> program automatically stacks the partition
                entries into subcolumns within the sixth column.</para>

                <para>The label on the <computeroutput>Disk attn</computeroutput> column indicates the threshold value at which
                entries in the column become highlighted. By default, the <emphasis role="bold">scout</emphasis> program highlights
                a partition that is over 95% full, in which case the label is as follows:</para>

                <programlisting>
   Disk attn: &gt; 95% used
</programlisting>

                <para>For more on this threshold and its effect on highlighting, see <link linkend="HDRWQ332">Highlighting
                Significant Statistics</link>.</para>
              </listitem>
            </varlistentry>
          </variablelist></para>

        <para>For all columns except the fifth (file server machine name), you can use the <emphasis
        role="bold">-attention</emphasis> argument to set a threshold value above which the <emphasis role="bold">scout</emphasis>
        program highlights the statistic. By default, only values in the fifth and sixth columns ever become highlighted. For
        instructions on using the <emphasis role="bold">-attention</emphasis> argument, see <link linkend="HDRWQ332">Highlighting
        Significant Statistics</link>.</para>
      </sect3>

      <sect3 id="Header_368">
        <title>The Probe Reporting Line</title>

        <indexterm>
          <primary>scout program</primary>

          <secondary>probe reporting line</secondary>
        </indexterm>

        <indexterm>
          <primary>message line in scout program display</primary>
        </indexterm>

        <para>The bottom line of the display indicates how many times the <emphasis role="bold">scout</emphasis> program has probed
        the File Server processes for statistics. The statistics gathered in the latest probe appear in the statistics display
        region. By default, the <emphasis role="bold">scout</emphasis> program probes the File Servers every 60 seconds, but you can
        use the <emphasis role="bold">-frequency</emphasis> argument to specify a different probe frequency.</para>
      </sect3>
    </sect2>

    <sect2 id="HDRWQ332">
      <title>Highlighting Significant Statistics</title>

      <indexterm>
        <primary>scout program</primary>

        <secondary>highlighting in</secondary>
      </indexterm>

      <indexterm>
        <primary>highlighting statistics in scout display</primary>

        <secondary>use of reverse video</secondary>
      </indexterm>

      <indexterm>
        <primary>scout program</primary>

        <secondary>reverse video</secondary>
      </indexterm>

      <indexterm>
        <primary>reverse video</primary>

        <secondary>use in scout program display</secondary>
      </indexterm>

      <para>To draw your attention to a statistic that currently exceed a threshold value, the <emphasis
      role="bold">scout</emphasis> program displays it in reverse video (highlights it). You can set the threshold value for most
      statistics, and so determine which values are worthy of special attention and which are normal.</para>

      <sect3 id="HDRWQ333">
        <title>Highlighting Server Outages</title>

        <indexterm>
          <primary>outages</primary>

          <secondary>monitoring with scout program</secondary>
        </indexterm>

        <indexterm>
          <primary>scout program</primary>

          <secondary>outages, monitoring</secondary>
        </indexterm>

        <indexterm>
          <primary>monitoring</primary>

          <secondary>outages with scout program</secondary>
        </indexterm>

        <indexterm>
          <primary>File Server</primary>

          <secondary>monitoring with scout program</secondary>
        </indexterm>

        <indexterm>
          <primary>file server machine</primary>

          <secondary>monitoring outages of</secondary>
        </indexterm>

        <para>The only column in which you cannot control highlighting is the fifth, which identifies the file server machine for
        which statistics are displayed in the other columns. The <emphasis role="bold">scout</emphasis> program uses highlighting in
        this column to indicate that the File Server process on a machine fails to respond to its probe, and automatically blanks
        out the other columns. Failure to respond to the probe can indicate a File Server process, file server machine, or network
        outage, so the highlighting draws your attention to a situation that is probably interrupting service to users.</para>

        <para>When the File Server process once again responds to the probes, its name appears normally and statistics reappear in
        the other columns. If all machine names become highlighted at once, a possible network outage has disrupted the connection
        between the file server machines and the client machine running the <emphasis role="bold">scout</emphasis> program.</para>
      </sect3>

      <sect3 id="Header_371">
        <title>Highlighting for Extreme Statistic Values</title>

        <para>To set the threshold value for one or more of the five statistics-displaying columns, use the <emphasis
        role="bold">-attention</emphasis> argument. The threshold value applies to all File Server processes you are monitoring (you
        cannot set different thresholds for different machines). For details, see the syntax description in <link
        linkend="HDRWQ335">To start the scout program</link>.</para>

        <para>It is not possible to change the threshold values for a running <emphasis role="bold">scout</emphasis> program. Stop
        the current program and start a new one. Also, the <emphasis role="bold">scout</emphasis> program does not retain threshold
        values across restarts, so you must specify all thresholds every time you start the program.</para>
      </sect3>
    </sect2>

    <sect2 id="HDRWQ334">
      <title>Resizing the scout Display</title>

      <indexterm>
        <primary>scout program</primary>

        <secondary>display, resizing</secondary>
      </indexterm>

      <indexterm>
        <primary>window</primary>

        <secondary>resizing scout display</secondary>
      </indexterm>

      <indexterm>
        <primary>resizing</primary>

        <secondary>scout display</secondary>
      </indexterm>

      <para>Do not resize the display window while the <emphasis role="bold">scout</emphasis> program is running. Increasing the
      size does no harm, but the <emphasis role="bold">scout</emphasis> program does not necessarily adjust to the new dimensions.
      Decreasing the display's width can disturb column alignment, making the display harder to read. With any type of resizing, the
      <emphasis role="bold">scout</emphasis> program does not adjust the display in any way until it displays the results of the
      next probe.</para>

      <para>To resize the display effectively, stop the <emphasis role="bold">scout</emphasis> program, resize the window and then
      restart the program. Even in this case, the <emphasis role="bold">scout</emphasis> program's response depends on the accuracy
      of the information it receives from the display environment. Testing during development has shown that the display environment
      does not reliably provide information about window resizing. If you use the X windowing system, issuing the following sequence
      of commands before starting the <emphasis role="bold">scout</emphasis> program (or placing them in the shell initialization
      file) sometimes makes it adjust properly to resizing.</para>

      <programlisting>
   % <emphasis role="bold">set noglob</emphasis>
   % <emphasis role="bold">eval '/usr/bin/X11/resize'</emphasis> 
   % <emphasis role="bold">unset noglob</emphasis>
</programlisting>

      <indexterm>
        <primary>starting</primary>

        <secondary>scout program</secondary>
      </indexterm>

      <indexterm>
        <primary>scout program</primary>

        <secondary>starting</secondary>
      </indexterm>

      <indexterm>
        <primary>initializing</primary>

        <secondary>scout program</secondary>
      </indexterm>

      <indexterm>
        <primary>scout program</primary>

        <secondary>command syntax</secondary>
      </indexterm>

      <indexterm>
        <primary>commands</primary>

        <secondary>scout</secondary>
      </indexterm>
    </sect2>

    <sect2 id="HDRWQ335">
      <title>To start the scout program</title>

      <orderedlist>
        <listitem>
          <para>Open a dedicated command shell. If necessary, adjust it to the appropriate size.</para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">scout</emphasis> command to start the program. <programlisting>
   % <emphasis role="bold">scout</emphasis>  [<emphasis role="bold">initcmd</emphasis>]  <emphasis role="bold">-server</emphasis> &lt;<replaceable>FileServer name(s) to monitor</replaceable>&gt;+  \
            [<emphasis role="bold">-basename</emphasis> &lt;<replaceable>base server name</replaceable>&gt;]  \
            [<emphasis role="bold">-frequency</emphasis> &lt;<replaceable>poll frequency, in seconds</replaceable>&gt;] [<emphasis
                role="bold">-host</emphasis>]  \
            [<emphasis role="bold">-attention</emphasis> &lt;<replaceable>specify attention (highlighting) level</replaceable>&gt;+]  \
            [<emphasis role="bold">-debug</emphasis> &lt;<replaceable>turn debugging output on to the named file</replaceable>&gt;]
</programlisting></para>

          <para>where <variablelist>
              <varlistentry>
                <term><emphasis role="bold">initcmd</emphasis></term>

                <listitem>
                  <para>Is an optional string that accommodates the command's use of the AFS command parser. It can be omitted and
                  ignored.</para>
                </listitem>
              </varlistentry>

              <varlistentry>
                <term><emphasis role="bold">-server</emphasis></term>

                <listitem>
                  <para>Identifies each File Server process to monitor, by naming the file server machine it is running on. Provide
                  fully-qualified hostnames unless the <emphasis role="bold">-basename</emphasis> argument is used. In that case,
                  specify only the initial part of each machine name, omitting the domain name suffix common to all the machine
                  names.</para>
                </listitem>
              </varlistentry>

              <varlistentry>
                <term><emphasis role="bold">-basename</emphasis></term>

                <listitem>
                  <para>Specifies the domain name suffix common to all of the file server machines named by the <emphasis
                  role="bold">-server</emphasis> argument. For discussion of this argument's effects, see <link
                  linkend="HDRWQ328">Using the -basename argument to Specify a Domain Name</link>.</para>

                  <para>Do not include the period that separates the domain suffix from the initial part of the machine name, but do
                  include any periods that occur within the suffix itself. (For example, in the Example Corporation cell, the proper
                  value is <emphasis role="bold">example.com</emphasis>, not <emphasis role="bold">.example.com</emphasis>.)</para>
                </listitem>
              </varlistentry>

              <varlistentry>
                <term><emphasis role="bold">-frequency</emphasis></term>

                <listitem>
                  <para>Sets the frequency, in seconds, of the <emphasis role="bold">scout</emphasis> program's probes to File
                  Server processes. Specify an integer greater than 0 (zero). The default is 60 seconds.</para>
                </listitem>
              </varlistentry>

              <varlistentry>
                <term><emphasis role="bold">-host</emphasis></term>

                <listitem>
                  <para>Displays the name of the machine that is running the <emphasis role="bold">scout</emphasis> program in the
                  display window's banner line. By default, no machine name is displayed.</para>
                </listitem>
              </varlistentry>

              <varlistentry>
                <term><emphasis role="bold">-attention</emphasis></term>

                <listitem>
                  <para>Defines the threshold value at which to highlight one or more statistics. You can provide the pairs of
                  statistic and threshold in any order, separating each pair and the parts of each pair with one or more spaces. The
                  following list defines the syntax for each statistic.<variablelist>
                      <indexterm>
                        <primary>scout program</primary>

                        <secondary>attention levels, setting</secondary>
                      </indexterm>

                      <indexterm>
                        <primary>highlighting statistics in scout display</primary>

                        <secondary>setting thresholds</secondary>
                      </indexterm>

                      <indexterm>
                        <primary>thresholds for statistics in scout display</primary>

                        <secondary>setting</secondary>
                      </indexterm>

                      <varlistentry>
                        <term><emphasis role="bold">conn connections</emphasis></term>

                        <listitem>
                          <para>Highlights the value in the <computeroutput>Conn</computeroutput> (first) column when the number of
                          connections that the File Server has open to client machines exceeds the connections value. The
                          highlighting deactivates when the value goes back below the threshold. There is no default
                          threshold.</para>
                        </listitem>
                      </varlistentry>

                      <varlistentry>
                        <term><emphasis role="bold">fetch fetch_RPCs</emphasis></term>

                        <listitem>
                          <para>Highlights the value in the <computeroutput>Fetch</computeroutput> (second) column when the number
                          of fetch RPCs that clients have made to the File Server process exceeds the fetch_RPCs value. The
                          highlighting deactivates only when the File Server process restarts, at which time the value returns to
                          zero. There is no default threshold.</para>
                        </listitem>
                      </varlistentry>

                      <varlistentry>
                        <term><emphasis role="bold">store store_RPCs</emphasis></term>

                        <listitem>
                          <para>Highlights the value in the <computeroutput>Store</computeroutput> (third) column when the number of
                          store RPCs that clients have made to the File Server process exceeds the store_RPCs value. The
                          highlighting deactivates only when the File Server process restarts, at which time the value returns to
                          zero. There is no default threshold.</para>
                        </listitem>
                      </varlistentry>

                      <varlistentry>
                        <term><emphasis role="bold">ws active_clients</emphasis></term>

                        <listitem>
                          <para>Highlights the value in the <computeroutput>Ws</computeroutput> (fourth) column when the number of
                          active client machines (those that have contacted the File Server in the last 15 minutes) exceeds the
                          active_clients value. The highlighting deactivates when the value goes back below the threshold. There is
                          no default threshold.</para>
                        </listitem>
                      </varlistentry>

                      <varlistentry>
                        <term><emphasis role="bold">disk percent_full % or disk min_blocks</emphasis></term>

                        <listitem>
                          <para>Highlights the value for a partition in the <computeroutput>Disk attn</computeroutput> (sixth)
                          column when either the amount of disk space used exceeds the percentage indicated by thepercent_full
                          value, or the number of free KB blocks is less than the min_blocks value. The highlighting deactivates
                          when the value goes back below the percent_full threshold or above the min_blocks threshold.</para>

                          <para>The value you specify appears in the header of the sixth column following the string
                          <computeroutput>Disk attn</computeroutput>. The default threshold is 95% full.</para>

                          <para>Acceptable values for percent_full are the integers from the range <emphasis
                          role="bold">0</emphasis> (zero) to <emphasis role="bold">99</emphasis>, and you must include the percent
                          sign to distinguish this statistic from a min_blocks value..</para>
                        </listitem>
                      </varlistentry>
                    </variablelist></para>

                  <para>The following example sets the threshold for the <computeroutput>Conn</computeroutput> column to 100, for
                  the <computeroutput>Ws</computeroutput> column to 50, and for the <computeroutput>Disk attn</computeroutput>
                  column to 75%. There is no threshold for the <computeroutput>Fetch</computeroutput> and
                  <computeroutput>Store</computeroutput> columns.</para>

                  <para><emphasis role="bold">-attention conn 100 ws 50 disk 75%</emphasis></para>

                  <para>The following example has the same affect as the previous one except that it sets the threshold for the Disk
                  attn column to 5000 free KB blocks:</para>

                  <para><emphasis role="bold">-attention disk 5000 ws 50 conn 100</emphasis></para>
                </listitem>
              </varlistentry>

              <varlistentry>
                <term><emphasis role="bold">-debug</emphasis></term>

                <listitem>
                  <para>Enables debugging output and directs it into the specified file. Partial pathnames are interpreted relative
                  to the current working directory. By default, no debugging output is produced.</para>
                </listitem>
              </varlistentry>
            </variablelist></para>
        </listitem>
      </orderedlist>
    </sect2>

    <sect2 id="Header_374">
      <title>To stop the scout program</title>

      <indexterm>
        <primary>scout program</primary>

        <secondary>stopping</secondary>
      </indexterm>

      <orderedlist>
        <listitem>
          <para>Enter <emphasis role="bold">Ctrl-c</emphasis> in the display window. This is the proper interrupt signal even if the
          general interrupt signal in your environment is different.</para>
        </listitem>
      </orderedlist>
    </sect2>

    <sect2 id="HDRWQ336">
      <title>Example Commands and Displays</title>

      <indexterm>
        <primary>scout program</primary>

        <secondary>examples (command and display)</secondary>
      </indexterm>

      <indexterm>
        <primary>examples</primary>

        <secondary>scout program display</secondary>
      </indexterm>

      <para>This section presents examples of the <emphasis role="bold">scout</emphasis> program, combining different arguments and
      illustrating the screen displays that result.</para>

      <para>In the first example, an administrator in the Example Corporation issues the <emphasis role="bold">scout</emphasis> command
      without providing any optional arguments or flags. She includes the <emphasis role="bold">-server</emphasis> argument because
      she is providing multiple machine names. She chooses to specify on the initial part of each machine's name even though she has
      not used the <emphasis role="bold">-basename</emphasis> argument, relying on the cell's name service to obtain the
      fully-qualified name that the <emphasis role="bold">scout</emphasis> program requires for establishing a connection.</para>

      <programlisting>
   % <emphasis role="bold">scout -server fs1 fs2</emphasis> 
</programlisting>

      <para><link linkend="FIGWQ337">Figure 2</link> depicts the resulting display. Notice first that the machine names in the fifth
      (unlabeled) column appear in the format the administrator used on the command line. Now consider the second line in the
      display region, where the machine name <computeroutput>fs2</computeroutput> appears in the fifth column. The
      <computeroutput>Conn</computeroutput> and <computeroutput>Ws</computeroutput> columns together show that machine <emphasis
      role="bold">fs2</emphasis> has 144 RPC connections open to 44 client machines, demonstrating that multiple connections per
      client machine are possible. The <computeroutput>Fetch</computeroutput> column shows that client machines have made 2,734,278
      fetch RPCs to machine <emphasis role="bold">fs2</emphasis> since the File Server process last started and the
      <computeroutput>Store</computeroutput> column shows that they have made 34,066 store RPCs.</para>

      <para>Six partition entries appear in the <computeroutput>Disk attn</computeroutput> column, marked
      <computeroutput>a</computeroutput> through <computeroutput>f</computeroutput> (for <emphasis role="bold">/vicepa</emphasis>
      through <emphasis role="bold">/vicepf</emphasis>). They appear on three lines in two subcolumns because of the width of the
      window; if the window is wider, there are more subcolumns. Four of the partition entries (<computeroutput>a</computeroutput>,
      <computeroutput>c</computeroutput>, <computeroutput>d</computeroutput>, and <computeroutput>e</computeroutput>) appear in
      reverse video to indicate that they are more than 95% full (the threshold value that appears in the <computeroutput>Disk
      attn</computeroutput> header).</para>

      <figure id="FIGWQ337" label="2">
        <title>First example scout display</title>

        <mediaobject>
          <imageobject>
            <imagedata fileref="scout1.png" scale="50" />
          </imageobject>
        </mediaobject>
      </figure>

      <para><emphasis role="bold"> </emphasis></para>

      <para>In the second example, the administrator uses more of the <emphasis role="bold">scout</emphasis> program's optional
      arguments. <itemizedlist>
          <listitem>
            <para>She provides the machine names in the same form as in Example 1, but this time she also uses the <emphasis
            role="bold">-basename</emphasis> argument to specify their domain name suffix, <emphasis role="bold">example.com</emphasis>.
            This implies that the <emphasis role="bold">scout</emphasis> program does not need the name service to expand the names
            to fully-qualified hostnames, but the name service still converts the hostnames to IP addresses.</para>
          </listitem>

          <listitem>
            <para>She uses the <emphasis role="bold">-host</emphasis> flag to display in the banner line the name of the client
            machine where the <emphasis role="bold">scout</emphasis> program is running.</para>
          </listitem>

          <listitem>
            <para>She uses the <emphasis role="bold">-frequency</emphasis> argument to changes the probing frequency from its
            default of once per minute to once every five seconds.</para>
          </listitem>

          <listitem>
            <para>She uses the <emphasis role="bold">-attention</emphasis> argument to changes the highlighting threshold for
            partitions to a 5000 KB minimum rather than the default of 95% full.</para>
          </listitem>
        </itemizedlist></para>

      <programlisting>
   % <emphasis role="bold">scout -server fs1 fs2 -basename example.com -host -frequency 5 -attention disk 5000</emphasis> 
</programlisting>

      <para>The use of optional arguments results in several differences between <link linkend="FIGWQ338">Figure 3</link> and <link
      linkend="FIGWQ337">Figure 2</link>. First, because the <emphasis role="bold">-host</emphasis> flag is included, the banner
      line displays the name of the machine running the <emphasis role="bold">scout</emphasis> process as
      <computeroutput>[client52]</computeroutput> along with the basename <computeroutput>example.com</computeroutput> specified with
      the <emphasis role="bold">-basename</emphasis> argument.</para>

      <para>Another difference is that two rather than four of machine <emphasis role="bold">fs2</emphasis>'s partitions appear in
      reverse video, even though their values are almost the same as in <link linkend="FIGWQ337">Figure 2</link>. This is because
      the administrator changed the highlight threshold to a 5000 block minimum, as also reflected in the <computeroutput>Disk
      attn</computeroutput> column's header. And while machine <emphasis role="bold">fs2</emphasis>'s partitions <emphasis
      role="bold">/vicepa</emphasis> and <emphasis role="bold">/vicepd</emphasis> are still 95% full, they have more than 5000 free
      blocks left; partitions <emphasis role="bold">/vicepc</emphasis> and <emphasis role="bold">/vicepe</emphasis> are highlighted
      because they have fewer than 5000 blocks free.</para>

      <para>Note also the result of changing the probe frequency, reflected in the probe reporting line at the bottom left corner of
      the display. Both this example and the previous one represent a time lapse of one minute after the administrator issues the
      <emphasis role="bold">scout</emphasis> command. In this example, however, the <emphasis role="bold">scout</emphasis> program
      has probed the File Server processes 12 times as opposed to once</para>

      <figure id="FIGWQ338" label="3">
        <title>Second example scout display</title>

        <mediaobject>
          <imageobject>
            <imagedata fileref="scout2.png" scale="50" />
          </imageobject>
        </mediaobject>
      </figure>

      <para><emphasis role="bold"> </emphasis></para>

      <para>In <link linkend="FIGWQ339">Figure 4</link>, an administrator in the State University cell monitors three of that cell's
      file server machines. He uses the <emphasis role="bold">-basename</emphasis> argument to specify the <emphasis
      role="bold">stateu.edu</emphasis> domain name.</para>

      <programlisting>
   % <emphasis role="bold">scout -server server2 server3 server4 -basename stateu.edu</emphasis> 
</programlisting>

      <figure id="FIGWQ339" label="4">
        <title>Third example scout display</title>

        <mediaobject>
          <imageobject>
            <imagedata fileref="scout3.png" scale="50" />
          </imageobject>
        </mediaobject>
      </figure>

      <para><emphasis role="bold"> </emphasis></para>

      <para><link linkend="FIGWQ340">Figure 5</link> illustrates three of the <emphasis role="bold">scout</emphasis> program's
      features. First, you can monitor file server machines from different cells in a single display: <emphasis
      role="bold">fs1.abc.com</emphasis>, <emphasis role="bold">server3.stateu.edu</emphasis>, and <emphasis
      role="bold">sv7.def.com</emphasis>. Because the machines belong to different cells, it is not possible to provide the
      <emphasis role="bold">-basename</emphasis> argument.</para>

      <para>Second, it illustrates how the display must truncate machine names that do not fit in the fifth column, using an
      asterisk at the end of the name to show that it is shortened.</para>

      <para>Third, it illustrates what happens when the <emphasis role="bold">scout</emphasis> process cannot reach a File Server
      process, in this case the one on the machine <emphasis role="bold">sv7.def.com</emphasis>: it highlights the machine name and
      blanks out the values in the other columns.</para>

      <figure id="FIGWQ340" label="5">
        <title>Fourth example scout display</title>

        <mediaobject>
          <imageobject>
            <imagedata fileref="scout4.png" scale="50" />
          </imageobject>
        </mediaobject>
      </figure>
    </sect2>
  </sect1>

  <sect1 id="HDRWQ341">
    <title>Using the fstrace Command Suite</title>

    <para>This section describes the <emphasis role="bold">fstrace</emphasis> commands that system administrators employ to trace
    Cache Manager activity for debugging purposes. It assumes the reader is familiar with the Cache Manager concepts described in
    <link linkend="HDRWQ387">Administering Client Machines and the Cache Manager</link>.</para>

    <para>The <emphasis role="bold">fstrace</emphasis> command suite monitors the internal activity of the Cache Manager and enables
    you to record, or trace, its operations in detail. The operations, which are termed <emphasis>events</emphasis>, comprise the
    <emphasis role="bold">cm</emphasis> <emphasis>event set</emphasis>. Examples of <emphasis role="bold">cm</emphasis> events are
    fetching files and looking up information for a listing of files and subdirectories using the UNIX <emphasis
    role="bold">ls</emphasis> command.</para>

    <para>Following are the <emphasis role="bold">fstrace</emphasis> commands and their respective functions: <itemizedlist>
        <listitem>
          <para>The <emphasis role="bold">fstrace apropos</emphasis> command provides a short description of commands.</para>
        </listitem>

        <listitem>
          <para>The <emphasis role="bold">fstrace clear</emphasis> command clears the trace log.</para>
        </listitem>

        <listitem>
          <para>The <emphasis role="bold">fstrace dump</emphasis> command dumps the contents of the trace log.</para>
        </listitem>

        <listitem>
          <para>The <emphasis role="bold">fstrace help</emphasis> command provides a description and syntax for commands.</para>
        </listitem>

        <listitem>
          <para>The <emphasis role="bold">fstrace lslog</emphasis> command lists information about the trace log.</para>
        </listitem>

        <listitem>
          <para>The <emphasis role="bold">fstrace lsset</emphasis> command lists information about the event set.</para>
        </listitem>

        <listitem>
          <para>The <emphasis role="bold">fstrace setlog</emphasis> command changes the size of the trace log.</para>
        </listitem>

        <listitem>
          <para>The <emphasis role="bold">fstrace setset</emphasis> command sets the state of the event set.</para>
        </listitem>
      </itemizedlist></para>

    <sect2 id="HDRWQ342">
      <title>About the fstrace Command Suite</title>

      <para>The <emphasis role="bold">fstrace</emphasis> command suite replaces and greatly expands the functionality formerly
      provided by the <emphasis role="bold">fs debug</emphasis> command. Its intended use is to aid in diagnosis of specific Cache
      Manager problems, such as client machine hangs, cache consistency problems, clock synchronization errors, and failures to
      access a volume or AFS file. Therefore, it is best not to keep <emphasis role="bold">fstrace</emphasis> logging enabled at all
      times, unlike the logging for AFS server processes.</para>

      <para>Most of the messages in the trace log correspond to low-level Cache Manager operations. It is likely that only personnel
      familiar with the AFS source code can interpret them. If you have an AFS source license, you can attempt to interpret the
      trace yourself, or work with the AFS Product Support group to resolve the underlying problems. If you do not have an AFS
      source license, it is probably more efficient to contact the AFS Product Support group immediately in case of problems. They
      can instruct you to activate <emphasis role="bold">fstrace</emphasis> tracing if appropriate.</para>

      <para>The log can grow in size very quickly; this can use valuable disk space if you are writing to a file in the local file
      space. Additionally, if the size of the log becomes too large, it can become difficult to parse the results for pertinent
      information.</para>

      <indexterm>
        <primary>cmfx trace log (fstrace)</primary>
      </indexterm>

      <indexterm>
        <primary>trace log from (fstrace)</primary>

        <secondary>cmfx</secondary>
      </indexterm>

      <para>When AFS tracing is enabled, each time a <emphasis role="bold">cm</emphasis> event occurs, a message is written to the
      trace log, <emphasis role="bold">cmfx</emphasis>. To diagnose a problem, read the output of the trace log and analyze the
      operations executed by the Cache Manager. The default size of the trace log is 60 KB, but you can increase or decrease
      it.</para>

      <indexterm>
        <primary>cm event set (fstrace)</primary>
      </indexterm>

      <indexterm>
        <primary>event set (fstrace)</primary>

        <secondary>cm</secondary>
      </indexterm>

      <para>To use the <emphasis role="bold">fstrace</emphasis> command suite, you must first enable tracing and reserve, or
      allocate, space for the trace log with the <emphasis role="bold">fstrace setset</emphasis> command. With this command, you can
      set the <emphasis role="bold">cm</emphasis> event set to one of three states to enable or disable tracing for the event set
      and to allocate or deallocate space for the trace log in the kernel: <variablelist>
          <indexterm>
            <primary>active</primary>

            <secondary>state of fstrace event set</secondary>
          </indexterm>

          <indexterm>
            <primary>inactive (state of fstrace event set)</primary>
          </indexterm>

          <indexterm>
            <primary>dormant (state of fstrace event set)</primary>
          </indexterm>

          <varlistentry>
            <term><computeroutput>active</computeroutput></term>

            <listitem>
              <para>Enables tracing for the event set and allocates space for the trace log.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>inactive</computeroutput></term>

            <listitem>
              <para>Temporarily disables tracing for the event set; however, the event set continues to allocate space occupied by
              the log to which it sends data.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>dormant</computeroutput></term>

            <listitem>
              <para>Disables tracing for the event set; furthermore, the event set releases the space occupied by the log to which
              it sends data. When the <emphasis role="bold">cm</emphasis> event set that sends data to the <emphasis
              role="bold">cmfx</emphasis> trace log is in this state, the space allocated for that log is freed or
              deallocated.</para>
            </listitem>
          </varlistentry>
        </variablelist></para>

      <indexterm>
        <primary>persistent fstrace event set or trace log</primary>
      </indexterm>

      <indexterm>
        <primary>trace log (fstrace)</primary>

        <secondary>persistence</secondary>
      </indexterm>

      <indexterm>
        <primary>event set (fstrace)</primary>

        <secondary>persistence</secondary>
      </indexterm>

      <para>Both event sets and trace logs can be designated as <emphasis>persistent</emphasis>, which prevents accidental resetting
      of an event set's state or clearing of a trace log. The designation is made as the kernel is compiled and cannot be
      changed.</para>

      <para>If an event set such as <emphasis role="bold">cm</emphasis> is persistent, you can change its state only by including
      the <emphasis role="bold">-set</emphasis> argument to the <emphasis role="bold">fstrace setset</emphasis> command. (That is,
      you cannot change its state along with the state of all other event sets by issuing the <emphasis role="bold">fstrace
      setset</emphasis> command with no arguments.) Similarly, if a trace log such as <emphasis role="bold">cmfx</emphasis> is
      persistent, you can clear it only by including either the <emphasis role="bold">-set</emphasis> or <emphasis
      role="bold">-log</emphasis> argument to the <emphasis role="bold">fstrace clear</emphasis> command (you cannot clear it along
      with all other trace logs by issuing the <emphasis role="bold">fstrace clear</emphasis> command with no arguments.)</para>

      <para>When a problem occurs, set the <emphasis role="bold">cm</emphasis> event set to active using the <emphasis
      role="bold">fstrace setset</emphasis> command. When tracing is enabled on a busy AFS client, the volume of events being
      recorded is significant; therefore, when you are diagnosing problems, restrict AFS activity as much as possible to minimize
      the amount of extraneous tracing in the log. Because tracing can have a negative impact on system performance, leave <emphasis
      role="bold">cm</emphasis> tracing in the dormant state when you are not diagnosing problems.</para>

      <para>If a problem is reproducible, clear the <emphasis role="bold">cmfx</emphasis> trace log with the <emphasis
      role="bold">fstrace clear</emphasis> command and reproduce the problem. If the problem is not easily reproduced, keep the
      state of the event set active until the problem recurs.</para>

      <para>To view the contents of the trace log and analyze the <emphasis role="bold">cm</emphasis> events, use the <emphasis
      role="bold">fstrace dump</emphasis> command to copy the content lines of the trace log to standard output (stdout) or to a
      file.</para>

      <note>
        <para>If a particular command or process is causing problems, determine its process id (PID). Search the output of the
        <emphasis role="bold">fstrace dump</emphasis> command for the PID to find only those lines associated with the
        problem.</para>
      </note>
    </sect2>

    <sect2 id="HDRWQ343">
      <title>Requirements for Using the fstrace Command Suite</title>

      <indexterm>
        <primary>privilege</primary>

        <secondary>required for fstrace commands</secondary>
      </indexterm>

      <indexterm>
        <primary>fstrace commands</primary>

        <secondary>privilege requirements</secondary>
      </indexterm>

      <para>Except for the <emphasis role="bold">fstrace help</emphasis> and <emphasis role="bold">fstrace apropos</emphasis>
      commands, which require no privilege, issuing the <emphasis role="bold">fstrace</emphasis> commands requires that the issuer
      be logged in as the local superuser <emphasis role="bold">root</emphasis> on the local client machine. Before issuing an
      <emphasis role="bold">fstrace</emphasis> command, verify that you have the necessary privilege.</para>

      <para>The Cache Manager catalog must be in place so that logging can occur. The <emphasis role="bold">fstrace</emphasis>
      command suite uses the standard UNIX catalog utilities. The default location is <emphasis
      role="bold">/usr/vice/etc/C/afszcm.cat</emphasis>. It can be placed in another directory by placing the file elsewhere and
      using the proper NLSPATH and LANG environment variables.</para>
    </sect2>

    <sect2 id="Header_379">
      <title>Using fstrace Commands Effectively</title>

      <para>To use <emphasis role="bold">fstrace</emphasis> commands most effectively, configure them as indicated: <itemizedlist>
          <listitem>
            <para>Store the <emphasis role="bold">fstrace</emphasis> binary in a local disk directory.</para>
          </listitem>

          <listitem>
            <para>When you dump the <emphasis role="bold">fstrace</emphasis> log to a file, direct it to one on the local
            disk.</para>
          </listitem>

          <listitem>
            <para>The trace can grow large in just a few minutes. Before attempting to dump the log to a local file, verify that you
            have enough room. Be particularly careful if you are using disk quotas on partitions in the local file system.</para>
          </listitem>

          <listitem>
            <para>Attempt to limit Cache Manager activity on the AFS client machine other than the problem operation. This reduces
            the amount of extraneous data in the trace.</para>
          </listitem>

          <listitem>
            <para>Activate the <emphasis role="bold">fstrace</emphasis> log for the shortest possibly period of time. If possible
            activate the trace immediately before performing the problem operation, deactivate it as soon as the operation
            completes, and dump the trace log to a file immediately.</para>
          </listitem>

          <listitem>
            <para>If possible, obtain UNIX process ID (PID) of the command or program that initiates the problematic operation. This
            enables the person analyzing the trace log to search it for messages associated with the PID.</para>
          </listitem>
        </itemizedlist></para>
    </sect2>

    <sect2 id="HDRWQ344">
      <title>Activating the Trace Log</title>

      <para>To start Cache Manager tracing on an AFS client machine, you must first configure <itemizedlist>
          <listitem>
            <para>The <emphasis role="bold">cmfx</emphasis> kernel trace log using the <emphasis role="bold">fstrace
            setlog</emphasis> command</para>
          </listitem>

          <listitem>
            <para>The <emphasis role="bold">cm</emphasis> event set using the <emphasis role="bold">fstrace setset</emphasis>
            command</para>
          </listitem>
        </itemizedlist></para>

      <para>The <emphasis role="bold">fstrace setlog</emphasis> command sets the size of the <emphasis role="bold">cmfx</emphasis>
      kernel trace log in kilobytes. The trace log occupies 60 kilobytes of kernel by default. If the trace log already exists, it
      is cleared when this command is issued and a new log of the given size is created. Otherwise, a new log of the desired size is
      created.</para>

      <para>The <emphasis role="bold">fstrace setset</emphasis> command sets the state of the <emphasis role="bold">cm</emphasis>
      kernel event set. The state of the <emphasis role="bold">cm</emphasis> event set determines whether information on the events
      in that event set is logged.</para>

      <para>After establishing kernel tracing on the AFS client machine, you can check the state of the event set and the size of
      the kernel buffer allocated for the trace log. To display information about the state of the <emphasis
      role="bold">cm</emphasis> event set, issue the <emphasis role="bold">fstrace lsset</emphasis> command. To display information
      about the <emphasis role="bold">cmfx</emphasis> trace log, use the <emphasis role="bold">fstrace lslog</emphasis> command. See
      the instructions in <link linkend="HDRWQ346">Displaying the State of a Trace Log or Event Set</link>.</para>

      <indexterm>
        <primary>fstrace commands</primary>

        <secondary>setlog</secondary>
      </indexterm>

      <indexterm>
        <primary>commands</primary>

        <secondary>fstrace setlog</secondary>
      </indexterm>

      <indexterm>
        <primary>trace log (fstrace)</primary>

        <secondary>configuring</secondary>
      </indexterm>

      <indexterm>
        <primary>configuring</primary>

        <secondary>trace log (fstrace)</secondary>
      </indexterm>
    </sect2>

    <sect2 id="Header_381">
      <title>To configure the trace log</title>

      <orderedlist>
        <listitem>
          <para>Become the local superuser <emphasis role="bold">root</emphasis> on the machine, if you are not already, by issuing
          the <emphasis role="bold">su</emphasis> command. <programlisting>
   % <emphasis role="bold">su root</emphasis>
   Password: &lt;<replaceable>root_password</replaceable>&gt;
</programlisting></para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">fstrace setlog</emphasis> command to set the size of the <emphasis
          role="bold">cmfx</emphasis> kernel trace log. <programlisting>
   # <emphasis role="bold">fstrace setlog</emphasis>  [<emphasis role="bold">-log</emphasis> &lt;<replaceable>log_name</replaceable>&gt;+]  <emphasis
                role="bold">-buffersize</emphasis> &lt;<replaceable>1-kilobyte_units</replaceable>&gt;
</programlisting></para>
        </listitem>
      </orderedlist>

      <para>The following example sets the size of the <emphasis role="bold">cmfx</emphasis> trace log to 80 KB.</para>

      <programlisting>
   # <emphasis role="bold">fstrace setlog cmfx 80</emphasis> 
</programlisting>

      <indexterm>
        <primary>fstrace commands</primary>

        <secondary>setset</secondary>
      </indexterm>

      <indexterm>
        <primary>commands</primary>

        <secondary>fstrace setset</secondary>
      </indexterm>

      <indexterm>
        <primary>event set (fstrace)</primary>

        <secondary>setting</secondary>
      </indexterm>

      <indexterm>
        <primary>setting</primary>

        <secondary>event set (fstrace)</secondary>
      </indexterm>
    </sect2>

    <sect2 id="HDRWQ345">
      <title>To set the event set</title>

      <orderedlist>
        <listitem>
          <para>Become the local superuser <emphasis role="bold">root</emphasis> on the machine, if you are not already, by issuing
          the <emphasis role="bold">su</emphasis> command. <programlisting>
   % <emphasis role="bold">su root</emphasis>
   Password: &lt;<replaceable>root_password</replaceable>&gt;
</programlisting></para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">fstrace setset</emphasis> command to set the state of event sets. <programlisting>
   % <emphasis role="bold">fstrace setset</emphasis> [<emphasis role="bold">-set</emphasis> &lt;<replaceable>set_name</replaceable>&gt;+] [<emphasis
                role="bold">-active</emphasis>] [<emphasis role="bold">-inactive</emphasis>]  \
                    [<emphasis role="bold">-dormant</emphasis>] 
</programlisting></para>
        </listitem>
      </orderedlist>

      <para>The following example activates the <emphasis role="bold">cm</emphasis> event set.</para>

      <programlisting>
   # <emphasis role="bold">fstrace setset cm -active</emphasis>
</programlisting>
    </sect2>

    <sect2 id="HDRWQ346">
      <title>Displaying the State of a Trace Log or Event Set</title>

      <para>An event set must be in the <emphasis>active state</emphasis> to be included in the trace log. To display an event set's
      state, use the <emphasis role="bold">fstrace lsset</emphasis> command. To set its state, issue the <emphasis
      role="bold">fstrace setset</emphasis> command as described in <link linkend="HDRWQ345">To set the event set</link>.</para>

      <para>To display size and allocation information for the trace log, issue the <emphasis role="bold">fstrace
      lslog</emphasis>command with the <emphasis role="bold">-long</emphasis> argument.</para>

      <indexterm>
        <primary>fstrace commands</primary>

        <secondary>lsset</secondary>
      </indexterm>

      <indexterm>
        <primary>commands</primary>

        <secondary>fstrace lsset</secondary>
      </indexterm>

      <indexterm>
        <primary>event set (fstrace)</primary>

        <secondary>displaying state</secondary>
      </indexterm>

      <indexterm>
        <primary>displaying</primary>

        <secondary>state of event set (fstrace)</secondary>
      </indexterm>
    </sect2>

    <sect2 id="Header_384">
      <title>To display the state of an event set</title>

      <orderedlist>
        <listitem>
          <para>Become the local superuser <emphasis role="bold">root</emphasis> on the machine, if you are not already, by issuing
          the <emphasis role="bold">su</emphasis> command. <programlisting>
   % <emphasis role="bold">su root</emphasis>
   Password: &lt;<replaceable>root_password</replaceable>&gt;
</programlisting></para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">fstrace lsset</emphasis> command to display the available event set and its state.
          <programlisting>
   # <emphasis role="bold">fstrace lsset</emphasis>  [<emphasis role="bold">-set</emphasis> &lt;<replaceable>set_name</replaceable>&gt;+]
</programlisting></para>
        </listitem>
      </orderedlist>

      <para>The following example displays the event set and its state on the local machine.</para>

      <programlisting>
   # <emphasis role="bold">fstrace lsset cm</emphasis>
   Available sets:
   cm active
</programlisting>

      <para>The output from this command lists the event set and its states. The three event states for the <emphasis
      role="bold">cm</emphasis> event set are: <variablelist>
          <varlistentry>
            <term><emphasis role="bold">active</emphasis></term>

            <listitem>
              <para>Tracing is enabled.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><emphasis role="bold">inactive</emphasis></term>

            <listitem>
              <para>Tracing is disabled, but space is still allocated for the corresponding trace log (<emphasis
              role="bold">cmfx</emphasis>).</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><emphasis role="bold">dormant</emphasis></term>

            <listitem>
              <para>Tracing is disabled, and space is no longer allocated for the corresponding trace log (<emphasis
              role="bold">cmfx</emphasis>).Disables tracing for the event set.</para>
            </listitem>
          </varlistentry>
        </variablelist></para>

      <indexterm>
        <primary>fstrace commands</primary>

        <secondary>lslog</secondary>
      </indexterm>

      <indexterm>
        <primary>commands</primary>

        <secondary>fstrace lslog</secondary>
      </indexterm>

      <indexterm>
        <primary>trace log (fstrace)</primary>

        <secondary>displaying state</secondary>
      </indexterm>

      <indexterm>
        <primary>displaying</primary>

        <secondary>state of trace log (fstrace)</secondary>
      </indexterm>
    </sect2>

    <sect2 id="Header_385">
      <title>To display the log size</title>

      <orderedlist>
        <listitem>
          <para>Become the local superuser <emphasis role="bold">root</emphasis> on the machine, if you are not already, by issuing
          the <emphasis role="bold">su</emphasis> command. <programlisting>
   % <emphasis role="bold">su root</emphasis>
   Password: &lt;<replaceable>root_password</replaceable>&gt;
</programlisting></para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">fstrace lslog</emphasis> command to display information about the kernel trace log.
          <programlisting>
   # <emphasis role="bold">fstrace lslog</emphasis>  [<emphasis role="bold">-set</emphasis> &lt;<replaceable>set_name</replaceable>&gt;+]  [<emphasis
                role="bold">-log</emphasis> &lt;<replaceable>log_name</replaceable>&gt;]  [<emphasis role="bold">-long</emphasis>] 
</programlisting></para>
        </listitem>
      </orderedlist>

      <para>The following example uses the <emphasis role="bold">-long</emphasis> flag to display additional information about the
      <emphasis role="bold">cmfx</emphasis> trace log.</para>

      <programlisting>
   # <emphasis role="bold">fstrace lslog cmfx -long</emphasis>
   Available logs:
   cmfx : 60 kbytes (allocated)
</programlisting>

      <para>The output from this command lists information on the trace log. When issued without the <emphasis
      role="bold">-long</emphasis> flag, the <emphasis role="bold">fstrace lslog</emphasis> command lists only the name of the log.
      When issued with the <emphasis role="bold">-long</emphasis> flag, the <emphasis role="bold">fstrace lslog</emphasis> command
      lists the log, the size of the log in kilobytes, and the allocation state of the log.</para>

      <para>There are two allocation states for the kernel trace log: <variablelist>
          <varlistentry>
            <term><computeroutput>allocated</computeroutput></term>

            <listitem>
              <para>Space is reserved for the log in the kernel. This indicates that the event set that writes to this log is either
              <emphasis>active</emphasis> (tracing is enabled for the event set) or <emphasis>inactive</emphasis> (tracing is
              temporarily disabled for the event set); however, the event set continues to reserve space occupied by the log to
              which it sends data.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>unallocated</computeroutput></term>

            <listitem>
              <para>Space is not reserved for the log in the kernel. This indicates that the event set that writes to this log is
              <emphasis>dormant</emphasis> (tracing is disabled for the event set); furthermore, the event set releases the space
              occupied by the log to which it sends data.</para>
            </listitem>
          </varlistentry>
        </variablelist></para>
    </sect2>

    <sect2 id="HDRWQ347">
      <title>Dumping and Clearing the Trace Log</title>

      <para>After the Cache Manager operation you want to trace is complete, use the <emphasis role="bold">fstrace dump</emphasis>
      command to dump the trace log to the standard output stream or to the file named by the <emphasis role="bold">-file</emphasis>
      argument. Or, to dump the trace log continuously, use the <emphasis role="bold">-follow</emphasis> argument (combine it with
      the <emphasis role="bold">-file</emphasis> argument if desired). To halt continuous dumping, press an interrupt signal such as
      &lt;<emphasis role="bold">Ctrl-c</emphasis>&gt;.</para>

      <para>To clear a trace log when you no longer need the data in it, issue the <emphasis role="bold">fstrace clear</emphasis>
      command. (The <emphasis role="bold">fstrace setlog</emphasis> command also clears an existing trace log automatically when you
      use it to change the log's size.)</para>

      <indexterm>
        <primary>fstrace commands</primary>

        <secondary>dump</secondary>
      </indexterm>

      <indexterm>
        <primary>commands</primary>

        <secondary>fstrace dump</secondary>
      </indexterm>

      <indexterm>
        <primary>trace log (fstrace)</primary>

        <secondary>dumping</secondary>
      </indexterm>

      <indexterm>
        <primary>displaying</primary>

        <secondary>contents of trace log (fstrace)</secondary>
      </indexterm>

      <indexterm>
        <primary>dumping</primary>

        <secondary>trace log contents (fstrace)</secondary>
      </indexterm>
    </sect2>

    <sect2 id="Header_387">
      <title>To dump the contents of a trace log</title>

      <orderedlist>
        <listitem>
          <para>Become the local superuser <emphasis role="bold">root</emphasis> on the machine, if you are not already, by issuing
          the <emphasis role="bold">su</emphasis> command. <programlisting>
   % <emphasis role="bold">su root</emphasis>
   Password: &lt;<replaceable>root_password</replaceable>&gt;
</programlisting></para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">fstrace dump</emphasis> command to dump trace logs. <programlisting>
   # <emphasis role="bold">fstrace dump</emphasis> [<emphasis role="bold">-set</emphasis> &lt;<replaceable>set_name</replaceable>&gt;+]  [<emphasis
                role="bold">-follow</emphasis> &lt;<replaceable>log_name</replaceable>&gt;]  \
                  [<emphasis role="bold">-file</emphasis> &lt;<replaceable>output_filename</replaceable>&gt;]  \
                  [<emphasis role="bold">-sleep</emphasis> &lt;<replaceable>seconds_between_reads</replaceable>&gt;]
</programlisting></para>
        </listitem>
      </orderedlist>

      <para>At the beginning of the output of each dump is a header specifying the date and time at which the dump began. The number
      of logs being dumped is also displayed if the <emphasis role="bold">-follow</emphasis> argument is not specified. The header
      appears as follows:</para>

      <programlisting>
   AFS Trace Dump --
   Date: date time
   Found n logs.
</programlisting>

      <para>where <emphasis>date</emphasis> is the starting date of the trace log dump, <emphasis>time</emphasis> is the starting
      time of the trace log dump, and <emphasis>n</emphasis> specifies the number of logs found by the <emphasis role="bold">fstrace
      dump</emphasis> command.</para>

      <para>The following is an example of trace log dump header:</para>

      <programlisting>
   AFS Trace Dump --
   Date: Fri Apr 16 10:44:38 1999
   Found 1 logs.
</programlisting>

      <para>The contents of the log follow the header and are comprised of messages written to the log from an active event set. The
      messages written to the log contain the following three components: <itemizedlist>
          <listitem>
            <para>The timestamp associated with the message (number of seconds from an arbitrary start point)</para>
          </listitem>

          <listitem>
            <para>The process ID or thread ID associated with the message</para>
          </listitem>

          <listitem>
            <para>The message itself</para>
          </listitem>
        </itemizedlist></para>

      <para>A trace log message is formatted as follows:</para>

      <programlisting>
   time timestamp, pid pid:event message
</programlisting>

      <para>where <emphasis>timestamp</emphasis> is the number of seconds from an arbitrary start point, <emphasis>pid</emphasis> is
      the process ID number of the Cache Manager event, and <emphasis>event message</emphasis> is the Cache Manager event which
      corresponds with a function in the AFS source code.</para>

      <para>The following is an example of a dumped trace log message:</para>

      <programlisting>
   time 749.641274, pid 3002:Returning code 2 from 19
</programlisting>

      <para>For the messages in the trace log to be most readable, the Cache Manager catalog file needs to be installed on the local
      disk of the client machine; the conventional location is <emphasis role="bold">/usr/vice/etc/C/afszcm.cat</emphasis>. Log
      messages that begin with the string <computeroutput>raw op</computeroutput>, like the following, indicate that the catalog is
      not installed.</para>

      <programlisting>
   raw op 232c, time 511.916288, pid 0
   p0:Fri Apr 16 10:36:31 1999
</programlisting>

      <para>Every 1024 seconds, a current time message is written to each log. This message has the following format:</para>

      <programlisting>
   time timestamp, pid pid: Current time: unix_time
</programlisting>

      <para>where timestamp is the number of seconds from an arbitrary start point, pid is the process ID number, and unix_time is
      the standard time format since January 1, 1970.</para>

      <para>The current time message can be used to determine the actual time associated with each log message. Determine the actual
      time as follows: <orderedlist>
          <listitem>
            <para>Locate the log message whose actual time you want to determine.</para>
          </listitem>

          <listitem>
            <para>Search backward through the dump record until you come to a current time message.</para>
          </listitem>

          <listitem>
            <para>If the current time message's <emphasis>timestamp</emphasis> is smaller than the log message's
            <emphasis>timestamp</emphasis>, subtract the former from the latter. If the current time message's
            <emphasis>timestamp</emphasis> is larger than the log message's <emphasis>timestamp</emphasis>, add 1024 to the latter
            and subtract the former from the result.</para>
          </listitem>

          <listitem>
            <para>Add the resulting number to the current time message's <emphasis>unix_time</emphasis> to determine the log
            message's actual time.</para>
          </listitem>
        </orderedlist></para>

      <para>Because log data is stored in a finite, circular buffer, some of the data can be overwritten before being read. If this
      happens, the following message appears at the appropriate place in the dump:</para>

      <programlisting>
   Log wrapped; data missing.
</programlisting>

      <note>
        <para>If this message appears in the middle of a dump, which can happen under a heavy work load, it indicates that not all
        of the log data is being written to the log or some data is being overwritten. Increasing the size of the log with the
        <emphasis role="bold">fstrace setlog</emphasis> command can alleviate this problem.</para>
      </note>

      <indexterm>
        <primary>fstrace commands</primary>

        <secondary>clear</secondary>
      </indexterm>

      <indexterm>
        <primary>commands</primary>

        <secondary>fstrace clear</secondary>
      </indexterm>

      <indexterm>
        <primary>trace log (fstrace)</primary>

        <secondary>clearing contents</secondary>
      </indexterm>

      <indexterm>
        <primary>clearing</primary>

        <secondary>contents of trace log (fstrace)</secondary>
      </indexterm>

      <indexterm>
        <primary>removing</primary>

        <secondary>trace log contents (fstrace)</secondary>
      </indexterm>
    </sect2>

    <sect2 id="Header_388">
      <title>To clear the contents of a trace log</title>

      <orderedlist>
        <listitem>
          <para>Become the local superuser <emphasis role="bold">root</emphasis> on the machine, if you are not already, by issuing
          the <emphasis role="bold">su</emphasis> command. <programlisting>
   % <emphasis role="bold">su root</emphasis>
   Password: &lt;<replaceable>root_password</replaceable>&gt;
</programlisting></para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">fstrace clear</emphasis> command to clear logs by log name or by event set.
          <programlisting>
   # <emphasis role="bold">fstrace clear</emphasis>  [<emphasis role="bold">-set</emphasis> &lt;<replaceable>set_name</replaceable>&gt;+]  [<emphasis
                role="bold">-log</emphasis> &lt;<replaceable>log_name</replaceable>&gt;+]
</programlisting></para>
        </listitem>
      </orderedlist>

      <para>The following example clears the <emphasis role="bold">cmfx</emphasis> log used by the <emphasis
      role="bold">cm</emphasis> event set on the local machine.</para>

      <programlisting>
   # <emphasis role="bold">fstrace clear cm</emphasis>
</programlisting>

      <para>The following example also clears the <emphasis role="bold">cmfx</emphasis> log on the local machine.</para>

      <programlisting>
   # <emphasis role="bold">fstrace clear cmfx</emphasis>
</programlisting>

      <indexterm>
        <primary>fstrace commands</primary>

        <secondary>example of use</secondary>
      </indexterm>
    </sect2>

    <sect2 id="HDRWQ348">
      <title>Examples of fstrace Commands</title>

      <para>This section contains an extensive example of the use of the <emphasis role="bold">fstrace</emphasis> command suite,
      which is useful for gathering a detailed trace of Cache Manager activity when you are working with AFS Product Support to
      diagnose a problem. The Product Support representative can guide you in choosing appropriate parameter settings for the
      trace.</para>

      <para>Before starting the kernel trace log, try to isolate the Cache Manager on the AFS client machine that is experiencing
      the problem accessing the file. If necessary, instruct users to move to another machine so as to minimize the Cache Manager
      activity on this machine. To minimize the amount of unrelated AFS activity recorded in the trace log, place both the <emphasis
      role="bold">fstrace</emphasis> binary and the dump file must reside on the local disk, not in AFS. You must be logged in as
      the local superuser <emphasis role="bold">root</emphasis> to issue <emphasis role="bold">fstrace</emphasis> commands.</para>

      <para>Before starting a kernel trace, issue the <emphasis role="bold">fstrace lsset</emphasis> command to check the state of
      the <emphasis role="bold">cm</emphasis> event set.</para>

      <programlisting>
   # <emphasis role="bold">fstrace lsset cm</emphasis>
</programlisting>

      <para>If tracing has not been enabled previously or if tracing has been turned off on the client machine, the following output
      is displayed:</para>

      <programlisting>
   Available sets:
   cm inactive
</programlisting>

      <para>If tracing has been turned off and kernel memory is not allocated for the trace log on the client machine, the following
      output is displayed:</para>

      <programlisting>
   Available sets:
   cm inactive (dormant)
</programlisting>

      <para>If the current state of the <emphasis role="bold">cm</emphasis> event set is <computeroutput>inactive</computeroutput>
      or <computeroutput>inactive (dormant)</computeroutput>, turn on kernel tracing by issuing the <emphasis role="bold">fstrace
      setset</emphasis> command with the <emphasis role="bold">-active</emphasis> flag.</para>

      <programlisting>
   # <emphasis role="bold">fstrace setset cm -active</emphasis>
</programlisting>

      <para>If tracing is enabled currently on the client machine, the following output is displayed:</para>

      <programlisting>
   Available sets:
   cm active
</programlisting>

      <para>If tracing is enabled currently, you do not need to use the <emphasis role="bold">fstrace setset</emphasis> command. Do
      issue the <emphasis role="bold">fstrace clear</emphasis> command to clear the contents of any existing trace log, removing
      prior traces that are not related to the current problem.</para>

      <programlisting>
   # <emphasis role="bold">fstrace clear cm</emphasis>
</programlisting>

      <para>After checking on the state of the event set, issue the <emphasis role="bold">fstrace lslog</emphasis> command with the
      <emphasis role="bold">-long</emphasis> flag to check the current state and size of the kernel trace log .</para>

      <programlisting>
   # <emphasis role="bold">fstrace lslog cmfx -long</emphasis>
</programlisting>

      <para>If tracing has not been enabled previously or the <emphasis role="bold">cm</emphasis> event set was set to
      <computeroutput>active</computeroutput> or <computeroutput>inactive</computeroutput> previously, output similar to the
      following is displayed:</para>

      <programlisting>
   Available logs:
   cmfx : 60 kbytes (allocated)
</programlisting>

      <para>The <emphasis role="bold">fstrace</emphasis> tracing utility allocates 60 kilobytes of memory to the trace log by
      default. You can increase or decrease the amount of memory allocated to the kernel trace log by setting it with the <emphasis
      role="bold">fstrace setlog</emphasis> command. The number specified with the <emphasis role="bold">-buffersize</emphasis>
      argument represents the number of kilobytes allocated to the kernel trace log. If you increase the size of the kernel trace
      log to 100 kilobytes, issue the following command.</para>

      <programlisting>
   # <emphasis role="bold">fstrace setlog cmfx</emphasis> 100
</programlisting>

      <para>After ensuring that the kernel trace log is configured for your needs, you can set up a file into which you can dump the
      kernel trace log. For example, create a dump file with the name <emphasis role="bold">cmfx.dump.file.1</emphasis> using the
      following <emphasis role="bold">fstrace dump</emphasis> command. Issue the command as a continuous process by adding the
      <emphasis role="bold">-follow</emphasis> and <emphasis role="bold">-sleep</emphasis> arguments. Setting the <emphasis
      role="bold">-sleep</emphasis> argument to <emphasis>10</emphasis> dumps output from the kernel trace log to the file every 10
      seconds.</para>

      <programlisting>
   # <emphasis role="bold">fstrace dump -follow</emphasis> cmfx <emphasis role="bold">-file</emphasis> cmfx.dump.file.1 <emphasis
          role="bold">-sleep</emphasis> 10
   AFS Trace Dump -
      Date: Fri Apr 16 10:54:57 1999
   Found 1 logs.
   time 32.965783, pid 0: Fri Apr 16 10:45:52 1999
   time 32.965783, pid 33657: Close 0x5c39ed8 flags 0x20 
   time 32.965897, pid 33657: Gn_close vp 0x5c39ed8 flags 0x20 (returns
   0x0) 
   time 35.159854, pid 10891: Breaking callback for 5bd95e4 states 1024
   (volume 0)
   time 35.407081, pid 10891: Breaking callback for 5c0fadc states 1024
   (volume 0)
       .                         .
       .                         .
       .                         .
   time 71.440456, pid 33658: Lookup adp 0x5bbdcf0 name g3oCKs fid (756
   4fb7e:588d240.2ff978a8.6) 
   time 71.440569, pid 33658: Returning code 2 from 19 
   time 71.440619, pid 33658: Gn_lookup vp 0x5bbdcf0 name g3oCKs (returns
   0x2) 
   time 71.464989, pid 38267: Gn_open vp 0x5bbd000 flags 0x0 (returns 0x
   0) 
   AFS Trace Dump - Completed
</programlisting>
    </sect2>
  </sect1>

  <sect1 id="HDRWQ349">
    <title>Using the afsmonitor Program</title>

    <indexterm>
      <primary>afsmonitor program</primary>

      <secondary>features summarized</secondary>
    </indexterm>

    <para>The <emphasis role="bold">afsmonitor</emphasis> program enables you to monitor the status and performance of specified
    File Server and Cache Manager processes by gathering statistical information. Among its other uses, the <emphasis
    role="bold">afsmonitor</emphasis> program can be used to fine-tune Cache Manager configuration and load balance File
    Servers.</para>

    <para>The <emphasis role="bold">afsmonitor</emphasis> program enables you to perform the following tasks. <itemizedlist>
        <listitem>
          <para>Monitor any number of File Server and Cache Manager processes on any number of machines (in both local and foreign
          cells) from a single location.</para>
        </listitem>

        <listitem>
          <para>Set threshold values for any monitored statistic. When the value of a statistic exceeds the threshold, the <emphasis
          role="bold">afsmonitor</emphasis> program highlights it to draw your attention. You can set threshold levels that apply to
          every machine or only some.</para>
        </listitem>

        <listitem>
          <para>Invoke programs or scripts automatically when a statistic exceeds its threshold.</para>
        </listitem>
      </itemizedlist></para>

    <sect2 id="HDRWQ350">
      <title>Requirements for running the afsmonitor program</title>

      <indexterm>
        <primary>afsmonitor program</primary>

        <secondary>requirements for running</secondary>
      </indexterm>

      <para>The following software must be accessible to a machine where the <emphasis role="bold">afsmonitor</emphasis> program is
      running: <itemizedlist>
          <listitem>
            <para>The AFS <emphasis role="bold">xstat</emphasis> libraries, which the <emphasis role="bold">afsmonitor</emphasis>
            program uses to gather data</para>
          </listitem>

          <listitem>
            <para>The <emphasis role="bold">curses</emphasis> graphics package, which most UNIX distributions provide as a standard
            utility</para>
          </listitem>
        </itemizedlist></para>

      <indexterm>
        <primary>curses graphics utility</primary>

        <secondary>afsmonitor program</secondary>
      </indexterm>

      <indexterm>
        <primary>xstat as requirement for running afsmonitor</primary>
      </indexterm>

      <para>The <emphasis role="bold">afsmonitor</emphasis> screens format successfully both on so-called dumb terminals and in
      windowing systems that emulate terminals. For the output to looks its best, the display environment needs to support reverse
      video and cursor addressing. Set the TERM environment variable to the correct terminal type, or to a value that has
      characteristics similar to the actual terminal type. The display window or terminal must be at least 80 columns wide and 12
      lines long.</para>

      <indexterm>
        <primary>afsmonitor program</primary>

        <secondary>setting terminal type</secondary>
      </indexterm>

      <indexterm>
        <primary>terminal type</primary>

        <secondary>setting for afsmonitor</secondary>
      </indexterm>

      <indexterm>
        <primary>dumb terminal</primary>

        <secondary>use with afsmonitor</secondary>
      </indexterm>

      <para>The <emphasis role="bold">afsmonitor</emphasis> program must run in the foreground, and in its own separate, dedicated
      window or terminal. The window or terminal is unavailable for any other activity as long as the <emphasis
      role="bold">afsmonitor</emphasis> program is running. Any number of instances of the <emphasis
      role="bold">afsmonitor</emphasis> program can run on a single machine, as long as each instance runs in its own dedicated
      window or terminal. Note that it can take up to three minutes to start an additional instance.</para>

      <indexterm>
        <primary>privilege</primary>

        <secondary>required for afsmonitor program</secondary>
      </indexterm>

      <para>No privilege is required to run the <emphasis role="bold">afsmonitor</emphasis> program. By convention, it is installed
      in the <emphasis role="bold">/usr/afsws/bin</emphasis> directory, and anyone who can access the directory can monitor File
      Servers and Cache Managers. The probes through which the <emphasis role="bold">afsmonitor</emphasis> program collects
      statistics do not constitute a significant burden on the File Server or Cache Manager unless hundreds of people are running
      the program. If you wish to restrict its use, place the binary file in a directory available only to authorized users.</para>
    </sect2>

    <sect2 id="Header_392">
      <title>The afsmonitor Output Screens</title>

      <indexterm>
        <primary>afsmonitor program</primary>

        <secondary>screen layout</secondary>
      </indexterm>

      <para>The <emphasis role="bold">afsmonitor</emphasis> program displays its data on three screens: <itemizedlist>
          <listitem>
            <para><computeroutput>System Overview</computeroutput>: This screen appears automatically when the <emphasis
            role="bold">afsmonitor</emphasis> program initializes. It summarizes separately for File Servers and Cache Managers the
            number of machines being monitored and how many of them have <emphasis>alerts</emphasis> (statistics that have exceeded
            their thresholds). It then lists the hostname and number of alerts for each machine being monitored, indicating if
            appropriate that a process failed to respond to the last probe.</para>
          </listitem>

          <listitem>
            <para><computeroutput>File Server</computeroutput>: This screen displays File Server statistics for each file server
            machine being monitored. It highlights statistics that have exceeded their thresholds, and identifies machines that
            failed to respond to the last probe.</para>
          </listitem>

          <listitem>
            <para><computeroutput>Cache Managers</computeroutput>: This screen displays Cache Manager statistics for each client
            machine being monitored. It highlights statistics that have exceeded their thresholds, and identifies machines that
            failed to respond to the last probe.</para>
          </listitem>
        </itemizedlist></para>

      <para>Fields at the corners of every screen display the following information: <itemizedlist>
          <listitem>
            <para>In the top left corner, the program name and version number.</para>
          </listitem>

          <listitem>
            <para>In the top right corner, the screen name, current and total page numbers, and current and total column numbers.
            The page number (for example, <computeroutput>p. 1 of 3</computeroutput>) indicates the index of the current page and
            the total number of (vertical) pages over which data is displayed. The column number (for example, <computeroutput>c. 1
            of 235</computeroutput>) indicates the index of the current leftmost column and the total number of columns in which
            data appears. (The symbol <computeroutput>&gt;&gt;&gt;</computeroutput> indicates that there is additional data to the
            right; the symbol <computeroutput>&lt;&lt;&lt;</computeroutput> indicates that there is additional data to the
            left.)</para>
          </listitem>

          <listitem>
            <para>In the bottom left corner, a list of the available commands. Enter the first letter in the command name to run
            that command. Only the currently possible options appear; for example, if there is only one page of data, the
            <computeroutput>next</computeroutput> and <computeroutput>prev</computeroutput> commands, which scroll the screen up and
            down respectively, do not appear. For descriptions of the commands, see the following section about navigating the
            display screens.</para>
          </listitem>

          <listitem>
            <para>In the bottom right corner, the <computeroutput>probes</computeroutput> field reports how many times the program
            has probed File Servers (<computeroutput>fs</computeroutput>), Cache Managers (<computeroutput>cm</computeroutput>), or
            both. The counts for File Servers and Cache Managers can differ. The <computeroutput>freq</computeroutput> field reports
            how often the program sends probes.</para>
          </listitem>
        </itemizedlist></para>

      <para><emphasis role="bold">Navigating the afsmonitor Display Screens</emphasis></para>

      <para>As noted, the lower left hand corner of every display screen displays the names of the commands currently available for
      moving to alternate screens, which can either be a different type or display more statistics or machines of the current type.
      To execute a command, press the lowercase version of the first letter in its name. Some commands also have an uppercase
      version that has a somewhat different effect, as indicated in the following list. <variablelist>
          <varlistentry>
            <term><computeroutput>cm</computeroutput></term>

            <listitem>
              <para>Switches to the <computeroutput>Cache Managers</computeroutput> screen. Available only on the
              <computeroutput>System Overview</computeroutput> and <computeroutput>File Servers</computeroutput> screens.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>fs</computeroutput></term>

            <listitem>
              <para>Switches to the <computeroutput>File Servers</computeroutput> screen. Available only on the
              <computeroutput>System Overview</computeroutput> and the <computeroutput>Cache Managers</computeroutput>
              screens.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>left</computeroutput></term>

            <listitem>
              <para>Scrolls horizontally to the left, to access the data columns situated to the left of the current set. Available
              when the <computeroutput>&lt;&lt;&lt;</computeroutput> symbol appears at the top left of the screen. Press uppercase
              <emphasis role="bold">L</emphasis> to scroll horizontally all the way to the left (to display the first set of data
              columns).</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>next</computeroutput></term>

            <listitem>
              <para>Scrolls down vertically to the next page of machine names. Available when there are two or more pages of
              machines and the final page is not currently displayed. Press uppercase <emphasis role="bold">N</emphasis> to scroll
              to the final page.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>oview</computeroutput></term>

            <listitem>
              <para>Switches to the <computeroutput>System Overview</computeroutput> screen. Available only on the
              <computeroutput>Cache Managers</computeroutput> and <computeroutput>File Servers</computeroutput> screens.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>prev</computeroutput></term>

            <listitem>
              <para>Scrolls up vertically to the previous page of machine names. Available when there are two or more pages of
              machines and the first page is not currently displayed. Press uppercase <emphasis role="bold">N</emphasis> to scroll
              to the first page.</para>
            </listitem>
          </varlistentry>

          <varlistentry>
            <term><computeroutput>right</computeroutput></term>

            <listitem>
              <para>Scrolls horizontally to the right, to access the data columns situated to the right of the current set. This
              command is available when the <computeroutput>&gt;&gt;&gt;</computeroutput> symbol appears at the upper right of the
              screen. Press uppercase <emphasis role="bold">R</emphasis> to scroll horizontally all the way to the right (to display
              the final set of data columns).</para>
            </listitem>
          </varlistentry>
        </variablelist></para>
    </sect2>

    <sect2 id="Header_393">
      <title>The System Overview Screen</title>

      <para>The <computeroutput>System Overview</computeroutput> screen appears automatically as the <emphasis
      role="bold">afsmonitor</emphasis> program initializes. This screen displays the status of as many File Server and Cache
      Manager processes as can fit in the current window; scroll down to access additional information.</para>

      <para>The information on this screen is split into File Server information on the left and Cache Manager information on the
      right. The header for each grouping reports two pieces of information: <itemizedlist>
          <listitem>
            <para>The number of machines on which the program is monitoring the indicated process</para>
          </listitem>

          <listitem>
            <para>The number of alerts and the number of machines affected by them (an <emphasis>alert</emphasis> means that a
            statistic has exceeded its threshold or a process failed to respond to the last probe)</para>
          </listitem>
        </itemizedlist></para>

      <para>A list of the machines being monitored follows. If there are any alerts on a machine, the number of them appears in
      square brackets to the left of the hostname. If a process failed to respond to the last probe, the letters
      <computeroutput>PF</computeroutput> (probe failure) appear in square brackets to the left of the hostname.</para>

      <para>The following graphic is an example <computeroutput>System Overview</computeroutput> screen. The <emphasis
      role="bold">afsmonitor</emphasis> program is monitoring six File Servers and seven Cache Managers. The File Server process on
      host <emphasis role="bold">fs1.example.com</emphasis> and the Cache Manager on host <emphasis role="bold">cli33.example.com</emphasis>
      are each marked <computeroutput>[ 1]</computeroutput> to indicate that one threshold value is exceeded. The
      <computeroutput>[PF]</computeroutput> marker on host <emphasis role="bold">fs6.example.com</emphasis> indicates that its File
      Server process did not respond to the last probe.</para>

      <figure id="Figure_6" label="6">
        <title>The afsmonitor System Overview Screen</title>

        <mediaobject>
          <imageobject>
            <imagedata fileref="overview.png" scale="50" />
          </imageobject>
        </mediaobject>
      </figure>

      <para><emphasis role="bold"> </emphasis></para>
    </sect2>

    <sect2 id="Header_394">
      <title>The File Servers Screen</title>

      <para>The <computeroutput>File Servers</computeroutput> screen displays the values collected at the most recent probe for File
      Server statistics.</para>

      <para>A summary line at the top of the screen (just below the standard program version and screen title blocks) specifies the
      number of monitored File Servers, the number of alerts, and the number of machines affected by the alerts.</para>

      <para>The first column always displays the hostnames of the machines running the monitored File Servers.</para>

      <para>To the right of the hostname column appear as many columns of statistics as can fit within the current width of the
      display screen or window; each column requires space for 10 characters. The name of the statistic appears at the top of each
      column. If the File Server on a machine did not respond to the most recent probe, a pair of dashes
      (<computeroutput>--</computeroutput>) appears in each column. If a value exceeds its configured threshold, it is highlighted
      in reverse video. If a value is too large to fit into the allotted column width, it overflows into the next row in the same
      column.</para>

      <para>For a list of the available File Server statistics, see <link linkend="HDRWQ617">Appendix C, The afsmonitor Program
      Statistics</link>.</para>

      <para>The following graphic depicts the <computeroutput>File Servers</computeroutput> screen that follows the System Overview
      Screen example previously discussed; however, one additional server probe has been completed. In this example, the File Server
      process on <emphasis role="bold">fs1</emphasis> has exceeded the configured threshold for the number of performance calls
      received (the <emphasis role="bold">numPerfCalls</emphasis> statistic), and that field appears in reverse video. Host
      <emphasis role="bold">fs6</emphasis> did not respond to Probe 10, so dashes appear in all fields.</para>

      <figure id="Figure_7" label="7">
        <title>The afsmonitor File Servers Screen</title>

        <mediaobject>
          <imageobject>
            <imagedata fileref="fserver1.png" scale="50" />
          </imageobject>
        </mediaobject>
      </figure>

      <para><emphasis role="bold"> </emphasis></para>

      <para>Both the File Servers and Cache Managers screen (discussed in the following section) can display hundreds of columns of
      data and are therefore designed to scroll left and right. In the preceding graphic, the screen displays the leftmost screen
      and the screen title block shows that column 1 of 235 is displayed. The appearance of the
      <computeroutput>&gt;&gt;&gt;</computeroutput> symbol in the upper right hand corner of the screen and the <emphasis
      role="bold">right</emphasis> command in the command block indicate that additional data is available by scrolling right. (For
      information on the available statistics, see <link linkend="HDRWQ617">Appendix C, The afsmonitor Program
      Statistics</link>.)</para>

      <para>If the <emphasis role="bold">right</emphasis> command is executed, the screen looks something like the following
      example. Note that the horizontal scroll symbols now point both to the left (<computeroutput>&lt;&lt;&lt;</computeroutput>)
      and to the right (<computeroutput>&gt;&gt;&gt;</computeroutput>) and both the <emphasis role="bold">left</emphasis> and
      <emphasis role="bold">right</emphasis> commands appear, indicating that additional data is available by scrolling both left
      and right.</para>

      <figure id="Figure_8" label="8">
        <title>The afsmonitor File Servers Screen Shifted One Page to the Right</title>

        <mediaobject>
          <imageobject>
            <imagedata fileref="fserver2.png" scale="50" />
          </imageobject>
        </mediaobject>
      </figure>

      <para><emphasis role="bold"> </emphasis></para>
    </sect2>

    <sect2 id="Header_395">
      <title>The Cache Managers Screen</title>

      <para>The <computeroutput>Cache Managers</computeroutput> screen displays the values collected at the most recent probe for
      Cache Manager statistics.</para>

      <para>A summary line at the top of the screen (just below the standard program version and screen title blocks) specifies the
      number of monitored Cache Managers, the number of alerts, and the number of machines affected by the alerts.</para>

      <para>The first column always displays the hostnames of the machines running the monitored Cache Managers.</para>

      <para>To the right of the hostname column appear as many columns of statistics as can fit within the current width of the
      display screen or window; each column requires space for 10 characters. The name of the statistic appears at the top of each
      column. If the Cache Manager on a machine did not respond to the most recent probe, a pair of dashes
      (<computeroutput>--</computeroutput>) appears in each column. If a value exceeds its configured threshold, it is highlighted
      in reverse video. If a value is too large to fit into the allotted column width, it overflows into the next row in the same
      column.</para>

      <para>For a list of the available Cache Manager statistics, see <link linkend="HDRWQ617">Appendix C, The afsmonitor Program
      Statistics</link>.</para>

      <para>The following graphic depicts a Cache Managers screen that follows the System Overview Screen previously discussed. In
      the example, the Cache Manager process on host <emphasis role="bold">cli33</emphasis> has exceeded the configured threshold
      for the number of cells it can contact (the <emphasis role="bold">numCellsContacted</emphasis> statistic), so that field
      appears in reverse video.</para>

      <figure id="Figure_9" label="9">
        <title>The afsmonitor Cache Managers Screen</title>

        <mediaobject>
          <imageobject>
            <imagedata fileref="cachmgr.png" scale="50" />
          </imageobject>
        </mediaobject>
      </figure>

      <para><emphasis role="bold"> </emphasis></para>
    </sect2>
  </sect1>

  <sect1 id="HDRWQ351">
    <title>Configuring the afsmonitor Program</title>

    <indexterm>
      <primary>afsmonitor program</primary>

      <secondary>creating configuration files for</secondary>
    </indexterm>

    <indexterm>
      <primary>configuring</primary>

      <secondary>afsmonitor program</secondary>
    </indexterm>

    <para>To customize the <emphasis role="bold">afsmonitor</emphasis> program, create an ASCII-format configuration file and use
    the <emphasis role="bold">-config</emphasis> argument to name it. You can specify the following in the configuration file:
    <itemizedlist>
        <listitem>
          <para>The File Servers, Cache Managers, or both to monitor.</para>
        </listitem>

        <listitem>
          <para>The statistics to display. By default, the display includes 271 statistics for File Servers and 570 statistics for
          Cache Managers. For information on the available statistics, see <link linkend="HDRWQ617">Appendix C, The afsmonitor
          Program Statistics</link>.</para>
        </listitem>

        <listitem>
          <para>The threshold values to set for statistics and a script or program to execute if a threshold is exceeded. By
          default, no threshold values are defined and no scripts or programs are executed.</para>
        </listitem>
      </itemizedlist></para>

    <para>The following list describes the instructions that can appear in the configuration file: <variablelist>
        <varlistentry>
          <term><computeroutput>cm</computeroutput> <replaceable>hostname</replaceable></term>

          <listitem>
            <para>Names a client machine for which to display Cache Manager statistics. The order of <emphasis
            role="bold">cm</emphasis> lines in the file determines the order in which client machines appear from top to bottom on
            the <computeroutput>System Overview</computeroutput> and <computeroutput>Cache Managers</computeroutput> output
            screens.</para>
          </listitem>
        </varlistentry>

        <varlistentry>
          <term><computeroutput>fs</computeroutput> <replaceable>hostname</replaceable></term>

          <listitem>
            <para>Names a file server machine for which to display File Server statistics. The order of <emphasis
            role="bold">fs</emphasis> lines in the file determines the order in which file server machines appear from top to bottom
            on the <computeroutput>System Overview</computeroutput> and <computeroutput>File Servers</computeroutput> output
            screens.</para>
          </listitem>
        </varlistentry>

        <varlistentry>
          <term><computeroutput>thresh fs | cm <replaceable>field_name</replaceable> <replaceable>thresh_val</replaceable>
          [<replaceable>cmd_to_run</replaceable>] [<replaceable>arg1</replaceable>] . . .
          [<replaceable>argn</replaceable>]</computeroutput></term>

          <listitem>
            <para>Assigns the threshold value thresh_val to the statistic field_name, for either a File Server statistic (<emphasis
            role="bold">fs</emphasis>) or a Cache Manager statistic (<emphasis role="bold">cm</emphasis>). The optional
            cmd_to_execute field names a binary or script to execute each time the value of the statistic changes from being below
            thresh_val to being at or above thresh_val. A change between two values that both exceed thresh_val does not retrigger
            the binary or script. The optional arg1 through argn fields are additional values that the <emphasis
            role="bold">afsmonitor</emphasis> program passes as arguments to the cmd_to_execute command. If any of them include one
            or more spaces, enclose the entire field in double quotes.</para>

            <para>The parameters <emphasis role="bold">fs</emphasis>, <emphasis role="bold">cm</emphasis>, field_name,
            threshold_val, and arg1 through argn correspond to the values with the same name on the <emphasis
            role="bold">thresh</emphasis> line. The host_name parameter identifies the file server or client machine where the
            statistic has crossed the threshold, and the actual_val parameter is the actual value of field_name that equals or
            exceeds the threshold value.</para>

            <para>Use the <emphasis role="bold">thresh</emphasis> line to set either a global threshold, which applies to all file
            server machines listed on <emphasis role="bold">fs</emphasis> lines or client machines listed on <emphasis
            role="bold">cm</emphasis> lines in the configuration file, or a machine-specific threshold, which applies to only one
            file server or client machine. <itemizedlist>
                <listitem>
                  <para>To set a global threshold, place the <emphasis role="bold">thresh</emphasis> line before any of the
                  <emphasis role="bold">fs</emphasis> or <emphasis role="bold">cm</emphasis> lines in the file.</para>
                </listitem>

                <listitem>
                  <para>To set a machine-specific threshold, place the <emphasis role="bold">thresh</emphasis> line below the
                  corresponding <emphasis role="bold">fs</emphasis> or <emphasis role="bold">cm</emphasis> line, and above any other
                  <emphasis role="bold">fs</emphasis> or <emphasis role="bold">cm</emphasis> lines. A machine-specific threshold
                  value always overrides the corresponding global threshold, if set. Do not place a <emphasis role="bold">thresh
                  fs</emphasis> line directly after a <emphasis role="bold">cm</emphasis> line or a <emphasis role="bold">thresh
                  cm</emphasis> line directly after a <emphasis role="bold">fs</emphasis> line.</para>
                </listitem>
              </itemizedlist></para>
          </listitem>
        </varlistentry>

        <varlistentry>
          <term><computeroutput>show fs | cm <replaceable>field/group/section</replaceable></computeroutput></term>

          <listitem>
            <para>Specifies which individual statistic, group of statistics, or section of statistics to display on the
            <computeroutput>File Servers</computeroutput> screen (<emphasis role="bold">fs</emphasis>) or <computeroutput>Cache
            Managers</computeroutput> screen (<emphasis role="bold">cm</emphasis>) and the order in which to display them. The
            appendix of <emphasis role="bold">afsmonitor</emphasis> statistics in the <emphasis>OpenAFS Administration
            Guide</emphasis> specifies the group and section to which each statistic belongs. Include as many <emphasis
            role="bold">show</emphasis> lines as necessary to customize the screen display as desired, and place them anywhere in
            the file. The top-to-bottom order of the <emphasis role="bold">show</emphasis> lines in the configuration file
            determines the left-to-right order in which the statistics appear on the corresponding screen.</para>

            <para>If there are no <emphasis role="bold">show</emphasis> lines in the configuration file, then the screens display
            all statistics for both Cache Managers and File Servers. Similarly, if there are no <emphasis role="bold">show
            fs</emphasis> lines, the <computeroutput>File Servers</computeroutput> screen displays all file server statistics, and
            if there are no <emphasis role="bold">show cm</emphasis> lines, the <computeroutput>Cache Managers</computeroutput>
            screen displays all client statistics.</para>
          </listitem>
        </varlistentry>

        <varlistentry>
          <term><emphasis role="bold"># comments</emphasis></term>

          <listitem>
            <para>Precedes a line of text that the <emphasis role="bold">afsmonitor</emphasis> program ignores because of the
            initial number (<emphasis role="bold">#</emphasis>) sign, which must appear in the very first column of the line.</para>
          </listitem>
        </varlistentry>
      </variablelist></para>

    <para>For a list of the values that can appear in the field/group/section field of a <emphasis role="bold">show</emphasis>
    instruction, see <link linkend="HDRWQ617">Appendix C, The afsmonitor Program Statistics</link>.)</para>

    <para>The following example illustrates a possible configuration file:</para>

    <programlisting>
   thresh cm dlocalAccesses  1000000
   thresh cm dremoteAccesses  500000 handleDRemote
   thresh fs rx_maxRtt_Usec     1000
   cm client5
   cm client33
   cm client14
   thresh cm dlocalAccesses  2000000
   thresh cm vcacheMisses      10000
   cm client2
   fs fs3
   fs fs9
   fs fs5
   fs fs10
   show cm numCellsContacted
   show cm dlocalAccesses
   show cm dremoteAccesses
   show cm vcacheMisses
   show cm Auth_Stats_group
</programlisting>

    <para>Since the first three <emphasis role="bold">thresh</emphasis> instructions appear before any <emphasis
    role="bold">fs</emphasis> or <emphasis role="bold">cm</emphasis> instructions, they set global threshold values: <itemizedlist>
        <listitem>
          <para>All Cache Manager process in this file use <emphasis role="bold">1000000</emphasis> as the threshold for the
          <emphasis role="bold">dlocalAccesses</emphasis> statistic (except for the machine <emphasis role="bold">client2</emphasis>
          which uses an overriding value of <emphasis role="bold">2000000</emphasis>.)</para>
        </listitem>

        <listitem>
          <para>All Cache Manager processes in this file use <emphasis role="bold">500000</emphasis> as the threshold value for the
          <emphasis role="bold">dremoteAccesses</emphasis> statistic; if that value is exceeded, the script <emphasis
          role="bold">handleDRemote</emphasis> is invoked.</para>
        </listitem>

        <listitem>
          <para>All File Server processes in this file use <emphasis role="bold">1000</emphasis> as the threshold value for the
          <emphasis role="bold">rx_maxRtt_Usec</emphasis> statistic.</para>
        </listitem>
      </itemizedlist></para>

    <para>The four <emphasis role="bold">cm</emphasis> instructions monitor the Cache Manager on the machines <emphasis
    role="bold">client5</emphasis>, <emphasis role="bold">client33</emphasis>, <emphasis role="bold">client14</emphasis>, and
    <emphasis role="bold">client2</emphasis>. The first three use all of the global threshold values.</para>

    <para>The Cache Manager on <emphasis role="bold">client2</emphasis> uses the global threshold value for the <emphasis
    role="bold">dremoteAccesses</emphasis> statistic, but a different one for the <emphasis role="bold">dlocalAccesses</emphasis>
    statistic. Furthermore, <emphasis role="bold">client22</emphasis> is the only Cache Manager that uses the threshold set for the
    <emphasis role="bold">vcacheMisses</emphasis> statistic.</para>

    <para>The <emphasis role="bold">fs</emphasis> instructions monitor the File Server on the machines <emphasis
    role="bold">fs3</emphasis>, <emphasis role="bold">fs9</emphasis>, <emphasis role="bold">fs5</emphasis>, and <emphasis
    role="bold">fs10</emphasis>. They all use the global threshold for the<emphasis role="bold">rx_maxRtt_Usec</emphasis>
    statistic.</para>

    <para>Because there are no <emphasis role="bold">show fs</emphasis> instructions, the File Servers screen displays all File
    Server statistics. The Cache Managers screen displays only the statistics named in <emphasis role="bold">show cm</emphasis>
    instructions, ordering them from left to right. The <emphasis role="bold">Auth_Stats_group</emphasis> includes several
    statistics, all of which are displayed (<emphasis role="bold">curr_PAGs</emphasis>, <emphasis
    role="bold">curr_Records</emphasis>, <emphasis role="bold">curr_AuthRecords</emphasis>, <emphasis
    role="bold">curr_UnauthRecords</emphasis>, <emphasis role="bold">curr_MaxRecordsInPAG</emphasis>, <emphasis
    role="bold">curr_LongestChain</emphasis>, <emphasis role="bold">PAGCreations</emphasis>, <emphasis
    role="bold">TicketUpdates</emphasis>, <emphasis role="bold">HWM_PAGS</emphasis>, <emphasis role="bold">HWM_Records</emphasis>,
    <emphasis role="bold">HWM_MaxRecordsInPAG</emphasis>, and <emphasis role="bold">HWM_LongestChain</emphasis>).</para>
  </sect1>

  <sect1 id="HDRWQ352">
    <title>Writing afsmonitor Statistics to a File</title>

    <indexterm>
      <primary>afsmonitor program</primary>

      <secondary>creating an output file</secondary>
    </indexterm>

    <para>All of the statistical information collected and displayed by the <emphasis role="bold">afsmonitor</emphasis> program can
    be preserved by writing it to an output file. You can create an output file by using the <emphasis
    role="bold">-output</emphasis> argument when you startup the <emphasis role="bold">afsmonitor</emphasis> process. You can use
    the output file to track process performance over long periods of time and to apply post-processing techniques to further
    analyze system trends.</para>

    <para>The <emphasis role="bold">afsmonitor</emphasis> program output file is a simple ASCII file that records the information
    reported by the File Server and Cache Manager screens. The output file has the following format:</para>

    <programlisting>
   time   host_name <emphasis role="bold">CM</emphasis>|<emphasis role="bold">FS</emphasis>   list_of_measured_values
</programlisting>

    <para>and specifies the <emphasis>time</emphasis> at which the <emphasis>list_of_measured_values</emphasis> were gathered from
    the Cache Manager (<emphasis role="bold">CM</emphasis>) or File Server (<emphasis role="bold">FS</emphasis>) process housed on
    host_name. On those occasion where probes fail, the value <computeroutput>-1</computeroutput> is reported instead of the
    <emphasis>list_of_measured_values</emphasis>.</para>

    <para>This file format provides several advantages: <itemizedlist>
        <listitem>
          <para>It can be viewed using a standard editor. If you intend to view this file frequently, use the <emphasis
          role="bold">-detailed</emphasis> flag with the <emphasis role="bold">-output</emphasis> argument. It formats the output
          file in a way that is easier to read.</para>
        </listitem>

        <listitem>
          <para>It can be passed through filters to extract desired information using the standard set of UNIX tools.</para>
        </listitem>

        <listitem>
          <para>It is suitable for long term storage of the <emphasis role="bold">afsmonitor</emphasis> program output.</para>
        </listitem>
      </itemizedlist></para>

    <indexterm>
      <primary>afsmonitor program</primary>

      <secondary>command syntax</secondary>
    </indexterm>

    <indexterm>
      <primary>commands</primary>

      <secondary>afsmonitor</secondary>
    </indexterm>
  </sect1>

  <sect1 id="Header_398">
    <title>To start the afsmonitor Program</title>

    <orderedlist>
      <listitem>
        <para>Open a separate command shell window or use a dedicated terminal for each instance of the <emphasis
        role="bold">afsmonitor</emphasis> program. This window or terminal must be devoted to the exclusive use of the <emphasis
        role="bold">afsmonitor</emphasis> process because the command cannot be run in the background.</para>
      </listitem>

      <listitem>
        <para>Initialize the <emphasis role="bold">afsmonitor</emphasis> program. The message <computeroutput>afsmonitor Collecting
        Statistics...</computeroutput>, followed by the appearance of the <computeroutput>System Overview</computeroutput> screen,
        confirms a successful start. <programlisting>
   % <emphasis role="bold">afsmonitor</emphasis> [<emphasis role="bold">initcmd</emphasis>]  [<emphasis role="bold">-config</emphasis> &lt;<replaceable>configuration file</replaceable>&gt;]  \
                [<emphasis role="bold">-frequency</emphasis> &lt;<replaceable>poll frequency, in seconds</replaceable>&gt;]  \
                [<emphasis role="bold">-output</emphasis> &lt;<replaceable>storage file name</replaceable>&gt;] [<emphasis
              role="bold">-detailed</emphasis>]  \
                [<emphasis role="bold">-debug</emphasis> &lt;<replaceable>turn debugging output on to the named file</replaceable>&gt;] \
                [<emphasis role="bold">-fshosts</emphasis> &lt;<replaceable>list of file servers to monitor</replaceable>&gt;+]  \
                [<emphasis role="bold">-cmhosts</emphasis> &lt;<replaceable>list of cache managers to monitor</replaceable>&gt;+]
   afsmonitor Collecting Statistics...
</programlisting></para>

        <para>where <variablelist>
            <varlistentry>
              <term><emphasis role="bold">initcmd</emphasis></term>

              <listitem>
                <para>Is an optional string that accommodates the command's use of the AFS command parser. It can be omitted and
                ignored.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><emphasis role="bold">-config</emphasis></term>

              <listitem>
                <para>Specifies the pathname of an <emphasis role="bold">afsmonitor</emphasis> configuration file, which lists the
                machines and statistics to monitor. Partial pathnames are interpreted relative to the current working directory.
                Provide either this argument or one or both of the <emphasis role="bold">-fshosts</emphasis> and <emphasis
                role="bold">-cmhosts</emphasis> arguments. You must use a configuration file to set thresholds or customize the
                screen display. For instructions on creating the configuration file, see <link linkend="HDRWQ351">Configuring the
                afsmonitor Program</link>.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><emphasis role="bold">-frequency</emphasis></term>

              <listitem>
                <para>Specifies how often to probe the File Server and Cache Manager processes, as a number of seconds. Acceptable
                values range from <emphasis role="bold">1</emphasis> and <emphasis role="bold">86400</emphasis>; the default value
                is <emphasis role="bold">60</emphasis>. This frequency applies to both File Server and Cache Manager probes;
                however, File Server and Cache Manager probes are initiated and processed independent of each other. The actual
                interval between probes to a host is the probe frequency plus the time needed by all hosts to respond to the
                probe.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><emphasis role="bold">-output</emphasis></term>

              <listitem>
                <para>Specifies the name of an output file to which to write all of the statistical data. By default, no output file
                is created. For information on this file, see <link linkend="HDRWQ352">Writing afsmonitor Statistics to a
                File</link>.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><emphasis role="bold">-detailed</emphasis></term>

              <listitem>
                <para>Formats the output file named by the <emphasis role="bold">-output</emphasis> argument to be more easily
                readable. The <emphasis role="bold">-output</emphasis> argument must be provided along with this flag.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><emphasis role="bold">-fshosts</emphasis></term>

              <listitem>
                <para>Identifies each File Server process to monitor by specifying the host it is running on. You can identify a
                host using either its complete Internet-style host name or an abbreviation acceptable to the cell's naming service.
                Combine this argument with the <emphasis role="bold">-cmhosts</emphasis> if you wish, but not the <emphasis
                role="bold">-config</emphasis> argument.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><emphasis role="bold">-cmhosts</emphasis></term>

              <listitem>
                <para>Identifies each Cache Manager process to monitor by specifying the host it is running on. You can identify a
                host using either its complete Internet-style host name or an abbreviation acceptable to the cell's naming service.
                Combine this argument with the <emphasis role="bold">-fshosts</emphasis> if you wish, but not the <emphasis
                role="bold">-config</emphasis> argument.</para>
              </listitem>
            </varlistentry>
          </variablelist></para>
      </listitem>
    </orderedlist>
  </sect1>

  <sect1 id="Header_399">
    <title>To stop the afsmonitor program</title>

    <indexterm>
      <primary>afsmonitor program</primary>

      <secondary>stopping</secondary>
    </indexterm>

    <para>To exit an <emphasis role="bold">afsmonitor</emphasis> program session, Enter the &lt;<emphasis
    role="bold">Ctrl-c</emphasis>&gt; interrupt signal or an uppercase <emphasis role="bold">Q</emphasis>.</para>
  </sect1>

  <sect1 id="HDRWQ353">
    <title>The xstat Data Collection Facility</title>

    <indexterm>
      <primary>xstat data collection facility</primary>
    </indexterm>

    <indexterm>
      <primary>xstat data collection facility</primary>

      <secondary>libxstat_fs.a library</secondary>
    </indexterm>

    <indexterm>
      <primary>xstat data collection facility</primary>

      <secondary>libxstat_cm.a library</secondary>
    </indexterm>

    <indexterm>
      <primary>data collection</primary>

      <secondary>with xstat data collection facility</secondary>
    </indexterm>

    <indexterm>
      <primary>collecting</primary>

      <secondary>data with xstat data collection facility</secondary>
    </indexterm>

    <indexterm>
      <primary>File Server</primary>

      <secondary>collecting data with xstat data collection facility</secondary>
    </indexterm>

    <indexterm>
      <primary>Cache Manager</primary>

      <secondary>collecting data with xstat data collection facility</secondary>
    </indexterm>

    <indexterm>
      <primary>File Server</primary>

      <secondary>xstat data collection facility libraries</secondary>
    </indexterm>

    <indexterm>
      <primary>Cache Manager</primary>

      <secondary>xstat data collection facility libraries</secondary>
    </indexterm>

    <indexterm>
      <primary>libxstat_fs.a library</primary>
    </indexterm>

    <indexterm>
      <primary>libxstat_cm.a library</primary>
    </indexterm>

    <para>The <emphasis role="bold">afsmonitor</emphasis> program uses the <emphasis role="bold">xstat</emphasis> data collection
    facility to gather and calculate the data that it (the <emphasis role="bold">afsmonitor</emphasis> program) then uses to perform
    its function. You can also use the <emphasis role="bold">xstat</emphasis> facility to create your own data display programs. If
    you do, keep the following in mind. The File Server considers any program calling its RPC routines to be a Cache Manager;
    therefore, any program calling the File Server interface directly must export the Cache Manager's callback interface. The
    calling program must be capable of emulating the necessary callback state, and it must respond to periodic keep-alive messages
    from the File Server. In addition, a calling program must be able to gather the collected data.</para>

    <para>The <emphasis role="bold">xstat</emphasis> facility consists of two C language libraries available to user-level
    applications: <itemizedlist>
        <listitem>
          <para><emphasis role="bold">/usr/afsws/lib/afs/libxstat_fs.a</emphasis> exports calls that gather information from one or
          more running File Server processes.</para>
        </listitem>

        <listitem>
          <para><emphasis role="bold">/usr/afsws/lib/afs/libxstat_cm.a</emphasis> exports calls that collect information from one or
          more running Cache Managers.</para>
        </listitem>
      </itemizedlist></para>

    <para>The libraries allow the caller to register <itemizedlist>
        <listitem>
          <para>A set of File Servers or Cache Managers to be examined.</para>
        </listitem>

        <listitem>
          <para>The frequency with which the File Servers or Cache Managers are to be probed for data.</para>
        </listitem>

        <listitem>
          <para>A user-specified routine to be called each time data is collected.</para>
        </listitem>
      </itemizedlist></para>

    <para>The libraries handle all of the lightweight processes, callback interactions, and timing issues associated with the data
    collection. The user needs only to process the data as it arrives.</para>

    <sect2 id="Header_401">
      <title>The libxstat Libraries</title>

      <indexterm>
        <primary>libxstat_fs.a library</primary>

        <secondary>routines</secondary>
      </indexterm>

      <indexterm>
        <primary>libxstat_cm.a library</primary>

        <secondary>routines</secondary>
      </indexterm>

      <para>The <emphasis role="bold">libxstat_fs.a</emphasis> and <emphasis role="bold">libxstat_cm.a</emphasis> libraries handle
      the callback requirements and other complications associated with the collection of data from File Servers and Cache Managers.
      The user provides only the means of accumulating the desired data. Each <emphasis role="bold">xstat</emphasis> library
      implements three routines: <itemizedlist>
          <listitem>
            <para>Initialization (<emphasis role="bold">xstat_fs_Init</emphasis> and <emphasis role="bold">xstat_cm_Init</emphasis>)
            arranges the periodic collection and handling of data.</para>
          </listitem>

          <listitem>
            <para>Immediate probe (<emphasis role="bold">xstat_fs_ForceProbeNow</emphasis> and <emphasis
            role="bold">xstat_cm_ForceProbeNow</emphasis>) forces the immediate collection of data, after which collection returns
            to its normal probe schedule.</para>
          </listitem>

          <listitem>
            <para>Cleanup (<emphasis role="bold">xstat_fs_Cleanup</emphasis> and <emphasis role="bold">xstat_cm_Cleanup</emphasis>)
            terminates all connections and removes all traces of the data collection from memory.</para>
          </listitem>
        </itemizedlist></para>

      <indexterm>
        <primary>File Server</primary>

        <secondary>xstat data collections</secondary>
      </indexterm>

      <indexterm>
        <primary>Cache Manager</primary>

        <secondary>xstat data collections</secondary>
      </indexterm>

      <indexterm>
        <primary>xstat data collection facility</primary>

        <secondary>data collections</secondary>
      </indexterm>

      <indexterm>
        <primary>libxstat_fs.a library</primary>

        <secondary>data collections</secondary>
      </indexterm>

      <indexterm>
        <primary>libxstat_cm.a library</primary>

        <secondary>data collections</secondary>
      </indexterm>

      <para>The File Server and Cache Manager each define data collections that clients can fetch. A data collection is simply a
      related set of numbers that can be collected as a unit. For example, the File Server and Cache Manager each define profiling
      and performance data collections. The profiling collections maintain counts of the number of times internal functions are
      called within servers, allowing bottleneck analysis to be performed. The performance collections record, among other things,
      internal disk I/O statistics for a File Server and cache effectiveness figures for a Cache Manager, allowing for performance
      analysis.</para>

      <indexterm>
        <primary>xstat data collection facility</primary>

        <secondary>obtaining more information</secondary>
      </indexterm>

      <indexterm>
        <primary>libxstat_fs.a library</primary>

        <secondary>obtaining more information</secondary>
      </indexterm>

      <indexterm>
        <primary>libxstat_cm.a library</primary>

        <secondary>obtaining more information</secondary>
      </indexterm>

      <para>For a copy of the detailed specification which provides much additional usage information about the <emphasis
      role="bold">xstat</emphasis> facility, its libraries, and the routines in the libraries, contact AFS Product Support.</para>
    </sect2>

    <sect2 id="Header_402">
      <title>Example xstat Commands</title>

      <indexterm>
        <primary>xstat data collection facility</primary>

        <secondary>example commands</secondary>
      </indexterm>

      <indexterm>
        <primary>libxstat_fs.a library</primary>

        <secondary>example command using</secondary>
      </indexterm>

      <indexterm>
        <primary>libxstat_cm.a library</primary>

        <secondary>example command using</secondary>
      </indexterm>

      <indexterm>
        <primary>File Server</primary>

        <secondary>xstat example commands</secondary>
      </indexterm>

      <indexterm>
        <primary>Cache Manager</primary>

        <secondary>xstat example commands</secondary>
      </indexterm>

      <para>AFS comes with two low-level, example commands: <emphasis role="bold">xstat_fs_test</emphasis> and <emphasis
      role="bold">xstat_cm_test</emphasis>. The commands allow you to experiment with the <emphasis role="bold">xstat</emphasis>
      facility. They gather information and display the available data collections for a File Server or Cache Manager. They are
      intended merely to provide examples of the types of data that can be collected via <emphasis role="bold">xstat</emphasis>;
      they are not intended for use in the actual collection of data.</para>

      <indexterm>
        <primary>commands</primary>

        <secondary>xstat_fs_test</secondary>
      </indexterm>

      <indexterm>
        <primary>libxstat_fs.a library</primary>

        <secondary>xstat_fs_test example command</secondary>
      </indexterm>

      <indexterm>
        <primary>File Server</primary>

        <secondary>xstat_fs_test example command</secondary>
      </indexterm>

      <indexterm>
        <primary>xstat data collection facility</primary>

        <secondary>xstat_fs_test example command</secondary>
      </indexterm>

      <sect3 id="Header_403">
        <title>To use the example xstat_fs_test command</title>

        <orderedlist>
          <listitem>
            <para>Issue the example <emphasis role="bold">xstat_fs_test</emphasis> command to test the routines in the <emphasis
            role="bold">libxstat_fs.a</emphasis> library and display the data collections associated with the File Server process.
            The command executes in the foreground. <programlisting>
   % <emphasis role="bold">xstat_fs_test</emphasis> [<emphasis role="bold">initcmd</emphasis>]  \
                   <emphasis role="bold">-fsname</emphasis> &lt;<replaceable>File Server name(s) to monitor</replaceable>&gt;+  \
                   <emphasis role="bold">-collID</emphasis> &lt;<replaceable>Collection(s) to fetch</replaceable>&gt;+  [<emphasis
                  role="bold">-onceonly</emphasis>]  \
                   [<emphasis role="bold">-frequency</emphasis> &lt;<replaceable>poll frequency, in seconds</replaceable>&gt;]  \
                   [<emphasis role="bold">-period</emphasis> &lt;<replaceable>data collection time, in minutes</replaceable>&gt;] [<emphasis
                  role="bold">-debug</emphasis>] 
</programlisting></para>

            <para>where <variablelist>
                <varlistentry>
                  <term><emphasis role="bold">xstat_fs_test</emphasis></term>

                  <listitem>
                    <para>Must be typed in full.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">initcmd</emphasis></term>

                  <listitem>
                    <para>Is an optional string that accommodates the command's use of the AFS command parser. It can be omitted and
                    ignored.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-fsname</emphasis></term>

                  <listitem>
                    <para>Is the Internet host name of each file server machine on which to monitor the File Server process.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-collID</emphasis></term>

                  <listitem>
                    <para>Specifies each data collection to return. The indicated data collection defines the type and amount of
                    data the command is to gather about the File Server. Data is returned in the form of a predefined data structure
                    (refer to the specification documents referenced previously for more information about the data
                    structures).</para>

                    <para>There are two acceptable values: <itemizedlist>
                        <listitem>
                          <para><emphasis role="bold">1</emphasis> reports various internal performance statistics related to the
                          File Server (for example, vnode cache entries and <emphasis role="bold">Rx</emphasis> protocol
                          activity).</para>
                        </listitem>

                        <listitem>
                          <para><emphasis role="bold">2</emphasis> reports all of the internal performance statistics provided by
                          the <emphasis role="bold">1</emphasis> setting, plus some additional, detailed performance figures about
                          the File Server (for example, minimum, maximum, and cumulative statistics regarding File Server RPCs, how
                          long they take to complete, and how many succeed).</para>
                        </listitem>
                      </itemizedlist></para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-onceonly</emphasis></term>

                  <listitem>
                    <para>Directs the command to gather statistics just one time. Omit this option to have the command continue to
                    probe the File Server for statistics every 30 seconds. If you omit this option, you can use the &lt;<emphasis
                    role="bold">Ctrl-c</emphasis>&gt; interrupt signal to halt the command at any time.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-frequency</emphasis></term>

                  <listitem>
                    <para>Sets the frequency in seconds at which the program initiates probes to the File Server. If you omit this
                    argument, the default is 30 seconds.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-period</emphasis></term>

                  <listitem>
                    <para>Sets how long the utility runs before exiting, as a number of minutes. If you omit this argument, the
                    default is 10 minutes.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-debug</emphasis></term>

                  <listitem>
                    <para>Displays additional information as the command runs.</para>
                  </listitem>
                </varlistentry>
              </variablelist></para>
          </listitem>
        </orderedlist>

        <indexterm>
          <primary>commands</primary>

          <secondary>xstat_cm_test</secondary>
        </indexterm>

        <indexterm>
          <primary>libxstat_cm.a library</primary>

          <secondary>xstat_cm_test example command</secondary>
        </indexterm>

        <indexterm>
          <primary>Cache Manager</primary>

          <secondary>xstat_cm_test example command</secondary>
        </indexterm>

        <indexterm>
          <primary>xstat data collection facility</primary>

          <secondary>xstat_cm_test example command</secondary>
        </indexterm>
      </sect3>

      <sect3 id="Header_404">
        <title>To use the example xstat_cm_test command</title>

        <orderedlist>
          <listitem>
            <para>Issue the example <emphasis role="bold">xstat_cm_test</emphasis> command to test the routines in the <emphasis
            role="bold">libxstat_cm.a</emphasis> library and display the data collections associated with the Cache Manager. The
            command executes in the foreground. <programlisting>
   % <emphasis role="bold">xstat_cm_test</emphasis> [<emphasis role="bold">initcmd</emphasis>]  \
                   <emphasis role="bold">-cmname</emphasis> &lt;<replaceable>Cache Manager name(s) to monitor</replaceable>&gt;+  \
                   <emphasis role="bold">-collID</emphasis> &lt;<replaceable>Collection(s) to fetch</replaceable>&gt;+ \
                   [<emphasis role="bold">-onceonly</emphasis>] [<emphasis role="bold">-frequency</emphasis> &lt;<replaceable>poll frequency, in seconds</replaceable>&gt;]  \
                   [<emphasis role="bold">-period</emphasis> &lt;<replaceable>data collection time, in minutes</replaceable>&gt;] [<emphasis
                  role="bold">-debug</emphasis>] 
</programlisting></para>

            <para>where <variablelist>
                <varlistentry>
                  <term><emphasis role="bold">xstat_cm_test</emphasis></term>

                  <listitem>
                    <para>Must be typed in full.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">initcmd</emphasis></term>

                  <listitem>
                    <para>Is an optional string that accommodates the command's use of the AFS command parser. It can be omitted and
                    ignored.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-cmname</emphasis></term>

                  <listitem>
                    <para>Is the host name of each client machine on which to monitor the Cache Manager.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-collID</emphasis></term>

                  <listitem>
                    <para>Specifies each data collection to return. The indicated data collection defines the type and amount of
                    data the command is to gather about the Cache Manager. Data is returned in the form of a predefined data
                    structure (refer to the specification documents referenced previously for more information about the data
                    structures).</para>

                    <para>There are two acceptable values: <itemizedlist>
                        <listitem>
                          <para><emphasis role="bold">0</emphasis> provides profiling information about the numbers of times
                          different internal Cache Manager routines were called since the Cache manager was started.</para>
                        </listitem>

                        <listitem>
                          <para><emphasis role="bold">1</emphasis> reports various internal performance statistics related to the
                          Cache manager (for example, statistics about how effectively the cache is being used and the quantity of
                          intracell and intercell data access).</para>
                        </listitem>

                        <listitem>
                          <para><emphasis role="bold">2</emphasis> reports all of the internal performance statistics provided by
                          the <emphasis role="bold">1</emphasis> setting, plus some additional, detailed performance figures about
                          the Cache Manager (for example, statistics about the number of RPCs sent by the Cache Manager and how long
                          they take to complete; and statistics regarding things such as authentication, access, and PAG information
                          associated with data access).</para>
                        </listitem>
                      </itemizedlist></para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-onceonly</emphasis></term>

                  <listitem>
                    <para>Directs the command to gather statistics just one time. Omit this option to have the command continue to
                    probe the Cache Manager for statistics every 30 seconds. If you omit this option, you can use the &lt;<emphasis
                    role="bold">Ctrl-c</emphasis>&gt; interrupt signal to halt the command at any time.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-frequency</emphasis></term>

                  <listitem>
                    <para>Sets the frequency in seconds at which the program initiates probes to the Cache Manager. If you omit this
                    argument, the default is 30 seconds.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-period</emphasis></term>

                  <listitem>
                    <para>Sets how long the utility runs before exiting, as a number of minutes. If you omit this argument, the
                    default is 10 minutes.</para>
                  </listitem>
                </varlistentry>

                <varlistentry>
                  <term><emphasis role="bold">-debug</emphasis></term>

                  <listitem>
                    <para>Displays additional information as the command runs.</para>
                  </listitem>
                </varlistentry>
              </variablelist></para>
          </listitem>
        </orderedlist>
      </sect3>
    </sect2>
  </sect1>

  <sect1 id="HDRWQ354">
    <title>Auditing AFS Events on AIX File Servers</title>

    <indexterm>
      <primary>AFS</primary>

      <secondary>auditing events on AIX server machines</secondary>
    </indexterm>

    <indexterm>
      <primary>AIX</primary>

      <secondary>auditing AFS events</secondary>

      <tertiary>about</tertiary>
    </indexterm>

    <indexterm>
      <primary>auditing AFS events on AIX server machines</primary>
    </indexterm>

    <indexterm>
      <primary>events</primary>

      <secondary>auditing AFS on AIX server machines</secondary>
    </indexterm>

    <para>You can audit AFS events on AIX File Servers using an AFS mechanism that transfers audit information from AFS to the AIX
    auditing system. The following general classes of AFS events can be audited. For a complete list of specific AFS audit events,
    see <link linkend="HDRWQ620">Appendix D, AIX Audit Events</link>. <itemizedlist>
        <listitem>
          <para>Authentication and Identification Events</para>
        </listitem>

        <listitem>
          <para>Security Events</para>
        </listitem>

        <listitem>
          <para>Privilege Required Events</para>
        </listitem>

        <listitem>
          <para>Object Creation and Deletion Events</para>
        </listitem>

        <listitem>
          <para>Attribute Modification Events</para>
        </listitem>

        <listitem>
          <para>Process Control Events</para>
        </listitem>
      </itemizedlist></para>

    <note>
      <para>This section assumes familiarity with the AIX auditing system. For more information, see the <emphasis>AIX System
      Management Guide</emphasis> for the version of AIX you are using.</para>
    </note>

    <sect2 id="Header_406">
      <title>Configuring AFS Auditing on AIX File Servers</title>

      <para>The directory <emphasis role="bold">/usr/afs/local/audit</emphasis> contains three files that contain the information
      needed to configure AIX File Servers to audit AFS events: <itemizedlist>
          <listitem>
            <para>The <emphasis role="bold">events.sample</emphasis> file contains information on auditable AFS events. The contents
            of this file are integrated into the corresponding AIX events file (<emphasis
            role="bold">/etc/security/audit/events</emphasis>).</para>
          </listitem>

          <listitem>
            <para>The <emphasis role="bold">config.sample</emphasis> file defines the six classes of AFS audit events and the events
            that make up each class. It also defines the classes of AFS audit events to audit for the File Server, which runs as the
            local superuser <emphasis role="bold">root</emphasis>. The contents of this file must be integrated into the
            corresponding AIX config file (<emphasis role="bold">/etc/security/audit/config</emphasis>).</para>
          </listitem>

          <listitem>
            <para>The <emphasis role="bold">objects.sample</emphasis> file contains a list of information about audited files. You
            must only audit files in the local file space. The contents of this file must be integrated into the corresponding AIX
            objects file (<emphasis role="bold">/etc/security/audit/objects</emphasis>).</para>
          </listitem>
        </itemizedlist></para>

      <para>Once you have properly configured these files to include the AFS-relevant information, use the AIX auditing system to
      start up and shut down the auditing.</para>
    </sect2>

    <sect2 id="Header_407">
      <title>To enable AFS auditing</title>

      <orderedlist>
        <listitem>
          <para>Create the following string in the file <emphasis role="bold">/usr/afs/local/Audit</emphasis> on each File Server on
          which you plan to audit AFS events: <programlisting><emphasis role="bold">AFS_AUDIT_AllEvents</emphasis></programlisting></para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">bos restart</emphasis> command (with the <emphasis role="bold">-all</emphasis> flag)
          to stop and restart all server processes on each File Server. For instructions on using this command, see <link
          linkend="HDRWQ170">Stopping and Immediately Restarting Processes</link>.</para>
        </listitem>
      </orderedlist>
    </sect2>

    <sect2 id="Header_408">
      <title>To disable AFS auditing</title>

      <orderedlist>
        <listitem>
          <para>Remove the contents of the file <emphasis role="bold">/usr/afs/local/Audit</emphasis> on each File Server for which
          you are no longer interested in auditing AFS events.</para>
        </listitem>

        <listitem>
          <para>Issue the <emphasis role="bold">bos restart</emphasis> command (with the <emphasis role="bold">-all</emphasis> flag)
          to stop and restart all server processes on each File Server. For instructions on using this command, see <link
          linkend="HDRWQ170">Stopping and Immediately Restarting Processes</link>.</para>
        </listitem>
      </orderedlist>
    </sect2>
  </sect1>
</chapter>