Changeset 231 for branches/samba-3.2.x/docs/manpages/eventlogadm.8
- Timestamp:
- May 27, 2009, 9:08:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/docs/manpages/eventlogadm.8
r229 r231 1 1 .\" Title: eventlogadm 2 .\" Author: 3 .\" Generator: DocBook XSL Stylesheets v1.7 3.1<http://docbook.sf.net/>4 .\" Date: 12/19/20082 .\" Author: [see the "AUTHOR" section] 3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> 4 .\" Date: 02/03/2009 5 5 .\" Manual: System Administration tools 6 6 .\" Source: Samba 3.2 7 .\" Language: English 7 8 .\" 8 .TH "EVENTLOGADM" "8" "12/19/2008" "Samba 3\.2" "System Administration tools" 9 .TH "EVENTLOGADM" "8" "02/03/2009" "Samba 3\&.2" "System Administration tools" 10 .\" ----------------------------------------------------------------- 11 .\" * (re)Define some macros 12 .\" ----------------------------------------------------------------- 13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 14 .\" toupper - uppercase a string (locale-aware) 15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 16 .de toupper 17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ 18 \\$* 19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz 20 .. 21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22 .\" SH-xref - format a cross-reference to an SH section 23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24 .de SH-xref 25 .ie n \{\ 26 .\} 27 .toupper \\$* 28 .el \{\ 29 \\$* 30 .\} 31 .. 32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 .\" SH - level-one heading that works better for non-TTY output 34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 .de1 SH 36 .\" put an extra blank line of space above the head in non-TTY output 37 .if t \{\ 38 .sp 1 39 .\} 40 .sp \\n[PD]u 41 .nr an-level 1 42 .set-an-margin 43 .nr an-prevailing-indent \\n[IN] 44 .fi 45 .in \\n[an-margin]u 46 .ti 0 47 .HTML-TAG ".NH \\n[an-level]" 48 .it 1 an-trap 49 .nr an-no-space-flag 1 50 .nr an-break-flag 1 51 \." make the size of the head bigger 52 .ps +3 53 .ft B 54 .ne (2v + 1u) 55 .ie n \{\ 56 .\" if n (TTY output), use uppercase 57 .toupper \\$* 58 .\} 59 .el \{\ 60 .nr an-break-flag 0 61 .\" if not n (not TTY), use normal case (not uppercase) 62 \\$1 63 .in \\n[an-margin]u 64 .ti 0 65 .\" if not n (not TTY), put a border/line under subheading 66 .sp -.6 67 \l'\n(.lu' 68 .\} 69 .. 70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 .\" SS - level-two heading that works better for non-TTY output 72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 .de1 SS 74 .sp \\n[PD]u 75 .nr an-level 1 76 .set-an-margin 77 .nr an-prevailing-indent \\n[IN] 78 .fi 79 .in \\n[IN]u 80 .ti \\n[SN]u 81 .it 1 an-trap 82 .nr an-no-space-flag 1 83 .nr an-break-flag 1 84 .ps \\n[PS-SS]u 85 \." make the size of the head bigger 86 .ps +2 87 .ft B 88 .ne (2v + 1u) 89 .if \\n[.$] \&\\$* 90 .. 91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 92 .\" BB/BE - put background/screen (filled box) around block of text 93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 .de BB 95 .if t \{\ 96 .sp -.5 97 .br 98 .in +2n 99 .ll -2n 100 .gcolor red 101 .di BX 102 .\} 103 .. 104 .de EB 105 .if t \{\ 106 .if "\\$2"adjust-for-leading-newline" \{\ 107 .sp -1 108 .\} 109 .br 110 .di 111 .in 112 .ll 113 .gcolor 114 .nr BW \\n(.lu-\\n(.i 115 .nr BH \\n(dn+.5v 116 .ne \\n(BHu+.5v 117 .ie "\\$2"adjust-for-leading-newline" \{\ 118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 119 .\} 120 .el \{\ 121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 122 .\} 123 .in 0 124 .sp -.5v 125 .nf 126 .BX 127 .in 128 .sp .5v 129 .fi 130 .\} 131 .. 132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 .\" BM/EM - put colored marker in margin next to block of text 134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 135 .de BM 136 .if t \{\ 137 .br 138 .ll -2n 139 .gcolor red 140 .di BX 141 .\} 142 .. 143 .de EM 144 .if t \{\ 145 .br 146 .di 147 .ll 148 .gcolor 149 .nr BH \\n(dn 150 .ne \\n(BHu 151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] 152 .in 0 153 .nf 154 .BX 155 .in 156 .fi 157 .\} 158 .. 159 .\" ----------------------------------------------------------------- 160 .\" * set default formatting 161 .\" ----------------------------------------------------------------- 9 162 .\" disable hyphenation 10 163 .nh 11 164 .\" disable justification (adjust text to left margin only) 12 165 .ad l 13 .SH "NAME" 14 eventlogadm - push records into the Samba event log store 15 .SH "SYNOPSIS" 16 .HP 1 17 eventlogadm [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ addsource\ \fIEVENTLOG\fR\ \fISOURCENAME\fR\ \fIMSGFILE\fR 18 .HP 1 19 eventlogadm [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ write\ \fIEVENTLOG\fR 166 .\" ----------------------------------------------------------------- 167 .\" * MAIN CONTENT STARTS HERE * 168 .\" ----------------------------------------------------------------- 169 .SH "Name" 170 eventlogadm \- push records into the Samba event log store 171 .SH "Synopsis" 172 .fam C 173 .HP \w'\ 'u 174 \FCeventlogadm\F[] [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ \FCaddsource\F[]\ \fIEVENTLOG\fR\ \fISOURCENAME\fR\ \fIMSGFILE\fR 175 .fam 176 .fam C 177 .HP \w'\ 'u 178 \FCeventlogadm\F[] [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ \FCwrite\F[]\ \fIEVENTLOG\fR 179 .fam 20 180 .SH "DESCRIPTION" 21 181 .PP 22 182 This tool is part of the 23 183 \fBsamba\fR(1) 24 suite\ .25 .PP 26 eventlogadm 27 is a filter that accepts formatted event log records on standard input and writes them to the Samba event log store\ . Windows client can then manipulate these record using the usual administration tools\.184 suite\&. 185 .PP 186 \FCeventlogadm\F[] 187 is a filter that accepts formatted event log records on standard input and writes them to the Samba event log store\&. Windows client can then manipulate these record using the usual administration tools\&. 28 188 .SH "OPTIONS" 29 189 .PP … … 31 191 .RS 4 32 192 The 33 \ -d193 \FC\-d\F[] 34 194 option causes 35 eventlogadm 36 to emit debugging information\ .37 .RE 38 .PP 39 \fB\-o\fR addsource\fIEVENTLOG\fR \fISOURCENAME\fR \fIMSGFILE\fR195 \FCeventlogadm\F[] 196 to emit debugging information\&. 197 .RE 198 .PP 199 \fB\-o\fR \FCaddsource\F[] \fIEVENTLOG\fR \fISOURCENAME\fR \fIMSGFILE\fR 40 200 .RS 4 41 201 The 42 \ -o addsource43 option creates a new event log source\ .44 .RE 45 .PP 46 \fB\-o\fR write\fIEVENTLOG\fR202 \FC\-o addsource\F[] 203 option creates a new event log source\&. 204 .RE 205 .PP 206 \fB\-o\fR \FCwrite\F[] \fIEVENTLOG\fR 47 207 .RS 4 48 208 The 49 \ -o write50 reads event log records from standard input and writes them to the Samba event log store named by EVENTLOG\.209 \FC\-o write\F[] 210 reads event log records from standard input and writes them to the Samba event log store named by EVENTLOG\&. 51 211 .RE 52 212 .PP 53 213 \fB\-h\fR 54 214 .RS 4 55 Print usage information\ .215 Print usage information\&. 56 216 .RE 57 217 .SH "EVENTLOG RECORD FORMAT" 58 218 .PP 59 219 For the write operation, 60 eventlogadm 61 expects to be able to read structured records from standard input\ . These records are a sequence of lines, with the record key and data separated by a colon character\. Records are separated by at least one or more blank line\.220 \FCeventlogadm\F[] 221 expects to be able to read structured records from standard input\&. These records are a sequence of lines, with the record key and data separated by a colon character\&. Records are separated by at least one or more blank line\&. 62 222 .PP 63 223 The event log record field are: … … 72 232 .\} 73 233 74 LEN 234 \FCLEN\F[] 75 235 \- This field should be 0, since 76 eventlogadm 77 will calculate this value\ .78 .RE 79 .sp 80 .RS 4 81 .ie n \{\ 82 \h'-04'\(bu\h'+03'\c 83 .\} 84 .el \{\ 85 .sp -1 86 .IP \(bu 2.3 87 .\} 88 89 RS1 90 \- This must be the value 1699505740\ .91 .RE 92 .sp 93 .RS 4 94 .ie n \{\ 95 \h'-04'\(bu\h'+03'\c 96 .\} 97 .el \{\ 98 .sp -1 99 .IP \(bu 2.3 100 .\} 101 102 RCN 103 \- This field should be 0\ .104 .RE 105 .sp 106 .RS 4 107 .ie n \{\ 108 \h'-04'\(bu\h'+03'\c 109 .\} 110 .el \{\ 111 .sp -1 112 .IP \(bu 2.3 113 .\} 114 115 TMG 116 \- The time the eventlog record was generated; format is the number of seconds since 00:00:00 January 1, 1970, UTC\ .117 .RE 118 .sp 119 .RS 4 120 .ie n \{\ 121 \h'-04'\(bu\h'+03'\c 122 .\} 123 .el \{\ 124 .sp -1 125 .IP \(bu 2.3 126 .\} 127 128 TMW 129 \- The time the eventlog record was written; format is the number of seconds since 00:00:00 January 1, 1970, UTC\ .130 .RE 131 .sp 132 .RS 4 133 .ie n \{\ 134 \h'-04'\(bu\h'+03'\c 135 .\} 136 .el \{\ 137 .sp -1 138 .IP \(bu 2.3 139 .\} 140 141 EID 142 \- The eventlog ID\ .143 .RE 144 .sp 145 .RS 4 146 .ie n \{\ 147 \h'-04'\(bu\h'+03'\c 148 .\} 149 .el \{\ 150 .sp -1 151 .IP \(bu 2.3 152 .\} 153 154 ETP 155 \- The event type \-\- one of "INFO", "ERROR", "WARNING", "AUDIT SUCCESS" or "AUDIT FAILURE"\ .156 .RE 157 .sp 158 .RS 4 159 .ie n \{\ 160 \h'-04'\(bu\h'+03'\c 161 .\} 162 .el \{\ 163 .sp -1 164 .IP \(bu 2.3 165 .\} 166 167 ECT 168 \- The event category; this depends on the message file\ . It is primarily used as a means of filtering in the eventlog viewer\.169 .RE 170 .sp 171 .RS 4 172 .ie n \{\ 173 \h'-04'\(bu\h'+03'\c 174 .\} 175 .el \{\ 176 .sp -1 177 .IP \(bu 2.3 178 .\} 179 180 RS2 181 \- This field should be 0\ .182 .RE 183 .sp 184 .RS 4 185 .ie n \{\ 186 \h'-04'\(bu\h'+03'\c 187 .\} 188 .el \{\ 189 .sp -1 190 .IP \(bu 2.3 191 .\} 192 193 CRN 194 \- This field should be 0\ .195 .RE 196 .sp 197 .RS 4 198 .ie n \{\ 199 \h'-04'\(bu\h'+03'\c 200 .\} 201 .el \{\ 202 .sp -1 203 .IP \(bu 2.3 204 .\} 205 206 USL 207 \- This field should be 0\ .208 .RE 209 .sp 210 .RS 4 211 .ie n \{\ 212 \h'-04'\(bu\h'+03'\c 213 .\} 214 .el \{\ 215 .sp -1 216 .IP \(bu 2.3 217 .\} 218 219 SRC 220 \- This field contains the source name associated with the event log\ . If a message file is used with an event log, there will be a registry entry for associating this source name with a message file DLL\.221 .RE 222 .sp 223 .RS 4 224 .ie n \{\ 225 \h'-04'\(bu\h'+03'\c 226 .\} 227 .el \{\ 228 .sp -1 229 .IP \(bu 2.3 230 .\} 231 232 SRN 233 \- he name of the machine on which the eventlog was generated\. This is typically the host name\.234 .RE 235 .sp 236 .RS 4 237 .ie n \{\ 238 \h'-04'\(bu\h'+03'\c 239 .\} 240 .el \{\ 241 .sp -1 242 .IP \(bu 2.3 243 .\} 244 245 STR 246 \- The text associated with the eventlog\ . There may be more than one string in a record\.247 .RE 248 .sp 249 .RS 4 250 .ie n \{\ 251 \h'-04'\(bu\h'+03'\c 252 .\} 253 .el \{\ 254 .sp -1 255 .IP \(bu 2.3 256 .\} 257 258 DAT 259 \- This field should be left unset\ .236 \FCeventlogadm\F[] 237 will calculate this value\&. 238 .RE 239 .sp 240 .RS 4 241 .ie n \{\ 242 \h'-04'\(bu\h'+03'\c 243 .\} 244 .el \{\ 245 .sp -1 246 .IP \(bu 2.3 247 .\} 248 249 \FCRS1\F[] 250 \- This must be the value 1699505740\&. 251 .RE 252 .sp 253 .RS 4 254 .ie n \{\ 255 \h'-04'\(bu\h'+03'\c 256 .\} 257 .el \{\ 258 .sp -1 259 .IP \(bu 2.3 260 .\} 261 262 \FCRCN\F[] 263 \- This field should be 0\&. 264 .RE 265 .sp 266 .RS 4 267 .ie n \{\ 268 \h'-04'\(bu\h'+03'\c 269 .\} 270 .el \{\ 271 .sp -1 272 .IP \(bu 2.3 273 .\} 274 275 \FCTMG\F[] 276 \- The time the eventlog record was generated; format is the number of seconds since 00:00:00 January 1, 1970, UTC\&. 277 .RE 278 .sp 279 .RS 4 280 .ie n \{\ 281 \h'-04'\(bu\h'+03'\c 282 .\} 283 .el \{\ 284 .sp -1 285 .IP \(bu 2.3 286 .\} 287 288 \FCTMW\F[] 289 \- The time the eventlog record was written; format is the number of seconds since 00:00:00 January 1, 1970, UTC\&. 290 .RE 291 .sp 292 .RS 4 293 .ie n \{\ 294 \h'-04'\(bu\h'+03'\c 295 .\} 296 .el \{\ 297 .sp -1 298 .IP \(bu 2.3 299 .\} 300 301 \FCEID\F[] 302 \- The eventlog ID\&. 303 .RE 304 .sp 305 .RS 4 306 .ie n \{\ 307 \h'-04'\(bu\h'+03'\c 308 .\} 309 .el \{\ 310 .sp -1 311 .IP \(bu 2.3 312 .\} 313 314 \FCETP\F[] 315 \- The event type \-\- one of "INFO", "ERROR", "WARNING", "AUDIT SUCCESS" or "AUDIT FAILURE"\&. 316 .RE 317 .sp 318 .RS 4 319 .ie n \{\ 320 \h'-04'\(bu\h'+03'\c 321 .\} 322 .el \{\ 323 .sp -1 324 .IP \(bu 2.3 325 .\} 326 327 \FCECT\F[] 328 \- The event category; this depends on the message file\&. It is primarily used as a means of filtering in the eventlog viewer\&. 329 .RE 330 .sp 331 .RS 4 332 .ie n \{\ 333 \h'-04'\(bu\h'+03'\c 334 .\} 335 .el \{\ 336 .sp -1 337 .IP \(bu 2.3 338 .\} 339 340 \FCRS2\F[] 341 \- This field should be 0\&. 342 .RE 343 .sp 344 .RS 4 345 .ie n \{\ 346 \h'-04'\(bu\h'+03'\c 347 .\} 348 .el \{\ 349 .sp -1 350 .IP \(bu 2.3 351 .\} 352 353 \FCCRN\F[] 354 \- This field should be 0\&. 355 .RE 356 .sp 357 .RS 4 358 .ie n \{\ 359 \h'-04'\(bu\h'+03'\c 360 .\} 361 .el \{\ 362 .sp -1 363 .IP \(bu 2.3 364 .\} 365 366 \FCUSL\F[] 367 \- This field should be 0\&. 368 .RE 369 .sp 370 .RS 4 371 .ie n \{\ 372 \h'-04'\(bu\h'+03'\c 373 .\} 374 .el \{\ 375 .sp -1 376 .IP \(bu 2.3 377 .\} 378 379 \FCSRC\F[] 380 \- This field contains the source name associated with the event log\&. If a message file is used with an event log, there will be a registry entry for associating this source name with a message file DLL\&. 381 .RE 382 .sp 383 .RS 4 384 .ie n \{\ 385 \h'-04'\(bu\h'+03'\c 386 .\} 387 .el \{\ 388 .sp -1 389 .IP \(bu 2.3 390 .\} 391 392 \FCSRN\F[] 393 \- The name of the machine on which the eventlog was generated\&. This is typically the host name\&. 394 .RE 395 .sp 396 .RS 4 397 .ie n \{\ 398 \h'-04'\(bu\h'+03'\c 399 .\} 400 .el \{\ 401 .sp -1 402 .IP \(bu 2.3 403 .\} 404 405 \FCSTR\F[] 406 \- The text associated with the eventlog\&. There may be more than one string in a record\&. 407 .RE 408 .sp 409 .RS 4 410 .ie n \{\ 411 \h'-04'\(bu\h'+03'\c 412 .\} 413 .el \{\ 414 .sp -1 415 .IP \(bu 2.3 416 .\} 417 418 \FCDAT\F[] 419 \- This field should be left unset\&. 260 420 .SH "EXAMPLES" 261 421 .PP 262 422 An example of the record format accepted by 263 eventlogadm: 264 .sp 265 .RS 4 423 \FCeventlogadm\F[]: 424 .sp 425 .if n \{\ 426 .RS 4 427 .\} 428 .fam C 429 .ps -1 266 430 .nf 431 .if t \{\ 432 .sp -1 433 .\} 434 .BB lightgray adjust-for-leading-newline 435 .sp -1 436 267 437 LEN: 0 268 438 RS1: 1699505740 … … 278 448 SRC: cron 279 449 SRN: dmlinux 280 STR: (root) CMD ( rm \-f /var/spool/cron/lastrun/cron\ .hourly)450 STR: (root) CMD ( rm \-f /var/spool/cron/lastrun/cron\&.hourly) 281 451 DAT: 282 452 283 .fi 284 .RE 453 .EB lightgray adjust-for-leading-newline 454 .if t \{\ 455 .sp 1 456 .\} 457 .fi 458 .fam 459 .ps +1 460 .if n \{\ 461 .RE 462 .\} 285 463 .PP 286 464 Set up an eventlog source, specifying a message file DLL: 287 465 .sp 288 .RS 4 466 .if n \{\ 467 .RS 4 468 .\} 469 .fam C 470 .ps -1 289 471 .nf 472 .if t \{\ 473 .sp -1 474 .\} 475 .BB lightgray adjust-for-leading-newline 476 .sp -1 477 290 478 eventlogadm \-o addsource Application MyApplication | \e\e 291 %SystemRoot%/system32/MyApplication\ .dll479 %SystemRoot%/system32/MyApplication\&.dll 292 480 293 .fi 294 .RE 481 .EB lightgray adjust-for-leading-newline 482 .if t \{\ 483 .sp 1 484 .\} 485 .fi 486 .fam 487 .ps +1 488 .if n \{\ 489 .RE 490 .\} 295 491 .PP 296 492 Filter messages from the system log into an event log: 297 493 .sp 298 .RS 4 494 .if n \{\ 495 .RS 4 496 .\} 497 .fam C 498 .ps -1 299 499 .nf 500 .if t \{\ 501 .sp -1 502 .\} 503 .BB lightgray adjust-for-leading-newline 504 .sp -1 505 300 506 tail \-f /var/log/messages | \e\e 301 507 my_program_to_parse_into_eventlog_records | \e\e 302 508 eventlogadm SystemLogEvents 303 509 304 .fi 305 .RE 510 .EB lightgray adjust-for-leading-newline 511 .if t \{\ 512 .sp 1 513 .\} 514 .fi 515 .fam 516 .ps +1 517 .if n \{\ 518 .RE 519 .\} 306 520 .SH "VERSION" 307 521 .PP 308 This man page is correct for version 3\ .0\.25 of the Samba suite\.522 This man page is correct for version 3\&.0\&.25 of the Samba suite\&. 309 523 .SH "AUTHOR" 310 524 .PP 311 The original Samba software and related utilities were created by Andrew Tridgell\ . Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\.525 The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
Note:
See TracChangeset
for help on using the changeset viewer.