Merge lp:~tribaal/landscape-client/landscape-sysinfo-man-page into lp:~landscape/landscape-client/trunk
- landscape-sysinfo-man-page
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Thomas Herve |
Approved revision: | 585 |
Merged at revision: | 580 |
Proposed branch: | lp:~tribaal/landscape-client/landscape-sysinfo-man-page |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
428 lines (+251/-27) 11 files modified
.bzrignore (+1/-0) Makefile (+1/-0) debian/rules (+1/-1) landscape/deployment.py (+5/-5) landscape/sysinfo/deployment.py (+2/-2) man/landscape-client.1 (+1/-1) man/landscape-config.1 (+5/-9) man/landscape-config.txt (+4/-8) man/landscape-message.1 (+1/-1) man/landscape-sysinfo.1 (+132/-0) man/landscape-sysinfo.txt (+98/-0) |
To merge this branch: | bzr merge lp:~tribaal/landscape-client/landscape-sysinfo-man-page |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Herve (community) | Approve | ||
Jerry Seutter (community) | Approve | ||
Review via email: mp+124861@code.launchpad.net |
Commit message
Description of the change
This branch reuses the submitted man page and commits it as a text file (to remain consistent with how we currently generate man pages using txt2man).
I'm not entirely sure if txt2man supports some of the fancier formatting that was originally submitted - don't hesitate to let me know if you think this first branch is not good enough.
Thomas Herve (therve) wrote : | # |
[1] The different default values are not displayed properly in the man version (-c, -d, -l). I realize it's the same for the other pages, it's be great to find a fix.
[2] Actually, most of the options are not relevant to sysinfo. Maybe using BaseConfiguration instead of Configuration would fix it.
Thanks!
- 582. By Chris Glass
-
Made landscape-sysinfo use BaseConfigruation instead of Configuration as suggested.
- 583. By Chris Glass
-
Fixed manpages displaying the default values incorrectly. This was due to linefeeds :(
- 584. By Chris Glass
-
Fixed extra whitelines in the FILES section
Chris Glass (tribaal) wrote : | # |
Should be fixed
- 585. By Chris Glass
-
Forward-merging trunk
Thomas Herve (therve) wrote : | # |
[3] There is still one extra line in man/landscape-
Looks great, +1!
- 586. By Chris Glass
-
Fixed extra log level linefeed
Preview Diff
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2012-03-22 15:11:27 +0000 | |||
3 | +++ .bzrignore 2012-09-20 09:57:20 +0000 | |||
4 | @@ -25,6 +25,7 @@ | |||
5 | 25 | man/landscape-client.1 | 25 | man/landscape-client.1 |
6 | 26 | man/landscape-config.1 | 26 | man/landscape-config.1 |
7 | 27 | man/landscape-message.1 | 27 | man/landscape-message.1 |
8 | 28 | man/landscape-sysinfo.1 | ||
9 | 28 | smart-update/smart-update | 29 | smart-update/smart-update |
10 | 29 | apt-update/apt-update | 30 | apt-update/apt-update |
11 | 30 | docs | 31 | docs |
12 | 31 | 32 | ||
13 | === modified file 'Makefile' | |||
14 | --- Makefile 2012-05-31 00:31:39 +0000 | |||
15 | +++ Makefile 2012-09-20 09:57:20 +0000 | |||
16 | @@ -61,6 +61,7 @@ | |||
17 | 61 | ${TXT2MAN} -P Landscape -s 1 -t landscape-client < man/landscape-client.txt > man/landscape-client.1 | 61 | ${TXT2MAN} -P Landscape -s 1 -t landscape-client < man/landscape-client.txt > man/landscape-client.1 |
18 | 62 | ${TXT2MAN} -P Landscape -s 1 -t landscape-config < man/landscape-config.txt > man/landscape-config.1 | 62 | ${TXT2MAN} -P Landscape -s 1 -t landscape-config < man/landscape-config.txt > man/landscape-config.1 |
19 | 63 | ${TXT2MAN} -P Landscape -s 1 -t landscape-message < man/landscape-message.txt > man/landscape-message.1 | 63 | ${TXT2MAN} -P Landscape -s 1 -t landscape-message < man/landscape-message.txt > man/landscape-message.1 |
20 | 64 | ${TXT2MAN} -P Landscape -s 1 -t landscape-sysinfo < man/landscape-sysinfo.txt > man/landscape-sysinfo.1 | ||
21 | 64 | 65 | ||
22 | 65 | origtarball: sdist | 66 | origtarball: sdist |
23 | 66 | cp -f sdist/landscape-client-$(TARBALL_VERSION).tar.gz \ | 67 | cp -f sdist/landscape-client-$(TARBALL_VERSION).tar.gz \ |
24 | 67 | 68 | ||
25 | === modified file 'debian/rules' | |||
26 | --- debian/rules 2012-09-05 15:37:17 +0000 | |||
27 | +++ debian/rules 2012-09-20 09:57:20 +0000 | |||
28 | @@ -77,7 +77,7 @@ | |||
29 | 77 | dh_testdir | 77 | dh_testdir |
30 | 78 | dh_testroot | 78 | dh_testroot |
31 | 79 | dh_installdocs | 79 | dh_installdocs |
33 | 80 | dh_installman -p landscape-client man/landscape-client.1 man/landscape-config.1 man/landscape-message.1 | 80 | dh_installman -p landscape-client man/landscape-client.1 man/landscape-config.1 man/landscape-message.1 man/landscape-sysinfo.1 |
34 | 81 | dh_installchangelogs | 81 | dh_installchangelogs |
35 | 82 | dh_install --sourcedir debian/tmp/ | 82 | dh_install --sourcedir debian/tmp/ |
36 | 83 | dh_installinit -- start 45 2 3 4 5 . stop 15 0 1 6 . | 83 | dh_installinit -- start 45 2 3 4 5 . stop 15 0 1 6 . |
37 | 84 | 84 | ||
38 | === modified file 'landscape/deployment.py' | |||
39 | --- landscape/deployment.py 2012-09-14 07:05:37 +0000 | |||
40 | +++ landscape/deployment.py 2012-09-20 09:57:20 +0000 | |||
41 | @@ -230,12 +230,17 @@ | |||
42 | 230 | @return: An L{OptionParser} preset with options that all | 230 | @return: An L{OptionParser} preset with options that all |
43 | 231 | landscape-related programs accept. These include | 231 | landscape-related programs accept. These include |
44 | 232 | - C{config} (C{None}) | 232 | - C{config} (C{None}) |
45 | 233 | - C{data_path} (C{"/var/lib/landscape/client/"}) | ||
46 | 233 | """ | 234 | """ |
47 | 234 | parser = OptionParser(version=VERSION) | 235 | parser = OptionParser(version=VERSION) |
48 | 235 | parser.add_option("-c", "--config", metavar="FILE", | 236 | parser.add_option("-c", "--config", metavar="FILE", |
49 | 236 | help="Use config from this file (any command line " | 237 | help="Use config from this file (any command line " |
50 | 237 | "options override settings from the file) " | 238 | "options override settings from the file) " |
51 | 238 | "(default: '/etc/landscape/client.conf').") | 239 | "(default: '/etc/landscape/client.conf').") |
52 | 240 | parser.add_option("-d", "--data-path", metavar="PATH", | ||
53 | 241 | default="/var/lib/landscape/client/", | ||
54 | 242 | help="The directory to store data files in " | ||
55 | 243 | "(default: '/var/lib/landscape/client/').") | ||
56 | 239 | return parser | 244 | return parser |
57 | 240 | 245 | ||
58 | 241 | def get_config_filename(self): | 246 | def get_config_filename(self): |
59 | @@ -278,7 +283,6 @@ | |||
60 | 278 | 283 | ||
61 | 279 | @return: An L{OptionParser} preset for all options | 284 | @return: An L{OptionParser} preset for all options |
62 | 280 | from L{BaseConfiguration.make_parser} plus: | 285 | from L{BaseConfiguration.make_parser} plus: |
63 | 281 | - C{data_path} (C{"/var/lib/landscape/client/"}) | ||
64 | 282 | - C{quiet} (C{False}) | 286 | - C{quiet} (C{False}) |
65 | 283 | - C{log_dir} (C{"/var/log/landscape"}) | 287 | - C{log_dir} (C{"/var/log/landscape"}) |
66 | 284 | - C{log_level} (C{"info"}) | 288 | - C{log_level} (C{"info"}) |
67 | @@ -292,10 +296,6 @@ | |||
68 | 292 | - C{ignore_sigint} (C{False}) | 296 | - C{ignore_sigint} (C{False}) |
69 | 293 | """ | 297 | """ |
70 | 294 | parser = super(Configuration, self).make_parser() | 298 | parser = super(Configuration, self).make_parser() |
71 | 295 | parser.add_option("-d", "--data-path", metavar="PATH", | ||
72 | 296 | default="/var/lib/landscape/client/", | ||
73 | 297 | help="The directory to store data files in " | ||
74 | 298 | "(default: '/var/lib/landscape/client/').") | ||
75 | 299 | parser.add_option("-q", "--quiet", default=False, action="store_true", | 299 | parser.add_option("-q", "--quiet", default=False, action="store_true", |
76 | 300 | help="Do not log to the standard output.") | 300 | help="Do not log to the standard output.") |
77 | 301 | parser.add_option("-l", "--log-dir", metavar="FILE", | 301 | parser.add_option("-l", "--log-dir", metavar="FILE", |
78 | 302 | 302 | ||
79 | === modified file 'landscape/sysinfo/deployment.py' | |||
80 | --- landscape/sysinfo/deployment.py 2011-02-08 08:10:05 +0000 | |||
81 | +++ landscape/sysinfo/deployment.py 2012-09-20 09:57:20 +0000 | |||
82 | @@ -7,7 +7,7 @@ | |||
83 | 7 | from twisted.python.reflect import namedClass | 7 | from twisted.python.reflect import namedClass |
84 | 8 | from twisted.internet.defer import Deferred, maybeDeferred | 8 | from twisted.internet.defer import Deferred, maybeDeferred |
85 | 9 | 9 | ||
87 | 10 | from landscape.deployment import Configuration | 10 | from landscape.deployment import BaseConfiguration |
88 | 11 | from landscape.sysinfo.sysinfo import SysInfoPluginRegistry, format_sysinfo | 11 | from landscape.sysinfo.sysinfo import SysInfoPluginRegistry, format_sysinfo |
89 | 12 | 12 | ||
90 | 13 | 13 | ||
91 | @@ -15,7 +15,7 @@ | |||
92 | 15 | "LoggedInUsers", "LandscapeLink", "Network"] | 15 | "LoggedInUsers", "LandscapeLink", "Network"] |
93 | 16 | 16 | ||
94 | 17 | 17 | ||
96 | 18 | class SysInfoConfiguration(Configuration): | 18 | class SysInfoConfiguration(BaseConfiguration): |
97 | 19 | """Specialized configuration for the Landscape sysinfo tool.""" | 19 | """Specialized configuration for the Landscape sysinfo tool.""" |
98 | 20 | 20 | ||
99 | 21 | default_config_filenames = ("/etc/landscape/client.conf",) | 21 | default_config_filenames = ("/etc/landscape/client.conf",) |
100 | 22 | 22 | ||
101 | === modified file 'man/landscape-client.1' | |||
102 | --- man/landscape-client.1 2012-09-18 08:57:15 +0000 | |||
103 | +++ man/landscape-client.1 2012-09-20 09:57:20 +0000 | |||
104 | @@ -1,5 +1,5 @@ | |||
105 | 1 | .\"Text automatically generated by txt2man | 1 | .\"Text automatically generated by txt2man |
107 | 2 | .TH landscape-client 1 "18 September 2012" "" "" | 2 | .TH landscape-client 1 "20 September 2012" "" "" |
108 | 3 | .SH NAME | 3 | .SH NAME |
109 | 4 | \fBlandscape-client \fP- Landscape system client | 4 | \fBlandscape-client \fP- Landscape system client |
110 | 5 | \fB | 5 | \fB |
111 | 6 | 6 | ||
112 | === modified file 'man/landscape-config.1' | |||
113 | --- man/landscape-config.1 2012-09-18 08:57:15 +0000 | |||
114 | +++ man/landscape-config.1 2012-09-20 09:57:20 +0000 | |||
115 | @@ -1,5 +1,5 @@ | |||
116 | 1 | .\"Text automatically generated by txt2man | 1 | .\"Text automatically generated by txt2man |
118 | 2 | .TH landscape-config 1 "18 September 2012" "" "" | 2 | .TH landscape-config 1 "20 September 2012" "" "" |
119 | 3 | .SH NAME | 3 | .SH NAME |
120 | 4 | \fBlandscape-config \fP- configure the Landscape management client | 4 | \fBlandscape-config \fP- configure the Landscape management client |
121 | 5 | \fB | 5 | \fB |
122 | @@ -42,13 +42,11 @@ | |||
123 | 42 | .B | 42 | .B |
124 | 43 | \fB-c\fP FILE, \fB--config\fP=FILE | 43 | \fB-c\fP FILE, \fB--config\fP=FILE |
125 | 44 | Use config from this file (any command line \fIoptions\fP | 44 | Use config from this file (any command line \fIoptions\fP |
128 | 45 | override settings from the file) (default: | 45 | override settings from the file) (default: '/etc/landscape/client.conf'). |
127 | 46 | '/etc/landscape/client.conf'). | ||
129 | 47 | .TP | 46 | .TP |
130 | 48 | .B | 47 | .B |
131 | 49 | \fB-d\fP PATH, \fB--data-path\fP=PATH | 48 | \fB-d\fP PATH, \fB--data-path\fP=PATH |
134 | 50 | The directory to store data files in (default: | 49 | The directory to store data files in (default: '/var/lib/landscape/client'). |
133 | 51 | '/var/lib/landscape/client'). | ||
135 | 52 | .TP | 50 | .TP |
136 | 53 | .B | 51 | .B |
137 | 54 | \fB-q\fP, \fB--quiet\fP | 52 | \fB-q\fP, \fB--quiet\fP |
138 | @@ -56,13 +54,11 @@ | |||
139 | 56 | .TP | 54 | .TP |
140 | 57 | .B | 55 | .B |
141 | 58 | \fB-l\fP FILE, \fB--log-dir\fP=FILE | 56 | \fB-l\fP FILE, \fB--log-dir\fP=FILE |
144 | 59 | The directory to write log files to (default: | 57 | The directory to write log files to (default: '/var/log/landscape'). |
143 | 60 | '/var/log/landscape'). | ||
145 | 61 | .TP | 58 | .TP |
146 | 62 | .B | 59 | .B |
147 | 63 | \fB--log-level\fP=LOG_LEVEL | 60 | \fB--log-level\fP=LOG_LEVEL |
150 | 64 | One of 'debug', 'info', 'warning', 'error' or | 61 | One of 'debug', 'info', 'warning', 'error' or 'critical' (default: 'info'). |
149 | 65 | 'critical' (default: 'info'). | ||
151 | 66 | .TP | 62 | .TP |
152 | 67 | .B | 63 | .B |
153 | 68 | \fB--ignore-sigint\fP | 64 | \fB--ignore-sigint\fP |
154 | 69 | 65 | ||
155 | === modified file 'man/landscape-config.txt' | |||
156 | --- man/landscape-config.txt 2012-09-18 08:57:15 +0000 | |||
157 | +++ man/landscape-config.txt 2012-09-20 09:57:20 +0000 | |||
158 | @@ -26,15 +26,11 @@ | |||
159 | 26 | --version Show program's version number and exit. | 26 | --version Show program's version number and exit. |
160 | 27 | -h, --help Show this help message and exit. | 27 | -h, --help Show this help message and exit. |
161 | 28 | -c FILE, --config=FILE Use config from this file (any command line options | 28 | -c FILE, --config=FILE Use config from this file (any command line options |
166 | 29 | override settings from the file) (default: | 29 | override settings from the file) (default: '/etc/landscape/client.conf'). |
167 | 30 | '/etc/landscape/client.conf'). | 30 | -d PATH, --data-path=PATH The directory to store data files in (default: '/var/lib/landscape/client'). |
164 | 31 | -d PATH, --data-path=PATH The directory to store data files in (default: | ||
165 | 32 | '/var/lib/landscape/client'). | ||
168 | 33 | -q, --quiet Do not log to the standard output. | 31 | -q, --quiet Do not log to the standard output. |
173 | 34 | -l FILE, --log-dir=FILE The directory to write log files to (default: | 32 | -l FILE, --log-dir=FILE The directory to write log files to (default: '/var/log/landscape'). |
174 | 35 | '/var/log/landscape'). | 33 | --log-level=LOG_LEVEL One of 'debug', 'info', 'warning', 'error' or 'critical' (default: 'info'). |
171 | 36 | --log-level=LOG_LEVEL One of 'debug', 'info', 'warning', 'error' or | ||
172 | 37 | 'critical' (default: 'info'). | ||
175 | 38 | --ignore-sigint Ignore interrupt signals. | 34 | --ignore-sigint Ignore interrupt signals. |
176 | 39 | --ignore-sigusr1 Ignore SIGUSR1 signal to rotate logs. | 35 | --ignore-sigusr1 Ignore SIGUSR1 signal to rotate logs. |
177 | 40 | -a NAME, --account-name=NAME The account this computer belongs to. | 36 | -a NAME, --account-name=NAME The account this computer belongs to. |
178 | 41 | 37 | ||
179 | === modified file 'man/landscape-message.1' | |||
180 | --- man/landscape-message.1 2012-09-18 08:57:15 +0000 | |||
181 | +++ man/landscape-message.1 2012-09-20 09:57:20 +0000 | |||
182 | @@ -1,5 +1,5 @@ | |||
183 | 1 | .\"Text automatically generated by txt2man | 1 | .\"Text automatically generated by txt2man |
185 | 2 | .TH landscape-message 1 "18 September 2012" "" "" | 2 | .TH landscape-message 1 "20 September 2012" "" "" |
186 | 3 | .SH NAME | 3 | .SH NAME |
187 | 4 | \fBlandscape-message \fP- Send a message to the landscape web interface | 4 | \fBlandscape-message \fP- Send a message to the landscape web interface |
188 | 5 | \fB | 5 | \fB |
189 | 6 | 6 | ||
190 | === added file 'man/landscape-sysinfo.1' | |||
191 | --- man/landscape-sysinfo.1 1970-01-01 00:00:00 +0000 | |||
192 | +++ man/landscape-sysinfo.1 2012-09-20 09:57:20 +0000 | |||
193 | @@ -0,0 +1,132 @@ | |||
194 | 1 | .\"Text automatically generated by txt2man | ||
195 | 2 | .TH landscape-sysinfo 1 "20 September 2012" "" "" | ||
196 | 3 | .SH NAME | ||
197 | 4 | \fBlandscape-sysinfo \fP- Display a summary of the current system status | ||
198 | 5 | \fB | ||
199 | 6 | .SH SYNOPSIS | ||
200 | 7 | .nf | ||
201 | 8 | .fam C | ||
202 | 9 | |||
203 | 10 | \fBlandscape-sysinfo\fP [\fIoptions\fP] | ||
204 | 11 | |||
205 | 12 | .fam T | ||
206 | 13 | .fi | ||
207 | 14 | .fam T | ||
208 | 15 | .fi | ||
209 | 16 | .SH DESCRIPTION | ||
210 | 17 | |||
211 | 18 | \fBlandscape-sysinfo\fP is a utility that displays information about the computer it is run | ||
212 | 19 | on. This information is displayed upon login for console users | ||
213 | 20 | (ssh and terminal login supported) and can also be seen at anytime | ||
214 | 21 | by just calling \fBlandscape-sysinfo\fP from the command line. | ||
215 | 22 | .PP | ||
216 | 23 | The information displayed at login time is updated by update-motd. On | ||
217 | 24 | systems where update-motd is not available, such as Ubuntu Dapper or | ||
218 | 25 | Hardy, the output of \fBlandscape-sysinfo\fP is not included. | ||
219 | 26 | .PP | ||
220 | 27 | The output of \fBlandscape-sysinfo\fP can be controlled by enabling or | ||
221 | 28 | disabling its plugins. See below how to do that. | ||
222 | 29 | .PP | ||
223 | 30 | If the system load is higher than the number of cores, as determined by the | ||
224 | 31 | count of processor lines in /proc/cpuinfo, then | ||
225 | 32 | \fBlandscape-sysinfo\fP will not run at login time. This is to prevent it from | ||
226 | 33 | potentially making a bad situation worse by interfering with what could be an | ||
227 | 34 | administrator logging in to try to fix the problem causing the high load. | ||
228 | 35 | .SH OPTIONS | ||
229 | 36 | .TP | ||
230 | 37 | .B | ||
231 | 38 | \fB--version\fP | ||
232 | 39 | show program's version number and exit | ||
233 | 40 | .TP | ||
234 | 41 | .B | ||
235 | 42 | \fB-h\fP, \fB--help\fP | ||
236 | 43 | show this help message and exit | ||
237 | 44 | .TP | ||
238 | 45 | .B | ||
239 | 46 | \fB-c\fP FILE, \fB--config\fP=FILE | ||
240 | 47 | Use config from this file (any command line \fIoptions\fP | ||
241 | 48 | override settings from the file) (default: '/etc/landscape/client.conf'). | ||
242 | 49 | .TP | ||
243 | 50 | .B | ||
244 | 51 | \fB-d\fP PATH, \fB--data-path\fP=PATH | ||
245 | 52 | The directory to store data files in (default: '/var/lib/landscape/client/'). | ||
246 | 53 | .TP | ||
247 | 54 | .B | ||
248 | 55 | \fB--sysinfo-plugins\fP=PLUGIN_LIST | ||
249 | 56 | Comma-delimited list of sysinfo plugins to use. | ||
250 | 57 | Default is to use all plugins. | ||
251 | 58 | .TP | ||
252 | 59 | .B | ||
253 | 60 | \fB--exclude-sysinfo-plugins\fP=PLUGIN_LIST | ||
254 | 61 | Comma-delimited list of sysinfo plugins to NOT use. | ||
255 | 62 | This always take precedence over plugins to include. | ||
256 | 63 | .RE | ||
257 | 64 | .PP | ||
258 | 65 | Default plugins: Load, Disk, Memory, Temperature, Processes, LoggedInUsers, | ||
259 | 66 | LandscapeLink, Network | ||
260 | 67 | .SH CONFIGURATION FILE | ||
261 | 68 | |||
262 | 69 | Any of the long command-line \fIoptions\fP can be used as a configuration directive | ||
263 | 70 | in that configuration file, under the section [sysinfo], by replacing the hyphen | ||
264 | 71 | (-) with an underscore (_). | ||
265 | 72 | .PP | ||
266 | 73 | For example, to disable the LandscapeLink and Temperature plugins | ||
267 | 74 | without having to use the command line option, the following can be added to | ||
268 | 75 | /etc/landscape/client.conf: | ||
269 | 76 | .PP | ||
270 | 77 | .nf | ||
271 | 78 | .fam C | ||
272 | 79 | [sysinfo] | ||
273 | 80 | exclude_sysinfo_plugins = Temperature, LandscapeLink | ||
274 | 81 | |||
275 | 82 | |||
276 | 83 | .fam T | ||
277 | 84 | .fi | ||
278 | 85 | .SH EXAMPLES | ||
279 | 86 | |||
280 | 87 | This is the default configuration with all plugins enabled: | ||
281 | 88 | .PP | ||
282 | 89 | .nf | ||
283 | 90 | .fam C | ||
284 | 91 | $ landscape-sysinfo | ||
285 | 92 | System load: 0.66 Processes: 242 | ||
286 | 93 | Usage of /home: 72.0% of 27.50GB Users logged in: 1 | ||
287 | 94 | Memory usage: 31% IP address for wlan0: 10.0.1.6 | ||
288 | 95 | Swap usage: 0% IP address for virbr0: 192.168.122.1 | ||
289 | 96 | Temperature: 47 C | ||
290 | 97 | |||
291 | 98 | => There is 1 zombie process. | ||
292 | 99 | |||
293 | 100 | Graph this data and manage this system at https://landscape.canonical.com/ | ||
294 | 101 | |||
295 | 102 | .fam T | ||
296 | 103 | .fi | ||
297 | 104 | If you want to disable the temperature and Landscape plugins, you could run it like this: | ||
298 | 105 | .PP | ||
299 | 106 | .nf | ||
300 | 107 | .fam C | ||
301 | 108 | $ landscape-sysinfo --exclude-sysinfo-plugins=Temperature,LandscapeLink | ||
302 | 109 | System load: 1.08 Processes: 242 | ||
303 | 110 | Usage of /home: 72.0% of 27.50GB Users logged in: 1 | ||
304 | 111 | Memory usage: 31% IP address for wlan0: 10.0.1.6 | ||
305 | 112 | Swap usage: 0% IP address for virbr0: 192.168.122.1 | ||
306 | 113 | |||
307 | 114 | => There is 1 zombie process. | ||
308 | 115 | |||
309 | 116 | .fam T | ||
310 | 117 | .fi | ||
311 | 118 | .SH FILES | ||
312 | 119 | .TP | ||
313 | 120 | .B | ||
314 | 121 | /etc/landscape/client.conf | ||
315 | 122 | Configuration file | ||
316 | 123 | .TP | ||
317 | 124 | .B | ||
318 | 125 | /var/log/landscape/sysinfo.log | ||
319 | 126 | Log file for when the tool is run as root. This file will usually be empty, | ||
320 | 127 | unless something wrong happened. In that case, it will have more information | ||
321 | 128 | about the problem. | ||
322 | 129 | When a regular non-root user runs the tool, the log file is ~/.landscape/sysinfo.log. | ||
323 | 130 | .SH SEE ALSO | ||
324 | 131 | \fBlandscape-client\fP(1) | ||
325 | 132 | \fBupdate-motd\fP(5) | ||
326 | 0 | 133 | ||
327 | === added file 'man/landscape-sysinfo.txt' | |||
328 | --- man/landscape-sysinfo.txt 1970-01-01 00:00:00 +0000 | |||
329 | +++ man/landscape-sysinfo.txt 2012-09-20 09:57:20 +0000 | |||
330 | @@ -0,0 +1,98 @@ | |||
331 | 1 | NAME | ||
332 | 2 | landscape-sysinfo - Display a summary of the current system status | ||
333 | 3 | |||
334 | 4 | SYNOPSIS | ||
335 | 5 | |||
336 | 6 | landscape-sysinfo [options] | ||
337 | 7 | |||
338 | 8 | DESCRIPTION | ||
339 | 9 | |||
340 | 10 | landscape-sysinfo is a utility that displays information about the computer it is run | ||
341 | 11 | on. This information is displayed upon login for console users | ||
342 | 12 | (ssh and terminal login supported) and can also be seen at anytime | ||
343 | 13 | by just calling landscape-sysinfo from the command line. | ||
344 | 14 | |||
345 | 15 | The information displayed at login time is updated by update-motd. On | ||
346 | 16 | systems where update-motd is not available, such as Ubuntu Dapper or | ||
347 | 17 | Hardy, the output of landscape-sysinfo is not included. | ||
348 | 18 | |||
349 | 19 | The output of landscape-sysinfo can be controlled by enabling or | ||
350 | 20 | disabling its plugins. See below how to do that. | ||
351 | 21 | |||
352 | 22 | If the system load is higher than the number of cores, as determined by the | ||
353 | 23 | count of processor lines in /proc/cpuinfo, then | ||
354 | 24 | landscape-sysinfo will not run at login time. This is to prevent it from | ||
355 | 25 | potentially making a bad situation worse by interfering with what could be an | ||
356 | 26 | administrator logging in to try to fix the problem causing the high load. | ||
357 | 27 | |||
358 | 28 | OPTIONS | ||
359 | 29 | --version show program's version number and exit | ||
360 | 30 | -h, --help show this help message and exit | ||
361 | 31 | -c FILE, --config=FILE | ||
362 | 32 | Use config from this file (any command line options | ||
363 | 33 | override settings from the file) (default: '/etc/landscape/client.conf'). | ||
364 | 34 | -d PATH, --data-path=PATH | ||
365 | 35 | The directory to store data files in (default: '/var/lib/landscape/client/'). | ||
366 | 36 | --sysinfo-plugins=PLUGIN_LIST | ||
367 | 37 | Comma-delimited list of sysinfo plugins to use. | ||
368 | 38 | Default is to use all plugins. | ||
369 | 39 | --exclude-sysinfo-plugins=PLUGIN_LIST | ||
370 | 40 | Comma-delimited list of sysinfo plugins to NOT use. | ||
371 | 41 | This always take precedence over plugins to include. | ||
372 | 42 | |||
373 | 43 | Default plugins: Load, Disk, Memory, Temperature, Processes, LoggedInUsers, | ||
374 | 44 | LandscapeLink, Network | ||
375 | 45 | |||
376 | 46 | CONFIGURATION FILE | ||
377 | 47 | |||
378 | 48 | Any of the long command-line options can be used as a configuration directive | ||
379 | 49 | in that configuration file, under the section [sysinfo], by replacing the hyphen | ||
380 | 50 | (-) with an underscore (_). | ||
381 | 51 | |||
382 | 52 | For example, to disable the LandscapeLink and Temperature plugins | ||
383 | 53 | without having to use the command line option, the following can be added to | ||
384 | 54 | /etc/landscape/client.conf: | ||
385 | 55 | |||
386 | 56 | [sysinfo] | ||
387 | 57 | exclude_sysinfo_plugins = Temperature, LandscapeLink | ||
388 | 58 | |||
389 | 59 | |||
390 | 60 | EXAMPLES | ||
391 | 61 | |||
392 | 62 | This is the default configuration with all plugins enabled: | ||
393 | 63 | |||
394 | 64 | $ landscape-sysinfo | ||
395 | 65 | System load: 0.66 Processes: 242 | ||
396 | 66 | Usage of /home: 72.0% of 27.50GB Users logged in: 1 | ||
397 | 67 | Memory usage: 31% IP address for wlan0: 10.0.1.6 | ||
398 | 68 | Swap usage: 0% IP address for virbr0: 192.168.122.1 | ||
399 | 69 | Temperature: 47 C | ||
400 | 70 | |||
401 | 71 | => There is 1 zombie process. | ||
402 | 72 | |||
403 | 73 | Graph this data and manage this system at https://landscape.canonical.com/ | ||
404 | 74 | |||
405 | 75 | If you want to disable the temperature and Landscape plugins, you could run it like this: | ||
406 | 76 | |||
407 | 77 | $ landscape-sysinfo --exclude-sysinfo-plugins=Temperature,LandscapeLink | ||
408 | 78 | System load: 1.08 Processes: 242 | ||
409 | 79 | Usage of /home: 72.0% of 27.50GB Users logged in: 1 | ||
410 | 80 | Memory usage: 31% IP address for wlan0: 10.0.1.6 | ||
411 | 81 | Swap usage: 0% IP address for virbr0: 192.168.122.1 | ||
412 | 82 | |||
413 | 83 | => There is 1 zombie process. | ||
414 | 84 | |||
415 | 85 | FILES | ||
416 | 86 | /etc/landscape/client.conf | ||
417 | 87 | Configuration file | ||
418 | 88 | |||
419 | 89 | /var/log/landscape/sysinfo.log | ||
420 | 90 | Log file for when the tool is run as root. This file will usually be empty, | ||
421 | 91 | unless something wrong happened. In that case, it will have more information | ||
422 | 92 | about the problem. | ||
423 | 93 | When a regular non-root user runs the tool, the log file is ~/.landscape/sysinfo.log. | ||
424 | 94 | |||
425 | 95 | SEE ALSO | ||
426 | 96 | landscape-client(1) | ||
427 | 97 | update-motd(5) | ||
428 | 98 |
+1 looks good
Right-justification should be turned off. There are spaces unevenly interspersed in the text.
The FILES list has a blank line under each file so it looks like the explanation could either belong to the file above or the file below. This is a minor nitpick and I don't care if it gets fixed.