]> granicus.if.org Git - sysstat/blob - man/sar.in
sar/sadf: Update manual pages
[sysstat] / man / sar.in
1 .TH SAR 1 "MAY 2018" Linux "Linux User's Manual" -*- nroff -*-
2 .SH NAME
3 sar \- Collect, report, or save system activity information.
4 .SH SYNOPSIS
5 .B sar [ -A ] [ -B ] [ -b ] [ -C ] [ -D ] [ -d ] [ -F [ MOUNT ] ] [ -H ] [ -h ] [ -p ] [ -q ]
6 .B [ -r [ ALL ] ] [ -S ] [ -t ] [ -u [ ALL ] ] [ -V ] [ -v ] [ -W ] [ -w ] [ -y ] [ -z ]
7 .B [ --dec={ 0 | 1 | 2 } ] [ --dev=
8 .I dev_list
9 .B ] [ --fs=
10 .I fs_list
11 .B ] [ --help ] [ --human ] [ --iface=
12 .I iface_list
13 .B ] [ --sadc ]
14 .B [ -I {
15 .I int_list
16 .B | SUM | ALL } ] [ -P {
17 .I cpu_list
18 .B | ALL } ]
19 .B [ -m {
20 .I keyword
21 .B [,...] | ALL } ]
22 .B [ -n {
23 .I keyword
24 .B [,...] | ALL } ]
25 .B [ -j { ID | LABEL | PATH | UUID | ... } ]
26 .B [ -f [
27 .I filename
28 .B ] | -o [
29 .I filename
30 .B ] | -[0-9]+ ]
31 .B [ -i
32 .I interval
33 .B ] [ -s [
34 .I hh:mm[:ss]
35 .B ] ] [ -e [
36 .I hh:mm[:ss]
37 .B ] ] [
38 .I interval
39 .B [
40 .I count
41 .B ] ]
42 .SH DESCRIPTION
43 The
44 .B sar
45 command writes to standard output the contents of selected
46 cumulative activity counters in the operating system. The accounting
47 system, based on the values in the
48 .I count
49 and
50 .I interval
51 parameters, writes information the specified number of times spaced
52 at the specified intervals in seconds.
53 If the
54 .I interval
55 parameter is set to zero, the
56 .B sar
57 command displays the average statistics for the time
58 since the system was started. If the
59 .I interval
60 parameter is specified without the
61 .I count
62 parameter, then reports are generated continuously.
63 The collected data can also
64 be saved in the file specified by the -o
65 .I filename
66 flag, in addition to being displayed onto the screen. If
67 .I filename
68 is omitted,
69 .B sar
70 uses the standard system activity daily data file (see below).
71 By default all the data available from the kernel are saved in the
72 data file.
73
74 The
75 .B sar
76 command extracts and writes to standard output records previously
77 saved in a file. This file can be either the one specified by the
78 -f flag or, by default, the standard system activity daily data file.
79 It is also possible to enter -1, -2 etc. as an argument to
80 .B sar
81 to display data
82 of that days ago. For example, -1 will point at the standard system
83 activity file of yesterday.
84
85 Standard system activity daily data files are named
86 .I saDD
87 or
88 .IR saYYYYMMDD ,
89 where YYYY stands for the current year, MM for the current month and
90 DD for the current day. They are the default files used by
91 .B sar
92 only when no filename has been explicitly specified.
93 When used to write data to files (with its option -o),
94 .B sar
95 will use
96 .I saYYYYMMDD
97 if option -D has also been specified, else it will use
98 .IR saDD .
99 When used to display the records previously saved in a file,
100 .B sar
101 will look for the most recent of
102 .I saDD
103 and
104 .IR saYYYYMMDD ,
105 and use it.
106
107 Standard system activity daily data files are located in the
108 .I @SA_DIR@
109 directory by default. Yet it is possible to specify an alternate
110 location for them: If a directory (instead of a plain file) is used
111 with options -f or -o
112 then it will be considered as the directory containing the data files.
113
114 Without the -P flag, the
115 .B sar
116 command reports system-wide (global among all processors) statistics,
117 which are calculated as averages for values expressed as percentages,
118 and as sums otherwise. If the -P
119 flag is given, the
120 .B sar
121 command reports activity which relates to the specified processor or
122 processors. If -P ALL
123 is given, the
124 .B sar
125 command reports statistics for each individual processor and global
126 statistics among all processors. Offline processors are not displayed.
127
128 You can select information about specific system activities using
129 flags. Not specifying any flags selects only CPU activity.
130 Specifying the -A
131 flag selects all possible activities.
132
133 The default version of the
134 .B sar
135 command (CPU utilization report) might be one of the first facilities
136 the user runs to begin system activity investigation, because it
137 monitors major system resources. If CPU utilization is near 100 percent
138 (user + nice + system), the workload sampled is CPU-bound.
139
140 If multiple samples and multiple reports are desired, it is convenient
141 to specify an output file for the
142 .B sar
143 command. 
144 Run the
145 .B sar
146 command as a background process. The syntax for this is:
147
148 .B sar -o datafile interval count >/dev/null 2>&1 &
149
150 All data are captured in binary form and saved to a file (datafile).
151 The data can then be selectively displayed with the
152 .B sar
153 command using the -f
154 option. Set the
155 .I interval
156 and
157 .I count
158 parameters to select
159 .I count
160 records at
161 .I interval
162 second intervals. If the
163 .I count
164 parameter is not set, all the records saved in the
165 file will be selected.
166 Collection of data in this manner is useful to characterize
167 system usage over a period of time and determine peak usage hours.
168
169 Note:   The
170 .B sar
171 command only reports on local activities.
172
173 .SH OPTIONS
174 .IP -A
175 This is equivalent to specifying
176 .BR "-bBdFHqSuvwWy -I SUM -I ALL -m ALL -n ALL -r ALL -u ALL -P ALL".
177 .IP -B
178 Report paging statistics.
179 The following values are displayed:
180
181 .B pgpgin/s
182 .RS
183 .RS
184 Total number of kilobytes the system paged in from disk per second.
185 .RE
186
187 .B pgpgout/s
188 .RS
189 Total number of kilobytes the system paged out to disk per second.
190 .RE
191
192 .B fault/s
193 .RS
194 Number of page faults (major + minor) made by the system per second.
195 This is not a count of page faults that generate I/O, because some page
196 faults can be resolved without I/O.
197 .RE
198
199 .B majflt/s
200 .RS
201 Number of major faults the system has made per second, those which
202 have required loading a memory page from disk.
203 .RE
204
205 .B pgfree/s
206 .RS
207 Number of pages placed on the free list by the system per second.
208 .RE
209
210 .B pgscank/s
211 .RS
212 Number of pages scanned by the kswapd daemon per second.
213 .RE
214
215 .B pgscand/s
216 .RS
217 Number of pages scanned directly per second.
218 .RE
219
220 .B pgsteal/s
221 .RS
222 Number of pages the system has reclaimed from cache (pagecache and
223 swapcache) per second to satisfy its memory demands.
224 .RE
225
226 .B %vmeff
227 .RS
228 Calculated as pgsteal / pgscan, this is a metric of the efficiency of
229 page reclaim. If it is near 100% then almost every page coming off the
230 tail of the inactive list is being reaped. If it gets too low (e.g. less
231 than 30%) then the virtual memory is having some difficulty.
232 This field is displayed as zero if no pages have been scanned during the
233 interval of time.
234 .RE
235 .RE
236 .IP -b
237 Report I/O and transfer rate statistics.
238 The following values are displayed:
239
240 .B tps
241 .RS
242 .RS
243 Total number of transfers per second that were issued to physical devices.
244 A transfer is an I/O request to a physical device. Multiple logical
245 requests can be combined into a single I/O request to the device.
246 A transfer is of indeterminate size.
247 .RE
248
249 .B rtps
250 .RS
251 Total number of read requests per second issued to physical devices.
252 .RE
253
254 .B wtps
255 .RS
256 Total number of write requests per second issued to physical devices.
257 .RE
258
259 .B bread/s
260 .RS
261 Total amount of data read from the devices in blocks per second.
262 Blocks are equivalent to sectors
263 and therefore have a size of 512 bytes.
264 .RE
265
266 .B bwrtn/s
267 .RS
268 Total amount of data written to devices in blocks per second.
269 .RE
270 .RE
271 .IP -C
272 When reading data from a file, tell
273 .B sar
274 to display comments that have been inserted by
275 .BR sadc .
276 .IP -D
277 Use
278 .I saYYYYMMDD
279 instead of
280 .I saDD
281 as the standard system activity daily data file name. This option
282 works only when used in conjunction with option -o
283 to save data to file.
284 .IP -d
285 Report activity for each block device.
286 When data are displayed, the device specification
287 .I devM-n
288 is generally used (DEV column).
289 M is the major number of the device and n
290 its minor number.
291 Device names may also be pretty-printed if option -p
292 is used or persistent device names can be printed if option -j is used
293 (see below). Statistics for all devices are displayed unless
294 a restricted list is specified using option
295 .BR --dev=
296 (see corresponding option entry).
297 Note that disk activity depends on
298 .B sadc
299 options 
300 .B "-S DISK"
301 and
302 .B "-S XDISK"
303 to be collected. The following values are displayed:
304
305 .B tps
306 .RS
307 .RS
308 Total number of transfers per second that were issued to physical devices.
309 A transfer is an I/O request to a physical device. Multiple logical
310 requests can be combined into a single I/O request to the device.
311 A transfer is of indeterminate size.
312 .RE
313
314 .B rkB/s
315 .RS
316 Number of kilobytes read from the device per second.
317 .RE
318
319 .B wkB/s
320 .RS
321 Number of kilobytes written to the device per second.
322 .RE
323
324 .B areq-sz
325 .RS
326 The average size (in kilobytes) of the I/O requests that were issued to the device.
327 .br
328 Note: In previous versions, this field was known as avgrq-sz and was expressed in sectors.
329 .RE
330
331 .B aqu-sz
332 .RS
333 The average queue length of the requests that were issued to the device.
334 .br
335 Note: In previous versions, this field was known as avgqu-sz.
336 .RE
337
338 .B await
339 .RS
340 The average time (in milliseconds) for I/O requests issued to the device
341 to be served. This includes the time spent by the requests in queue and
342 the time spent servicing them.
343 .RE
344
345 .B svctm
346 .RS
347 The average service time (in milliseconds) for I/O requests that were issued
348 to the device. Warning! Do not trust this field any more. This field will be
349 removed in a future sysstat version.
350 .RE
351
352 .B %util
353 .RS
354 Percentage of elapsed time during which I/O requests were issued to the device
355 (bandwidth utilization for the device). Device saturation occurs when this
356 value is close to 100% for devices serving requests serially. But for
357 devices serving requests in parallel, such as RAID arrays and modern SSDs,
358 this number does not reflect their performance limits.
359 .RE
360 .RE
361 .IP "--dec={ 0 | 1 | 2 }"
362 Specify the number of decimal places to use (0 to 2, default value is 2).
363 .IP --dev=dev_list
364 Specify the block devices for which statistics are to be displayed by
365 .BR sar .
366 .IR dev_list
367 is a list of comma-separated device names.
368 .IP "-e [ hh:mm[:ss] ]"
369 Set the ending time of the report. The default ending time is
370 18:00:00. Hours must be given in 24-hour format.
371 This option can be used when data are read from
372 or written to a file (options -f or -o).
373 .IP "-F [ MOUNT ]"
374 Display statistics for currently mounted filesystems. Pseudo-filesystems are
375 ignored. At the end of the report,
376 .B sar
377 will display a summary of all those filesystems.
378 Use of the
379 .B MOUNT
380 parameter keyword indicates that mountpoint will be reported instead of
381 filesystem device. Statistics for all filesystems are displayed unless
382 a restricted list is specified using option
383 .BR --fs=
384 (see corresponding option entry).
385 Note that filesystems statistics depend on
386 .B sadc
387 option
388 .B "-S XDISK"
389 to be collected.
390
391 The following values are displayed:
392
393 .B MBfsfree
394 .RS
395 .RS
396 Total amount a free space in megabytes (including space available only to privileged user).
397 .RE
398
399 .B MBfsused
400 .RS
401 Total amount of space used in megabytes.
402 .RE
403
404 .B %fsused
405 .RS
406 Percentage of filesystem space used, as seen by a privileged user.
407 .RE
408
409 .B %ufsused
410 .RS
411 Percentage of filesystem space used, as seen by an unprivileged user.
412 .RE
413
414 .B Ifree
415 .RS
416 Total number of free file nodes in filesystem.
417 .RE
418
419 .B Iused
420 .RS
421 Total number of file nodes used in filesystem.
422 .RE
423
424 .B %Iused
425 .RS
426 Percentage of file nodes used in filesystem.
427 .RE
428 .RE
429 .IP "-f [ filename ]"
430 Extract records from
431 .I filename
432 (created by the -o
433 .I filename
434 flag). The default value of the
435 .I filename
436 parameter is the current standard system activity daily data file.
437 If
438 .I filename
439 is a directory instead of a plain file then it is considered as the
440 directory where the standard system activity daily data files are
441 located. The -f option is exclusive of the -o option.
442 .IP --fs=fs_list
443 Specify the filesystems for which statistics are to be displayed by
444 .BR sar .
445 .IR fs_list
446 is a list of comma-separated filesystem names or mountpoints.
447 .IP -H
448 Report hugepages utilization statistics.
449 The following values are displayed:
450
451 .B kbhugfree
452 .RS
453 .RS
454 Amount of hugepages memory in kilobytes that is not yet allocated.
455 .RE
456
457 .B kbhugused
458 .RS
459 Amount of hugepages memory in kilobytes that has been allocated.
460 .RE
461
462 .B %hugused
463 .RS
464 Percentage of total hugepages memory that has been allocated.
465 .RE
466 .RE
467 .IP -h
468 Make the output of sar easier to read by a human. Options
469 .B --human
470 and
471 .B -p
472 (pretty-print) are enabled implicitly with this option.
473 .IP --help
474 Display a short help message then exit.
475 .IP --human
476 Print sizes in human readable format (e.g. 1.0k, 1.2M, etc.)
477 The units displayed with this option supersede any other default units (e.g.
478 kilobytes, sectors...) associated with the metrics.
479 .IP "-I { int_list | SUM | ALL }"
480 Report statistics for interrupts.
481 .I int_list
482 is a list of comma-separated values or range of values (e.g.,
483 .BR 0-16,35,400- ).
484 The
485 .B SUM
486 keyword indicates that the total number of interrupts received per second
487 is to be displayed. The
488 .B ALL
489 keyword indicates that statistics from all interrupts, including potential
490 APIC interrupt sources, are to be reported.
491 Note that interrupt statistics depend on
492 .B sadc
493 option "-S INT"
494 to be collected.
495 .IP "-i interval"
496 Select data records at seconds as close as possible to the number specified
497 by the
498 .I interval
499 parameter.
500 .IP --iface=iface_list
501 Specify the network interfaces for which statistics are to be displayed by
502 .BR sar .
503 .IR iface_list
504 is a list of comma-separated interface names.
505 .IP "-j { ID | LABEL | PATH | UUID | ... }"
506 Display persistent device names. Use this option in conjunction with option -d.
507 Options
508 .BR ID ,
509 .BR LABEL ,
510 etc. specify the type of the persistent name. These options are not limited,
511 only prerequisite is that directory with required persistent names is present in
512 .IR /dev/disk .
513 If persistent name is not found for the device, the device name
514 is pretty-printed (see option -p below).
515 .IP "-m { keyword [,...] | ALL }"
516 Report power management statistics.
517 Note that these statistics depend on
518 .BR sadc 's
519 option "-S POWER" to be collected.
520
521 Possible keywords are
522 .BR CPU ,
523 .BR FAN ,
524 .BR FREQ ,
525 .BR IN ,
526 .BR TEMP
527 and
528 .BR USB .
529
530 With the
531 .B CPU
532 keyword, statistics about CPU are reported.
533 The following value is displayed:
534
535 .B MHz
536 .RS
537 .RS
538 Instantaneous CPU clock frequency in MHz.
539 .RE
540
541 With the
542 .B FAN
543 keyword, statistics about fans speed are reported.
544 The following values are displayed:
545
546 .B rpm
547 .RS
548 Fan speed expressed in revolutions per minute.
549 .RE
550
551 .B drpm
552 .RS
553 This field is calculated as the difference between current fan speed (rpm)
554 and its low limit (fan_min).
555 .RE
556
557 .B DEVICE
558 .RS
559 Sensor device name.
560 .RE
561
562 With the
563 .B FREQ
564 keyword, statistics about CPU clock frequency are reported.
565 The following value is displayed:
566
567 .B wghMHz
568 .RS
569 Weighted average CPU clock frequency in MHz.
570 Note that the cpufreq-stats driver must be compiled in the
571 kernel for this option to work.
572 .RE
573
574 With the
575 .B IN
576 keyword, statistics about voltage inputs are reported.
577 The following values are displayed:
578
579 .B inV
580 .RS
581 Voltage input expressed in Volts.
582 .RE
583
584 .B %in
585 .RS
586 Relative input value. A value of 100% means that
587 voltage input has reached its high limit (in_max) whereas
588 a value of 0% means that it has reached its low limit (in_min).
589 .RE
590
591 .B DEVICE
592 .RS
593 Sensor device name.
594 .RE
595
596 With the
597 .B TEMP
598 keyword, statistics about devices temperature are reported.
599 The following values are displayed:
600
601 .B degC
602 .RS
603 Device temperature expressed in degrees Celsius.
604 .RE
605
606 .B %temp
607 .RS
608 Relative device temperature. A value of 100% means that
609 temperature has reached its high limit (temp_max).
610 .RE
611
612 .B DEVICE
613 .RS
614 Sensor device name.
615 .RE
616
617 With the
618 .B USB
619 keyword, the
620 .B sar
621 command takes a snapshot of all the USB devices currently plugged into
622 the system. At the end of the report,
623 .B sar
624 will display a summary of all those USB devices.
625 The following values are displayed:
626
627 .B BUS
628 .RS
629 Root hub number of the USB device.
630 .RE
631
632 .B idvendor
633 .RS
634 Vendor ID number (assigned by USB organization).
635 .RE
636
637 .B idprod
638 .RS
639 Product ID number (assigned by Manufacturer).
640 .RE
641
642 .B maxpower
643 .RS
644 Maximum power consumption of the device (expressed in mA).
645 .RE
646
647 .B manufact
648 .RS
649 Manufacturer name.
650 .RE
651
652 .B product
653 .RS
654 Product name.
655 .RE
656
657 The
658 .B ALL
659 keyword is equivalent to specifying all the keywords above and therefore all the power
660 management statistics are reported.
661 .RE
662 .RE
663 .IP "-n { keyword [,...] | ALL }"
664 Report network statistics.
665
666 Possible keywords are
667 .BR DEV ,
668 .BR EDEV ,
669 .BR FC ,
670 .BR ICMP ,
671 .BR EICMP ,
672 .BR ICMP6 ,
673 .BR EICMP6 ,
674 .BR IP ,
675 .BR EIP ,
676 .BR IP6 ,
677 .BR EIP6 ,
678 .BR NFS ,
679 .BR NFSD ,
680 .BR SOCK ,
681 .BR SOCK6 ,
682 .BR SOFT ,
683 .BR TCP ,
684 .BR ETCP ,
685 .BR UDP
686 and
687 .BR UDP6 .
688
689 With the
690 .B DEV
691 keyword, statistics from the network devices are reported.
692 Statistics for all network interfaces are displayed unless
693 a restricted list is specified using option
694 .BR --iface=
695 (see corresponding option entry).
696 The following values are displayed:
697
698 .B IFACE
699 .RS
700 .RS
701 Name of the network interface for which statistics are reported.
702 .RE
703
704 .B rxpck/s
705 .RS
706 Total number of packets received per second.
707 .RE
708
709 .B txpck/s
710 .RS
711 Total number of packets transmitted per second.
712 .RE
713
714 .B rxkB/s
715 .RS
716 Total number of kilobytes received per second.
717 .RE
718
719 .B txkB/s
720 .RS
721 Total number of kilobytes transmitted per second.
722 .RE
723
724 .B rxcmp/s
725 .RS
726 Number of compressed packets received per second (for cslip etc.).
727 .RE
728
729 .B txcmp/s
730 .RS
731 Number of compressed packets transmitted per second.
732 .RE
733
734 .B rxmcst/s
735 .RS
736 Number of multicast packets received per second.
737 .RE
738
739 .B %ifutil
740 .RS
741 Utilization percentage of the network interface. For half-duplex interfaces,
742 utilization is calculated using the sum of rxkB/s and txkB/s as a percentage
743 of the interface speed. For full-duplex, this is the greater of rxkB/S or txkB/s.
744 .RE
745
746 With the
747 .B EDEV
748 keyword, statistics on failures (errors) from the network devices are reported.
749 Statistics for all network interfaces are displayed unless
750 a restricted list is specified using option
751 .BR --iface=
752 (see corresponding option entry).
753 The following values are displayed:
754
755 .B IFACE
756 .RS
757 Name of the network interface for which statistics are reported.
758 .RE
759
760 .B rxerr/s
761 .RS
762 Total number of bad packets received per second.
763 .RE
764
765 .B txerr/s
766 .RS
767 Total number of errors that happened per second while transmitting packets.
768 .RE
769
770 .B coll/s
771 .RS
772 Number of collisions that happened per second while transmitting packets.
773 .RE
774
775 .B rxdrop/s
776 .RS
777 Number of received packets dropped per second because of a lack of space in linux buffers.
778 .RE
779
780 .B txdrop/s
781 .RS
782 Number of transmitted packets dropped per second because of a lack of space in linux buffers.
783 .RE
784
785 .B txcarr/s
786 .RS
787 Number of carrier-errors that happened per second while transmitting packets.
788 .RE
789
790 .B rxfram/s
791 .RS
792 Number of frame alignment errors that happened per second on received packets.
793 .RE
794
795 .B rxfifo/s
796 .RS
797 Number of FIFO overrun errors that happened per second on received packets.
798 .RE
799
800 .B txfifo/s
801 .RS
802 Number of FIFO overrun errors that happened per second on transmitted packets.
803 .RE
804
805 With the
806 .B FC
807 keyword, statistics about fibre channel traffic are reported.
808 Note that fibre channel statistics depend on
809 .BR sadc 's
810 option "-S DISK" to be collected.
811 The following values are displayed:
812
813 .B FCHOST
814 .RS
815 Name of the fibre channel host bus adapter (HBA) interface for which statistics are reported.
816 .RE
817
818 .B fch_rxf/s
819 .RS
820 The total number of frames received per second.
821 .RE
822
823 .B fch_txf/s
824 .RS
825 The total number of frames transmitted per second.
826 .RE
827
828 .B fch_rxw/s
829 .RS
830 The total number of transmission words received per second.
831 .RE
832
833 .B fch_txw/s
834 .RS
835 The total number of transmission words transmitted per second.
836 .RE
837
838 With the
839 .B ICMP
840 keyword, statistics about ICMPv4 network traffic are reported.
841 Note that ICMPv4 statistics depend on
842 .BR sadc 's
843 option "-S SNMP"
844 to be collected.
845 The following values are displayed (formal SNMP names between
846 square brackets):
847
848 .B imsg/s
849 .RS
850 The total number of ICMP messages which the entity
851 received per second [icmpInMsgs].
852 Note that this counter includes all those counted by ierr/s.
853 .RE
854
855 .B omsg/s
856 .RS
857 The total number of ICMP messages which this entity
858 attempted to send per second [icmpOutMsgs].
859 Note that this counter includes all those counted by oerr/s.
860 .RE
861
862 .B iech/s
863 .RS
864 The number of ICMP Echo (request) messages received per second [icmpInEchos].
865 .RE
866
867 .B iechr/s
868 .RS
869 The number of ICMP Echo Reply messages received per second [icmpInEchoReps].
870 .RE
871
872 .B oech/s
873 .RS
874 The number of ICMP Echo (request) messages sent per second [icmpOutEchos].
875 .RE
876
877 .B oechr/s
878 .RS
879 The number of ICMP Echo Reply messages sent per second [icmpOutEchoReps].
880 .RE
881
882 .B itm/s
883 .RS
884 The number of ICMP Timestamp (request) messages received per second [icmpInTimestamps].
885 .RE
886
887 .B itmr/s
888 .RS
889 The number of ICMP Timestamp Reply messages received per second [icmpInTimestampReps].
890 .RE
891
892 .B otm/s
893 .RS
894 The number of ICMP Timestamp (request) messages sent per second [icmpOutTimestamps].
895 .RE
896
897 .B otmr/s
898 .RS
899 The number of ICMP Timestamp Reply messages sent per second [icmpOutTimestampReps].
900 .RE
901
902 .B iadrmk/s
903 .RS
904 The number of ICMP Address Mask Request messages received per second [icmpInAddrMasks].
905 .RE
906
907 .B iadrmkr/s
908 .RS
909 The number of ICMP Address Mask Reply messages received per second [icmpInAddrMaskReps].
910 .RE
911
912 .B oadrmk/s
913 .RS
914 The number of ICMP Address Mask Request messages sent per second [icmpOutAddrMasks].
915 .RE
916
917 .B oadrmkr/s
918 .RS
919 The number of ICMP Address Mask Reply messages sent per second [icmpOutAddrMaskReps].
920 .RE
921
922 With the
923 .B EICMP
924 keyword, statistics about ICMPv4 error messages are reported.
925 Note that ICMPv4 statistics depend on
926 .BR  sadc 's
927 option "-S SNMP" to be collected.
928 The following values are displayed (formal SNMP names between
929 square brackets):
930
931 .B ierr/s
932 .RS
933 The number of ICMP messages per second which the entity received but
934 determined as having ICMP-specific errors (bad ICMP
935 checksums, bad length, etc.) [icmpInErrors].
936 .RE
937
938 .B oerr/s
939 .RS
940 The number of ICMP messages per second which this entity did not send
941 due to problems discovered within ICMP such as a lack of buffers [icmpOutErrors].
942 .RE
943
944 .B idstunr/s
945 .RS
946 The number of ICMP Destination Unreachable messages
947 received per second [icmpInDestUnreachs].
948 .RE
949
950 .B odstunr/s
951 .RS
952 The number of ICMP Destination Unreachable messages sent per second [icmpOutDestUnreachs].
953 .RE
954
955 .B itmex/s
956 .RS
957 The number of ICMP Time Exceeded messages received per second [icmpInTimeExcds].
958 .RE
959
960 .B otmex/s
961 .RS
962 The number of ICMP Time Exceeded messages sent per second [icmpOutTimeExcds].
963 .RE
964
965 .B iparmpb/s
966 .RS
967 The number of ICMP Parameter Problem messages received per second [icmpInParmProbs].
968 .RE
969
970 .B oparmpb/s
971 .RS
972 The number of ICMP Parameter Problem messages sent per second [icmpOutParmProbs].
973 .RE
974
975 .B isrcq/s
976 .RS
977 The number of ICMP Source Quench messages received per second [icmpInSrcQuenchs].
978 .RE
979
980 .B osrcq/s
981 .RS
982 The number of ICMP Source Quench messages sent per second [icmpOutSrcQuenchs].
983 .RE
984
985 .B iredir/s
986 .RS
987 The number of ICMP Redirect messages received per second [icmpInRedirects].
988 .RE
989
990 .B oredir/s
991 .RS
992 The number of ICMP Redirect messages sent per second [icmpOutRedirects].
993 .RE
994
995 With the
996 .B ICMP6
997 keyword, statistics about ICMPv6 network traffic are reported.
998 Note that ICMPv6 statistics depend on
999 .BR sadc 's
1000 option "-S IPV6" to be collected.
1001 The following values are displayed (formal SNMP names between
1002 square brackets):
1003
1004 .B imsg6/s
1005 .RS
1006 The total number of ICMP messages received
1007 by the interface per second which includes all those
1008 counted by ierr6/s [ipv6IfIcmpInMsgs].
1009 .RE
1010
1011 .B omsg6/s
1012 .RS
1013 The total number of ICMP messages which this
1014 interface attempted to send per second [ipv6IfIcmpOutMsgs].
1015 .RE
1016
1017 .B iech6/s
1018 .RS
1019 The number of ICMP Echo (request) messages
1020 received by the interface per second [ipv6IfIcmpInEchos].
1021 .RE
1022
1023 .B iechr6/s
1024 .RS
1025 The number of ICMP Echo Reply messages received
1026 by the interface per second [ipv6IfIcmpInEchoReplies].
1027 .RE
1028
1029 .B oechr6/s
1030 .RS
1031 The number of ICMP Echo Reply messages sent
1032 by the interface per second [ipv6IfIcmpOutEchoReplies].
1033 .RE
1034
1035 .B igmbq6/s
1036 .RS
1037 The number of ICMPv6 Group Membership Query
1038 messages received by the interface per second
1039 [ipv6IfIcmpInGroupMembQueries].
1040 .RE
1041
1042 .B igmbr6/s
1043 .RS
1044 The number of ICMPv6 Group Membership Response messages
1045 received by the interface per second
1046 [ipv6IfIcmpInGroupMembResponses].
1047 .RE
1048
1049 .B ogmbr6/s
1050 .RS
1051 The number of ICMPv6 Group Membership Response
1052 messages sent per second
1053 [ipv6IfIcmpOutGroupMembResponses].
1054 .RE
1055
1056 .B igmbrd6/s
1057 .RS
1058 The number of ICMPv6 Group Membership Reduction messages
1059 received by the interface per second
1060 [ipv6IfIcmpInGroupMembReductions].
1061 .RE
1062
1063 .B ogmbrd6/s
1064 .RS
1065 The number of ICMPv6 Group Membership Reduction
1066 messages sent per second
1067 [ipv6IfIcmpOutGroupMembReductions].
1068 .RE
1069
1070 .B irtsol6/s
1071 .RS
1072 The number of ICMP Router Solicit messages
1073 received by the interface per second
1074 [ipv6IfIcmpInRouterSolicits].
1075 .RE
1076
1077 .B ortsol6/s
1078 .RS
1079 The number of ICMP Router Solicitation messages
1080 sent by the interface per second
1081 [ipv6IfIcmpOutRouterSolicits].
1082 .RE
1083
1084 .B irtad6/s
1085 .RS
1086 The number of ICMP Router Advertisement messages
1087 received by the interface per second
1088 [ipv6IfIcmpInRouterAdvertisements].
1089 .RE
1090
1091 .B inbsol6/s
1092 .RS
1093 The number of ICMP Neighbor Solicit messages
1094 received by the interface per second
1095 [ipv6IfIcmpInNeighborSolicits].
1096 .RE
1097
1098 .B onbsol6/s
1099 .RS
1100 The number of ICMP Neighbor Solicitation
1101 messages sent by the interface per second
1102 [ipv6IfIcmpOutNeighborSolicits].
1103 .RE
1104
1105 .B inbad6/s
1106 .RS
1107 The number of ICMP Neighbor Advertisement
1108 messages received by the interface per second
1109 [ipv6IfIcmpInNeighborAdvertisements].
1110 .RE
1111
1112 .B onbad6/s
1113 .RS
1114 The number of ICMP Neighbor Advertisement
1115 messages sent by the interface per second
1116 [ipv6IfIcmpOutNeighborAdvertisements].
1117 .RE
1118
1119 With the
1120 .B EICMP6
1121 keyword, statistics about ICMPv6 error messages are reported.
1122 Note that ICMPv6 statistics depend on
1123 .BR sadc 's
1124 option "-S IPV6" to be collected.
1125 The following values are displayed (formal SNMP names between
1126 square brackets):
1127
1128 .B ierr6/s
1129 .RS
1130 The number of ICMP messages per second which the interface
1131 received but determined as having ICMP-specific
1132 errors (bad ICMP checksums, bad length, etc.)
1133 [ipv6IfIcmpInErrors]
1134 .RE
1135
1136 .B idtunr6/s
1137 .RS
1138 The number of ICMP Destination Unreachable
1139 messages received by the interface per second
1140 [ipv6IfIcmpInDestUnreachs].
1141 .RE
1142
1143 .B odtunr6/s
1144 .RS
1145 The number of ICMP Destination Unreachable
1146 messages sent by the interface per second
1147 [ipv6IfIcmpOutDestUnreachs].
1148 .RE
1149
1150 .B itmex6/s
1151 .RS
1152 The number of ICMP Time Exceeded messages
1153 received by the interface per second
1154 [ipv6IfIcmpInTimeExcds].
1155 .RE
1156
1157 .B otmex6/s
1158 .RS
1159 The number of ICMP Time Exceeded messages sent
1160 by the interface per second
1161 [ipv6IfIcmpOutTimeExcds].
1162 .RE
1163
1164 .B iprmpb6/s
1165 .RS
1166 The number of ICMP Parameter Problem messages
1167 received by the interface per second
1168 [ipv6IfIcmpInParmProblems].
1169 .RE
1170
1171 .B oprmpb6/s
1172 .RS
1173 The number of ICMP Parameter Problem messages
1174 sent by the interface per second
1175 [ipv6IfIcmpOutParmProblems].
1176 .RE
1177
1178 .B iredir6/s
1179 .RS
1180 The number of Redirect messages received
1181 by the interface per second
1182 [ipv6IfIcmpInRedirects].
1183 .RE
1184
1185 .B oredir6/s
1186 .RS
1187 The number of Redirect messages sent by
1188 the interface by second
1189 [ipv6IfIcmpOutRedirects].
1190 .RE
1191
1192 .B ipck2b6/s
1193 .RS
1194 The number of ICMP Packet Too Big messages
1195 received by the interface per second
1196 [ipv6IfIcmpInPktTooBigs].
1197 .RE
1198
1199 .B opck2b6/s
1200 .RS
1201 The number of ICMP Packet Too Big messages sent
1202 by the interface per second
1203 [ipv6IfIcmpOutPktTooBigs].
1204 .RE
1205
1206 With the
1207 .B IP
1208 keyword, statistics about IPv4 network traffic are reported.
1209 Note that IPv4 statistics depend on
1210 .BR sadc 's
1211 option "-S SNMP"
1212 to be collected.
1213 The following values are displayed (formal SNMP names between
1214 square brackets):
1215
1216 .B irec/s
1217 .RS
1218 The total number of input datagrams received from interfaces
1219 per second, including those received in error [ipInReceives].
1220 .RE
1221
1222 .B fwddgm/s
1223 .RS
1224 The number of input datagrams per second, for which this entity was not
1225 their final IP destination, as a result of which an attempt
1226 was made to find a route to forward them to that final
1227 destination [ipForwDatagrams].
1228 .RE
1229
1230 .B idel/s
1231 .RS
1232 The total number of input datagrams successfully delivered per second
1233 to IP user-protocols (including ICMP) [ipInDelivers].
1234 .RE
1235
1236 .B orq/s
1237 .RS
1238 The total number of IP datagrams which local IP user-protocols (including ICMP)
1239 supplied per second to IP in requests for transmission [ipOutRequests].
1240 Note that this counter does not include any datagrams counted in fwddgm/s.
1241 .RE
1242
1243 .B asmrq/s
1244 .RS
1245 The number of IP fragments received per second which needed to be
1246 reassembled at this entity [ipReasmReqds].
1247 .RE
1248
1249 .B asmok/s
1250 .RS
1251 The number of IP datagrams successfully re-assembled per second [ipReasmOKs].
1252 .RE
1253
1254 .B fragok/s
1255 .RS
1256 The number of IP datagrams that have been successfully
1257 fragmented at this entity per second [ipFragOKs].
1258 .RE
1259
1260 .B fragcrt/s
1261 .RS
1262 The number of IP datagram fragments that have been
1263 generated per second as a result of fragmentation at this entity [ipFragCreates].
1264 .RE
1265
1266 With the
1267 .B EIP
1268 keyword, statistics about IPv4 network errors are reported.
1269 Note that IPv4 statistics depend on
1270 .BR sadc 's
1271 option "-S SNMP" to be collected.
1272 The following values are displayed (formal SNMP names between
1273 square brackets):
1274
1275 .B ihdrerr/s
1276 .RS
1277 The number of input datagrams discarded per second due to errors in
1278 their IP headers, including bad checksums, version number
1279 mismatch, other format errors, time-to-live exceeded, errors
1280 discovered in processing their IP options, etc. [ipInHdrErrors]
1281 .RE
1282
1283 .B iadrerr/s
1284 .RS
1285 The number of input datagrams discarded per second because the IP
1286 address in their IP header's destination field was not a
1287 valid address to be received at this entity. This count
1288 includes invalid addresses (e.g., 0.0.0.0) and addresses of
1289 unsupported Classes (e.g., Class E). For entities which are
1290 not IP routers and therefore do not forward datagrams, this
1291 counter includes datagrams discarded because the destination
1292 address was not a local address [ipInAddrErrors].
1293 .RE
1294
1295 .B iukwnpr/s
1296 .RS
1297 The number of locally-addressed datagrams received
1298 successfully but discarded per second because of an unknown or
1299 unsupported protocol [ipInUnknownProtos].
1300 .RE
1301
1302 .B idisc/s
1303 .RS
1304 The number of input IP datagrams per second for which no problems were
1305 encountered to prevent their continued processing, but which
1306 were discarded (e.g., for lack of buffer space) [ipInDiscards].
1307 Note that this counter does not include any datagrams discarded while
1308 awaiting re-assembly.
1309 .RE
1310
1311 .B odisc/s
1312 .RS
1313 The number of output IP datagrams per second for which no problem was
1314 encountered to prevent their transmission to their
1315 destination, but which were discarded (e.g., for lack of
1316 buffer space) [ipOutDiscards].
1317 Note that this counter would include
1318 datagrams counted in fwddgm/s if any such packets met
1319 this (discretionary) discard criterion.
1320 .RE
1321
1322 .B onort/s
1323 .RS
1324 The number of IP datagrams discarded per second because no route could
1325 be found to transmit them to their destination [ipOutNoRoutes].
1326 Note that this counter includes any packets counted in fwddgm/s
1327 which meet this 'no-route' criterion.
1328 Note that this includes any datagrams which a host cannot route because all
1329 of its default routers are down.
1330 .RE
1331
1332 .B asmf/s
1333 .RS
1334 The number of failures detected per second by the IP re-assembly
1335 algorithm (for whatever reason: timed out, errors, etc) [ipReasmFails].
1336 Note that this is not necessarily a count of discarded IP
1337 fragments since some algorithms can lose track of the number of
1338 fragments by combining them as they are received.
1339 .RE
1340
1341 .B fragf/s
1342 .RS
1343 The number of IP datagrams that have been discarded per second because
1344 they needed to be fragmented at this entity but could not
1345 be, e.g., because their Don't Fragment flag was set [ipFragFails].
1346 .RE
1347
1348 With the
1349 .B IP6
1350 keyword, statistics about IPv6 network traffic are reported.
1351 Note that IPv6 statistics depend on
1352 .BR sadc 's
1353 option "-S IPV6" to be collected.
1354 The following values are displayed (formal SNMP names between
1355 square brackets):
1356
1357 .B irec6/s
1358 .RS
1359 The total number of input datagrams received from
1360 interfaces per second, including those received in error
1361 [ipv6IfStatsInReceives].
1362 .RE
1363
1364 .B fwddgm6/s
1365 .RS
1366 The number of output datagrams per second which this
1367 entity received and forwarded to their final
1368 destinations [ipv6IfStatsOutForwDatagrams].
1369 .RE
1370
1371 .B idel6/s
1372 .RS
1373 The total number of datagrams successfully
1374 delivered per second to IPv6 user-protocols (including ICMP)
1375 [ipv6IfStatsInDelivers].
1376 .RE
1377
1378 .B orq6/s
1379 .RS
1380 The total number of IPv6 datagrams which local IPv6
1381 user-protocols (including ICMP) supplied per second to IPv6 in
1382 requests for transmission [ipv6IfStatsOutRequests].
1383 Note that this counter
1384 does not include any datagrams counted in fwddgm6/s.
1385 .RE
1386
1387 .B asmrq6/s
1388 .RS
1389 The number of IPv6 fragments received per second which needed
1390 to be reassembled at this interface [ipv6IfStatsReasmReqds].
1391 .RE
1392
1393 .B asmok6/s
1394 .RS
1395 The number of IPv6 datagrams successfully
1396 reassembled per second [ipv6IfStatsReasmOKs].
1397 .RE
1398
1399 .B imcpck6/s
1400 .RS
1401 The number of multicast packets received per second
1402 by the interface [ipv6IfStatsInMcastPkts].
1403 .RE
1404
1405 .B omcpck6/s
1406 .RS
1407 The number of multicast packets transmitted per second
1408 by the interface [ipv6IfStatsOutMcastPkts].
1409 .RE
1410
1411 .B fragok6/s
1412 .RS
1413 The number of IPv6 datagrams that have been
1414 successfully fragmented at this output interface per second
1415 [ipv6IfStatsOutFragOKs].
1416 .RE
1417
1418 .B fragcr6/s
1419 .RS
1420 The number of output datagram fragments that have
1421 been generated per second as a result of fragmentation at
1422 this output interface [ipv6IfStatsOutFragCreates].
1423 .RE
1424
1425 With the
1426 .B EIP6
1427 keyword, statistics about IPv6 network errors are reported.
1428 Note that IPv6 statistics depend on
1429 .BR sadc 's
1430 option "-S IPV6" to be collected.
1431 The following values are displayed (formal SNMP names between
1432 square brackets):
1433
1434 .B ihdrer6/s
1435 .RS
1436 The number of input datagrams discarded per second due to
1437 errors in their IPv6 headers, including version
1438 number mismatch, other format errors, hop count
1439 exceeded, errors discovered in processing their
1440 IPv6 options, etc. [ipv6IfStatsInHdrErrors]
1441 .RE
1442
1443 .B iadrer6/s
1444 .RS
1445 The number of input datagrams discarded per second because
1446 the IPv6 address in their IPv6 header's destination
1447 field was not a valid address to be received at
1448 this entity. This count includes invalid
1449 addresses (e.g., ::0) and unsupported addresses
1450 (e.g., addresses with unallocated prefixes). For
1451 entities which are not IPv6 routers and therefore
1452 do not forward datagrams, this counter includes
1453 datagrams discarded because the destination address
1454 was not a local address [ipv6IfStatsInAddrErrors].
1455 .RE
1456
1457 .B iukwnp6/s
1458 .RS
1459 The number of locally-addressed datagrams
1460 received successfully but discarded per second because of an
1461 unknown or unsupported protocol [ipv6IfStatsInUnknownProtos].
1462 .RE
1463
1464 .B i2big6/s
1465 .RS
1466 The number of input datagrams that could not be
1467 forwarded per second because their size exceeded the link MTU
1468 of outgoing interface [ipv6IfStatsInTooBigErrors].
1469 .RE
1470
1471 .B idisc6/s
1472 .RS
1473 The number of input IPv6 datagrams per second for which no
1474 problems were encountered to prevent their
1475 continued processing, but which were discarded
1476 (e.g., for lack of buffer space)
1477 [ipv6IfStatsInDiscards]. Note that this
1478 counter does not include any datagrams discarded
1479 while awaiting re-assembly.
1480 .RE
1481
1482 .B odisc6/s
1483 .RS
1484 The number of output IPv6 datagrams per second for which no
1485 problem was encountered to prevent their
1486 transmission to their destination, but which were
1487 discarded (e.g., for lack of buffer space)
1488 [ipv6IfStatsOutDiscards]. Note
1489 that this counter would include datagrams counted
1490 in fwddgm6/s if any such packets
1491 met this (discretionary) discard criterion.
1492 .RE
1493
1494 .B inort6/s
1495 .RS
1496 The number of input datagrams discarded per second because no
1497 route could be found to transmit them to their
1498 destination [ipv6IfStatsInNoRoutes].
1499 .RE
1500
1501 .B onort6/s
1502 .RS
1503 The number of locally generated IP datagrams discarded per second
1504 because no route could be found to transmit them to their
1505 destination [unknown formal SNMP name].
1506 .RE
1507
1508 .B asmf6/s
1509 .RS
1510 The number of failures detected per second by the IPv6
1511 re-assembly algorithm (for whatever reason: timed
1512 out, errors, etc.) [ipv6IfStatsReasmFails].
1513 Note that this is not
1514 necessarily a count of discarded IPv6 fragments
1515 since some algorithms
1516 can lose track of the number of fragments
1517 by combining them as they are received.
1518 .RE
1519
1520 .B fragf6/s
1521 .RS
1522 The number of IPv6 datagrams that have been
1523 discarded per second because they needed to be fragmented
1524 at this output interface but could not be
1525 [ipv6IfStatsOutFragFails].
1526 .RE
1527
1528 .B itrpck6/s
1529 .RS
1530 The number of input datagrams discarded per second because
1531 datagram frame didn't carry enough data
1532 [ipv6IfStatsInTruncatedPkts].
1533 .RE
1534
1535 With the
1536 .B NFS
1537 keyword, statistics about NFS client activity are reported.
1538 The following values are displayed:
1539
1540 .B call/s
1541 .RS
1542 Number of RPC requests made per second.
1543 .RE
1544
1545 .B retrans/s
1546 .RS
1547 Number of RPC requests per second, those which needed to be retransmitted (for
1548 example because of a server timeout).
1549 .RE
1550
1551 .B read/s
1552 .RS
1553 Number of 'read' RPC calls made per second.
1554 .RE
1555
1556 .B write/s
1557 .RS
1558 Number of 'write' RPC calls made per second.
1559 .RE
1560
1561 .B access/s
1562 .RS
1563 Number of 'access' RPC calls made per second.
1564 .RE
1565
1566 .B getatt/s
1567 .RS
1568 Number of 'getattr' RPC calls made per second.
1569 .RE
1570
1571 With the
1572 .B NFSD
1573 keyword, statistics about NFS server activity are reported.
1574 The following values are displayed:
1575
1576 .B scall/s
1577 .RS
1578 Number of RPC requests received per second.
1579 .RE
1580
1581 .B badcall/s
1582 .RS
1583 Number of bad RPC requests received per second, those whose
1584 processing generated an error.
1585 .RE
1586
1587 .B packet/s
1588 .RS
1589 Number of network packets received per second.
1590 .RE
1591
1592 .B udp/s
1593 .RS
1594 Number of UDP packets received per second.
1595 .RE
1596
1597 .B tcp/s
1598 .RS
1599 Number of TCP packets received per second.
1600 .RE
1601
1602 .B hit/s
1603 .RS
1604 Number of reply cache hits per second.
1605 .RE
1606
1607 .B miss/s
1608 .RS
1609 Number of reply cache misses per second.
1610 .RE
1611
1612 .B sread/s
1613 .RS
1614 Number of 'read' RPC calls received per second.
1615 .RE
1616
1617 .B swrite/s
1618 .RS
1619 Number of 'write' RPC calls received per second.
1620 .RE
1621
1622 .B saccess/s
1623 .RS
1624 Number of 'access' RPC calls received per second.
1625 .RE
1626
1627 .B sgetatt/s
1628 .RS
1629 Number of 'getattr' RPC calls received per second.
1630 .RE
1631
1632 With the
1633 .B SOCK
1634 keyword, statistics on sockets in use are reported
1635 (IPv4).
1636 The following values are displayed:
1637
1638 .B totsck
1639 .RS
1640 Total number of sockets used by the system.
1641 .RE
1642
1643 .B tcpsck
1644 .RS
1645 Number of TCP sockets currently in use.
1646 .RE
1647
1648 .B udpsck
1649 .RS
1650 Number of UDP sockets currently in use.
1651 .RE
1652
1653 .B rawsck
1654 .RS
1655 Number of RAW sockets currently in use.
1656 .RE
1657
1658 .B ip-frag
1659 .RS
1660 Number of IP fragments currently in queue.
1661 .RE
1662
1663 .B tcp-tw
1664 .RS
1665 Number of TCP sockets in TIME_WAIT state.
1666 .RE
1667
1668 With the
1669 .B SOCK6
1670 keyword, statistics on sockets in use are reported (IPv6).
1671 Note that IPv6 statistics depend on
1672 .BR sadc 's
1673 option "-S IPV6" to be collected.
1674 The following values are displayed:
1675
1676 .B tcp6sck
1677 .RS
1678 Number of TCPv6 sockets currently in use.
1679 .RE
1680
1681 .B udp6sck
1682 .RS
1683 Number of UDPv6 sockets currently in use.
1684 .RE
1685
1686 .B raw6sck
1687 .RS
1688 Number of RAWv6 sockets currently in use.
1689 .RE
1690
1691 .B ip6-frag
1692 .RS
1693 Number of IPv6 fragments currently in use.
1694 .RE
1695
1696 With the
1697 .B SOFT
1698 keyword, statistics about software-based network processing are reported.
1699 The following values are displayed:
1700
1701 .B total/s
1702 .RS
1703 The total number of network frames processed per second.
1704 .RE
1705
1706 .B dropd/s
1707 .RS
1708 The total number of network frames dropped per second because there
1709 was no room on the processing queue.
1710 .RE
1711
1712 .B squeezd/s
1713 .RS
1714 The number of times the softirq handler function terminated per second
1715 because its budget was consumed or the time limit was reached, but more
1716 work could have been done.
1717 .RE
1718
1719 .B rx_rps/s
1720 .RS
1721 The number of times the CPU has been woken up per second
1722 to process packets via an inter-processor interrupt.
1723 .RE
1724
1725 .B flw_lim/s
1726 .RS
1727 The number of times the flow limit has been reached per second.
1728 Flow limiting is an optional RPS feature that can be used to limit the number of
1729 packets queued to the backlog for each flow to a certain amount.
1730 This can help ensure that smaller flows are processed even though
1731 much larger flows are pushing packets in.
1732 .RE
1733
1734 With the
1735 .B TCP
1736 keyword, statistics about TCPv4 network traffic are reported.
1737 Note that TCPv4 statistics depend on
1738 .BR sadc 's
1739 option "-S SNMP" to be collected.
1740 The following values are displayed (formal SNMP names between
1741 square brackets):
1742
1743 .B active/s
1744 .RS
1745 The number of times TCP connections have made a direct
1746 transition to the SYN-SENT state from the CLOSED state per second [tcpActiveOpens].
1747 .RE
1748
1749 .B passive/s
1750 .RS
1751 The number of times TCP connections have made a direct
1752 transition to the SYN-RCVD state from the LISTEN state per second [tcpPassiveOpens].
1753 .RE
1754
1755 .B iseg/s
1756 .RS
1757 The total number of segments received per second, including those
1758 received in error [tcpInSegs].  This count includes segments received on
1759 currently established connections.
1760 .RE
1761
1762 .B oseg/s
1763 .RS
1764 The total number of segments sent per second, including those on
1765 current connections but excluding those containing only
1766 retransmitted octets [tcpOutSegs].
1767 .RE
1768
1769 With the
1770 .B ETCP
1771 keyword, statistics about TCPv4 network errors are reported.
1772 Note that TCPv4 statistics depend on
1773 .BR sadc 's
1774 option "-S SNMP" to be collected.
1775 The following values are displayed (formal SNMP names between
1776 square brackets):
1777
1778 .B atmptf/s
1779 .RS
1780 The number of times per second TCP connections have made a direct
1781 transition to the CLOSED state from either the SYN-SENT
1782 state or the SYN-RCVD state, plus the number of times per second TCP
1783 connections have made a direct transition to the LISTEN
1784 state from the SYN-RCVD state [tcpAttemptFails].
1785 .RE
1786
1787 .B estres/s
1788 .RS
1789 The number of times per second TCP connections have made a direct
1790 transition to the CLOSED state from either the ESTABLISHED
1791 state or the CLOSE-WAIT state [tcpEstabResets].
1792 .RE
1793
1794 .B retrans/s
1795 .RS
1796 The total number of segments retransmitted per second - that is, the
1797 number of TCP segments transmitted containing one or more
1798 previously transmitted octets [tcpRetransSegs].
1799 .RE
1800
1801 .B isegerr/s
1802 .RS
1803 The total number of segments received in error (e.g., bad
1804 TCP checksums) per second [tcpInErrs].
1805 .RE
1806
1807 .B orsts/s
1808 .RS
1809 The number of TCP segments sent per second containing the RST flag [tcpOutRsts].
1810 .RE
1811
1812 With the
1813 .B UDP
1814 keyword, statistics about UDPv4 network traffic are reported.
1815 Note that UDPv4 statistics depend on
1816 .BR sadc's
1817 option "-S SNMP" to be collected.
1818 The following values are displayed (formal SNMP names between
1819 square brackets):
1820
1821 .B idgm/s
1822 .RS
1823 The total number of UDP datagrams delivered per second to UDP users [udpInDatagrams].
1824 .RE
1825
1826 .B odgm/s
1827 .RS
1828 The total number of UDP datagrams sent per second from this entity [udpOutDatagrams].
1829 .RE
1830
1831 .B noport/s
1832 .RS
1833 The total number of received UDP datagrams per second for which there
1834 was no application at the destination port [udpNoPorts].
1835 .RE
1836
1837 .B idgmerr/s
1838 .RS
1839 The number of received UDP datagrams per second that could not be
1840 delivered for reasons other than the lack of an application
1841 at the destination port [udpInErrors].
1842 .RE
1843
1844 With the
1845 .B UDP6
1846 keyword, statistics about UDPv6 network traffic are reported.
1847 Note that UDPv6 statistics depend on
1848 .BR sadc 's
1849 option "-S IPV6" to be collected.
1850 The following values are displayed (formal SNMP names between
1851 square brackets):
1852
1853 .B idgm6/s
1854 .RS
1855 The total number of UDP datagrams delivered per second to UDP users
1856 [udpInDatagrams].
1857 .RE
1858
1859 .B odgm6/s
1860 .RS
1861 The total number of UDP datagrams sent per second from this
1862 entity [udpOutDatagrams].
1863 .RE
1864
1865 .B noport6/s
1866 .RS
1867 The total number of received UDP datagrams per second for which there
1868 was no application at the destination port [udpNoPorts].
1869 .RE
1870
1871 .B idgmer6/s
1872 .RS
1873 The number of received UDP datagrams per second that could not be
1874 delivered for reasons other than the lack of an application
1875 at the destination port [udpInErrors].
1876 .RE
1877
1878 The
1879 .B ALL
1880 keyword is equivalent to specifying all the keywords above and therefore all the network
1881 activities are reported.
1882 .RE
1883 .RE
1884 .IP "-o [ filename ]"
1885 Save the readings in the file in binary form. Each reading
1886 is in a separate record. The default value of the
1887 .I filename
1888 parameter is the current standard system activity daily data file.
1889 If
1890 .I filename
1891 is a directory instead of a plain file then it is considered as the directory
1892 where the standard system activity daily data files are located.
1893 The -o option is exclusive of the -f option.
1894 All the data available from the kernel are saved in the file (in fact,
1895 .B sar
1896 calls its data collector
1897 .B sadc
1898 with the option "-S ALL".
1899 See
1900 .BR sadc (8)
1901 manual page).
1902 .IP "-P { cpu_list | ALL }"
1903 Report per-processor statistics for the specified processor or processors.
1904 .I cpu_list
1905 is a list of comma-separated values or range of values (e.g.,
1906 .BR 0,2,4-7,12- ).
1907 Note that processor 0 is the first processor, and processor
1908 .B all
1909 is the global average among all processors.
1910 Specifying the
1911 .B ALL
1912 keyword reports statistics for each individual processor, and globally for
1913 all processors. Offline processors are not displayed.
1914 .IP -p
1915 Pretty-print device names. Use this option in conjunction with option -d.
1916 By default names are printed as
1917 .I devM-n
1918 where M and n are the major and minor numbers for the device.
1919 Use of this option displays the names of the devices as they (should) appear
1920 in /dev. Name mappings are controlled by
1921 .IR @SYSCONFIG_DIR@/sysstat.ioconf .
1922 .IP -q
1923 Report queue length and load averages. The following values are displayed:
1924
1925 .B runq-sz
1926 .RS
1927 .RS
1928 Run queue length (number of tasks waiting for run time). 
1929 .RE
1930
1931 .B plist-sz
1932 .RS
1933 Number of tasks in the task list.
1934 .RE
1935
1936 .B ldavg-1
1937 .RS
1938 System load average for the last minute.
1939 The load average is calculated as the average number of runnable or
1940 running tasks (R state), and the number of tasks in uninterruptible
1941 sleep (D state) over the specified interval.
1942 .RE
1943
1944 .B ldavg-5
1945 .RS
1946 System load average for the past 5 minutes.
1947 .RE
1948
1949 .B ldavg-15
1950 .RS
1951 System load average for the past 15 minutes.
1952 .RE
1953
1954 .B blocked
1955 .RS
1956 Number of tasks currently blocked, waiting for I/O to complete.
1957 .RE
1958 .RE
1959 .IP "-r [ ALL ]"
1960 Report memory utilization statistics. The
1961 .B ALL
1962 keyword indicates that all the memory fields should be displayed.
1963 The following values may be displayed:
1964
1965 .B kbmemfree
1966 .RS
1967 .RS
1968 Amount of free memory available in kilobytes.
1969 .RE
1970
1971 .B kbavail
1972 .RS
1973 Estimate of how much memory in kilobytes is available for starting new
1974 applications, without swapping.
1975 The estimate takes into account that the system needs some page cache to
1976 function well, and that not all reclaimable slab will be reclaimable,
1977 due to items being in use. The impact of those factors will vary from
1978 system to system.
1979 .RE
1980
1981 .B kbmemused
1982 .RS
1983 Amount of used memory in kilobytes (calculated as total installed memory -
1984 .B kbmemfree
1985 -
1986 .B kbbuffers
1987 -
1988 .B kbcached
1989 -
1990 .BR kbslab ).
1991 .RE
1992
1993 .B %memused
1994 .RS
1995 Percentage of used memory.
1996 .RE
1997
1998 .B kbbuffers
1999 .RS
2000 Amount of memory used as buffers by the kernel in kilobytes.
2001 .RE
2002
2003 .B kbcached
2004 .RS
2005 Amount of memory used to cache data by the kernel in kilobytes.
2006 .RE
2007
2008 .B kbcommit
2009 .RS
2010 Amount of memory in kilobytes needed for current workload. This is an estimate of how much
2011 RAM/swap is needed to guarantee that there never is out of memory.
2012 .RE
2013
2014 .B %commit
2015 .RS
2016 Percentage of memory needed for current workload in relation to the total amount of memory (RAM+swap).
2017 This number may be greater than 100% because the kernel usually overcommits memory.
2018 .RE
2019
2020 .B kbactive
2021 .RS
2022 Amount of active memory in kilobytes (memory that has been used more recently
2023 and usually not reclaimed unless absolutely necessary).
2024 .RE
2025
2026 .B kbinact
2027 .RS
2028 Amount of inactive memory in kilobytes (memory which has been less recently
2029 used. It is more eligible to be reclaimed for other purposes).
2030 .RE
2031
2032 .B kbdirty
2033 .RS
2034 Amount of memory in kilobytes waiting to get written back to the disk.
2035 .RE
2036
2037 .B kbanonpg
2038 .RS
2039 Amount of non-file backed pages in kilobytes mapped into userspace page tables.
2040 .RE
2041
2042 .B kbslab
2043 .RS
2044 Amount of memory in kilobytes used by the kernel to cache data structures for its own use.
2045 .RE
2046
2047 .B kbkstack
2048 .RS
2049 Amount of memory in kilobytes used for kernel stack space.
2050 .RE
2051
2052 .B kbpgtbl
2053 .RS
2054 Amount of memory in kilobytes dedicated to the lowest level of page tables.
2055 .RE
2056
2057 .B kbvmused
2058 .RS
2059 Amount of memory in kilobytes of used virtual address space.
2060 .RE
2061 .RE
2062 .IP -S
2063 Report swap space utilization statistics.
2064 The following values are displayed:
2065
2066 .B kbswpfree
2067 .RS
2068 .RS
2069 Amount of free swap space in kilobytes.
2070 .RE
2071
2072 .B kbswpused
2073 .RS
2074 Amount of used swap space in kilobytes.
2075 .RE
2076
2077 .B %swpused
2078 .RS
2079 Percentage of used swap space.
2080 .RE
2081
2082 .B kbswpcad
2083 .RS
2084 Amount of cached swap memory in kilobytes.
2085 This is memory that once was swapped out, is swapped back in
2086 but still also is in the swap area (if memory is needed it doesn't need
2087 to be swapped out again because it is already in the swap area. This
2088 saves I/O).
2089 .RE
2090
2091 .B %swpcad
2092 .RS
2093 Percentage of cached swap memory in relation to the amount of used swap space.
2094 .RE
2095 .RE
2096 .IP "-s [ hh:mm[:ss] ]"
2097 Set the starting time of the data, causing the
2098 .B sar
2099 command to extract records time-tagged at, or following, the time
2100 specified. The default starting time is 08:00:00.
2101 Hours must be given in 24-hour format. This option can be
2102 used only when data are read from a file (option -f).
2103 .IP "--sadc"
2104 Indicate which data collector is called by
2105 .BR sar .
2106 If the data collector is sought in PATH then enter "which sadc" to
2107 know where it is located.
2108 .IP -t
2109 When reading data from a daily data file, indicate that
2110 .B sar
2111 should display the timestamps in the original local time of
2112 the data file creator. Without this option, the
2113 .B sar
2114 command displays the timestamps in the user's locale time.
2115 .IP "-u [ ALL ]"
2116 Report CPU utilization. The
2117 .B ALL
2118 keyword indicates that all the CPU fields should be displayed.
2119 The report may show the following fields:
2120
2121 .B %user
2122 .RS
2123 .RS
2124 Percentage of CPU utilization that occurred while executing at the user
2125 level (application). Note that this field includes time spent running
2126 virtual processors.
2127 .RE
2128
2129 .B %usr
2130 .RS
2131 Percentage of CPU utilization that occurred while executing at the user
2132 level (application). Note that this field does NOT include time spent
2133 running virtual processors.
2134 .RE
2135
2136 .B %nice
2137 .RS
2138 Percentage of CPU utilization that occurred while executing at the user
2139 level with nice priority.
2140 .RE
2141
2142 .B %system
2143 .RS
2144 Percentage of CPU utilization that occurred while executing at the system
2145 level (kernel). Note that this field includes time spent servicing
2146 hardware and software interrupts.
2147 .RE
2148
2149 .B %sys
2150 .RS
2151 Percentage of CPU utilization that occurred while executing at the system
2152 level (kernel). Note that this field does NOT include time spent servicing
2153 hardware or software interrupts.
2154 .RE
2155
2156 .B %iowait
2157 .RS
2158 Percentage of time that the CPU or CPUs were idle during which
2159 the system had an outstanding disk I/O request.
2160 .RE
2161
2162 .B %steal
2163 .RS
2164 Percentage of time spent in involuntary wait by the virtual CPU
2165 or CPUs while the hypervisor was servicing another virtual processor.
2166 .RE
2167
2168 .B %irq
2169 .RS
2170 Percentage of time spent by the CPU or CPUs to service hardware interrupts.
2171 .RE
2172
2173 .B %soft
2174 .RS
2175 Percentage of time spent by the CPU or CPUs to service software interrupts.
2176 .RE
2177
2178 .B %guest
2179 .RS
2180 Percentage of time spent by the CPU or CPUs to run a virtual processor.
2181 .RE
2182
2183 .B %gnice
2184 .RS
2185 Percentage of time spent by the CPU or CPUs to run a niced guest.
2186 .RE
2187
2188 .B %idle
2189 .RS
2190 Percentage of time that the CPU or CPUs were idle and the system
2191 did not have an outstanding disk I/O request.
2192 .RE
2193 .RE
2194 .IP -V
2195 Print version number then exit.
2196 .IP -v
2197 Report status of inode, file and other kernel tables.
2198 The following values are displayed:
2199
2200 .B dentunusd
2201 .RS
2202 .RS
2203 Number of unused cache entries in the directory cache.
2204 .RE
2205
2206 .B file-nr
2207 .RS
2208 Number of file handles used by the system.
2209 .RE
2210
2211 .B inode-nr
2212 .RS
2213 Number of inode handlers used by the system.
2214 .RE
2215
2216 .B pty-nr
2217 .RS
2218 Number of pseudo-terminals used by the system.
2219 .RE
2220 .RE
2221 .IP -W
2222 Report swapping statistics. The following values are displayed:
2223
2224 .B pswpin/s
2225 .RS
2226 .RS
2227 Total number of swap pages the system brought in per second.
2228 .RE
2229
2230 .B pswpout/s
2231 .RS
2232 Total number of swap pages the system brought out per second.
2233 .RE
2234 .RE
2235 .IP -w
2236 Report task creation and system switching activity.
2237
2238 .B proc/s
2239 .RS
2240 .RS
2241 Total number of tasks created per second.
2242 .RE
2243
2244 .B cswch/s
2245 .RS
2246 Total number of context switches per second.
2247 .RE
2248 .RE
2249 .IP -y
2250 Report TTY devices activity. The following values are displayed:
2251
2252 .B rcvin/s
2253 .RS
2254 .RS
2255 Number of receive interrupts per second for current serial line. Serial line number
2256 is given in the TTY column.
2257 .RE
2258
2259 .B xmtin/s
2260 .RS
2261 Number of transmit interrupts per second for current serial line.
2262 .RE
2263
2264 .B framerr/s
2265 .RS
2266 Number of frame errors per second for current serial line.
2267 .RE
2268
2269 .B prtyerr/s
2270 .RS
2271 Number of parity errors per second for current serial line.
2272 .RE
2273
2274 .B brk/s
2275 .RS
2276 Number of breaks per second for current serial line.
2277 .RE
2278
2279 .B ovrun/s
2280 .RS
2281 Number of overrun errors per second for current serial line.
2282 .RE
2283 .RE
2284 .IP -z
2285 Tell
2286 .B sar
2287 to omit output for any devices for which there was no activity during the
2288 sample period.
2289
2290 .SH ENVIRONMENT
2291 The
2292 .B sar
2293 command takes into account the following environment variables:
2294
2295 .IP S_COLORS
2296 When this variable is set, display statistics in color on the terminal.
2297 Possible values for this variable are
2298 .IR never ,
2299 .IR always 
2300 or
2301 .IR auto
2302 (the latter is the default).
2303
2304 Please note that the color (being red, yellow, or some other color) used to display a value
2305 is not indicative of any kind of issue simply because of the color. It only indicates different
2306 ranges of values.
2307
2308 .IP S_COLORS_SGR
2309 Specify the colors and other attributes used to display statistics on the terminal. 
2310 Its value is a colon-separated list of capabilities that defaults to
2311 .BR C=33;22:H=31;1:I=32;22:M=35;1:N=34;1:R=31;22:Z=34;22 .
2312 Supported capabilities are:
2313
2314 .RS
2315 .TP
2316 .B C=
2317 SGR (Select Graphic Rendition) substring for comments inserted in the binary daily
2318 data files.
2319
2320 .TP
2321 .B H=
2322 SGR substring for percentage values greater than or equal to 75%.
2323
2324 .TP
2325 .B I=
2326 SGR substring for item names or values (eg. network interfaces, CPU number...)
2327
2328 .TP
2329 .B M=
2330 SGR substring for percentage values in the range from 50% to 75%.
2331
2332 .TP
2333 .B N=
2334 SGR substring for non-zero statistics values.
2335
2336 .TP
2337 .B R=
2338 SGR substring for restart messages.
2339
2340 .TP
2341 .B Z=
2342 SGR substring for zero values.
2343 .RE
2344
2345 .IP S_TIME_DEF_TIME
2346 If this variable exists and its value is
2347 .B UTC
2348 then
2349 .B sar
2350 will save its data in UTC time (data will still be displayed in local time).
2351 .B sar
2352 will also use UTC time instead of local time to determine the current daily
2353 data file located in the
2354 .IR @SA_DIR@
2355 directory. This variable may be useful for servers with users located across
2356 several timezones.
2357
2358 .IP S_TIME_FORMAT
2359 If this variable exists and its value is
2360 .B ISO
2361 then the current locale will be ignored when printing the date in the report header.
2362 The
2363 .B sar
2364 command will use the ISO 8601 format (YYYY-MM-DD) instead.
2365 The timestamp will also be compliant with ISO 8601 format.
2366 .SH EXAMPLES
2367 .B sar -u 2 5
2368 .RS
2369 Report CPU utilization for each 2 seconds. 5 lines are displayed.
2370 .RE
2371
2372 .B sar -I 14 -o int14.file 2 10
2373 .RS
2374 Report statistics on IRQ 14 for each 2 seconds. 10 lines are displayed.
2375 Data are stored in a file called
2376 .IR int14.file .
2377 .RE
2378
2379 .B sar -r -n DEV -f @SA_DIR@/sa16
2380 .RS
2381 Display memory and network statistics saved in daily data file 'sa16'.
2382 .RE
2383
2384 .B sar -A
2385 .RS
2386 Display all the statistics saved in current daily data file.
2387 .SH BUGS
2388 .I /proc
2389 filesystem must be mounted for the
2390 .B sar
2391 command to work.
2392
2393 All the statistics are not necessarily available, depending on the kernel version used.
2394 .B sar
2395 assumes that you are using at least a 2.6 kernel.
2396 .SH FILES
2397 .I @SA_DIR@/saDD
2398 .br
2399 .I @SA_DIR@/saYYYYMMDD
2400 .RS
2401 The standard system activity daily data files and their default location.
2402 YYYY stands for the current year, MM for the current month and DD for the
2403 current day.
2404
2405 .RE
2406 .I /proc
2407 and
2408 .I /sys
2409 contain various files with system statistics.
2410 .SH AUTHOR
2411 Sebastien Godard (sysstat <at> orange.fr)
2412 .SH SEE ALSO
2413 .BR sadc (8),
2414 .BR sa1 (8),
2415 .BR sa2 (8),
2416 .BR sadf (1),
2417 .BR sysstat (5),
2418 .BR pidstat (1),
2419 .BR mpstat (1),
2420 .BR iostat (1),
2421 .BR vmstat (8)
2422
2423 .I http://pagesperso-orange.fr/sebastien.godard/