-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnodediag.1
91 lines (91 loc) · 2.49 KB
/
nodediag.1
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
.TH nodediag 1 "2011-10-14" "nodediag-1.2" "nodediag"
.SH NAME
nodediag \- perform node diagnostics
.SH SYNOPSIS
.B nodediag
.I "[OPTIONS]"
.I "[test [test...]]"
.SH DESCRIPTION
.B nodediag
runs diagnostic test scripts from /etc/nodediag.d.
If any fail, \fBnodediag\fR exits with a nonzero exit status.
.SH OPTIONS
.TP
\fI-l\fR, \fI--list\fR
List available tests with descriptions, if available.
.TP
\fI-f\fR, \fI--firstfail\fR
Exit on first test failure.
.TP
\fI-q\fR, \fI--quiet\fR
Show no output.
.TP
\fI-x\fR, \fI--failonly\fR
Show only output from failed tests.
.TP
\fI-v\fR, \fI--verbose\fR
Include raw test output.
.TP
\fI-p\fR, \fI--plain\fR
Disable the pretty terminal colors.
This option is automatically switched on if stdout is not a tty.
.TP
\fI-c\fR, \fI--config\fR
Generate a prototype /etc/sysconfig/nodediag file on stdout.
.TP
\fI-s\fR, \fI--sanity\fR
Only run quick sanity tests.
.TP
\fI-F\fR, \fI--forever\fR
Repeat test loop until interrupted.
.TP
\fI-d\fR, \fI--testdir DIR\fR
Use test directory other than /etc/nodediag.d.
.TP
\fI-j\fR, \fI--jobs N\fR
Set the number of tests to run in parallel (default 4).
.SH TESTS
Some tests are supplied with \fBnodediag\fR, and are
configured by editing varible settings in /etc/sysconfig/nodediag.
Tests can also be supplied by other packages.
For a list of installed tests, run \fInodediag -l\fR.
.LP
\fBnodediag\fR tests are standalone programs that format their output
according to the TAP (Test Anything Protocol) standard described at
http://testanything.org. In addition, \fBnodediag\fR tests should
handle the following command line options:
.TP
\fI-d\fR
Produce a one-line description of the test's purpose.
.TP
\fI-c\fR
Produce default output for the /etc/sysconfig/nodediag file for this test.
.TP
\fI-s\fR
Run only a sanity (quick) version of the test.
.LP
Bash convenience functions in /etc/nodediag.d/functions-tap can be used
if desired. For more information and examples that use these functions,
refer to the \fBnodediag\fR test writing primer at
.IP
http://code.google.com/p/nodediag/wiki/Writing_Tests
.LP
Alternatively, tests be written in any language as standalone programs
or utilizing TAP libraries available from
.IP
http://testanything.org/wiki/index.php/TAP_Producers
.LP
Because the tests follow the TAP standard, they can be run under
the perl \fBprove\fR command, e.g.
.IP
.nf
prove /etc/nodediag.d
prove --formatter TAP::Formatter::Nodediag /etc/nodediag.d
.fi
.LP
.SH FILES
/etc/nodediag.d
.br
/etc/sysconfig/nodediag
.br
/etc/sysconfig/nodediag.d/*