Ignore:
Timestamp:
Apr 9, 2010, 3:51:41 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.5.x: trunk update to 3.5.2

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/docs/manpages/eventlogadm.8

    r414 r429  
    1 '\" t
    21.\"     Title: eventlogadm
    32.\"    Author: [see the "AUTHOR" section]
    4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
    5 .\"      Date: 02/19/2010
     3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
     4.\"      Date: 03/30/2010
    65.\"    Manual: System Administration tools
    76.\"    Source: Samba 3.5
    87.\"  Language: English
    98.\"
    10 .TH "EVENTLOGADM" "8" "02/19/2010" "Samba 3\&.5" "System Administration tools"
     9.TH "EVENTLOGADM" "8" "03/30/2010" "Samba 3\&.5" "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..
    11159.\" -----------------------------------------------------------------
    12160.\" * set default formatting
     
    19167.\" * MAIN CONTENT STARTS HERE *
    20168.\" -----------------------------------------------------------------
    21 .SH "NAME"
     169.SH "Name"
    22170eventlogadm \- push records into the Samba event log store
    23 .SH "SYNOPSIS"
     171.SH "Synopsis"
     172.fam C
    24173.HP \w'\ 'u
    25 eventlogadm [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ addsource\ \fIEVENTLOG\fR\ \fISOURCENAME\fR\ \fIMSGFILE\fR
     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
    26177.HP \w'\ 'u
    27 eventlogadm [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ write\ \fIEVENTLOG\fR
     178\FCeventlogadm\F[] [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ \FCwrite\F[]\ \fIEVENTLOG\fR
     179.fam
     180.fam C
    28181.HP \w'\ 'u
    29 eventlogadm [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ dump\ \fIEVENTLOG\fR\ \fIRECORD_NUMBER\fR
     182\FCeventlogadm\F[] [\fB\-d\fR] [\fB\-h\fR] \fB\-o\fR\ \FCdump\F[]\ \fIEVENTLOG\fR\ \fIRECORD_NUMBER\fR
     183.fam
    30184.SH "DESCRIPTION"
    31185.PP
     
    34188suite\&.
    35189.PP
    36 eventlogadm
     190\FCeventlogadm\F[]
    37191is 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\&.
    38192.SH "OPTIONS"
     
    41195.RS 4
    42196The
    43 \-d
     197\FC\-d\F[]
    44198option causes
    45 eventlogadm
     199\FCeventlogadm\F[]
    46200to emit debugging information\&.
    47201.RE
    48202.PP
    49 \fB\-o\fR addsource \fIEVENTLOG\fR \fISOURCENAME\fR \fIMSGFILE\fR
     203\fB\-o\fR \FCaddsource\F[] \fIEVENTLOG\fR \fISOURCENAME\fR \fIMSGFILE\fR
    50204.RS 4
    51205The
    52 \-o addsource
     206\FC\-o addsource\F[]
    53207option creates a new event log source\&.
    54208.RE
    55209.PP
    56 \fB\-o\fR write \fIEVENTLOG\fR
     210\fB\-o\fR \FCwrite\F[] \fIEVENTLOG\fR
    57211.RS 4
    58212The
    59 \-o write
     213\FC\-o write\F[]
    60214reads event log records from standard input and writes them to the Samba event log store named by EVENTLOG\&.
    61215.RE
    62216.PP
    63 \fB\-o\fR dump \fIEVENTLOG\fR \fIRECORD_NUMBER\fR
     217\fB\-o\fR \FCdump\F[] \fIEVENTLOG\fR \fIRECORD_NUMBER\fR
    64218.RS 4
    65219The
    66 \-o dump
     220\FC\-o dump\F[]
    67221reads event log records from a EVENTLOG tdb and dumps them to standard output on screen\&.
    68222.RE
     
    75229.PP
    76230For the write operation,
    77 eventlogadm
     231\FCeventlogadm\F[]
    78232expects 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\&.
    79233.PP
     
    89243.\}
    90244
    91 LEN
     245\FCLEN\F[]
    92246\- This field should be 0, since
    93 eventlogadm
     247\FCeventlogadm\F[]
    94248will calculate this value\&.
    95249.RE
     
    104258.\}
    105259
    106 RS1
     260\FCRS1\F[]
    107261\- This must be the value 1699505740\&.
    108262.RE
     
    117271.\}
    118272
    119 RCN
     273\FCRCN\F[]
    120274\- This field should be 0\&.
    121275.RE
     
    130284.\}
    131285
    132 TMG
     286\FCTMG\F[]
    133287\- The time the eventlog record was generated; format is the number of seconds since 00:00:00 January 1, 1970, UTC\&.
    134288.RE
     
    143297.\}
    144298
    145 TMW
     299\FCTMW\F[]
    146300\- The time the eventlog record was written; format is the number of seconds since 00:00:00 January 1, 1970, UTC\&.
    147301.RE
     
    156310.\}
    157311
    158 EID
     312\FCEID\F[]
    159313\- The eventlog ID\&.
    160314.RE
     
    169323.\}
    170324
    171 ETP
     325\FCETP\F[]
    172326\- The event type \-\- one of "INFO", "ERROR", "WARNING", "AUDIT SUCCESS" or "AUDIT FAILURE"\&.
    173327.RE
     
    182336.\}
    183337
    184 ECT
     338\FCECT\F[]
    185339\- The event category; this depends on the message file\&. It is primarily used as a means of filtering in the eventlog viewer\&.
    186340.RE
     
    195349.\}
    196350
    197 RS2
     351\FCRS2\F[]
    198352\- This field should be 0\&.
    199353.RE
     
    208362.\}
    209363
    210 CRN
     364\FCCRN\F[]
    211365\- This field should be 0\&.
    212366.RE
     
    221375.\}
    222376
    223 USL
     377\FCUSL\F[]
    224378\- This field should be 0\&.
    225379.RE
     
    234388.\}
    235389
    236 SRC
     390\FCSRC\F[]
    237391\- 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\&.
    238392.RE
     
    247401.\}
    248402
    249 SRN
     403\FCSRN\F[]
    250404\- The name of the machine on which the eventlog was generated\&. This is typically the host name\&.
    251405.RE
     
    260414.\}
    261415
    262 STR
     416\FCSTR\F[]
    263417\- The text associated with the eventlog\&. There may be more than one string in a record\&.
    264418.RE
     
    273427.\}
    274428
    275 DAT
     429\FCDAT\F[]
    276430\- This field should be left unset\&.
    277431.SH "EXAMPLES"
    278432.PP
    279433An example of the record format accepted by
    280 eventlogadm:
     434\FCeventlogadm\F[]:
    281435.sp
    282436.if n \{\
    283437.RS 4
    284438.\}
     439.fam C
     440.ps -1
    285441.nf
     442.if t \{\
     443.sp -1
     444.\}
     445.BB lightgray adjust-for-leading-newline
     446.sp -1
     447
    286448        LEN: 0
    287449        RS1: 1699505740
     
    300462        DAT:
    301463       
    302 .fi
     464.EB lightgray adjust-for-leading-newline
     465.if t \{\
     466.sp 1
     467.\}
     468.fi
     469.fam
     470.ps +1
    303471.if n \{\
    304472.RE
     
    310478.RS 4
    311479.\}
     480.fam C
     481.ps -1
    312482.nf
     483.if t \{\
     484.sp -1
     485.\}
     486.BB lightgray adjust-for-leading-newline
     487.sp -1
     488
    313489        eventlogadm \-o addsource Application MyApplication | \e\e
    314490                %SystemRoot%/system32/MyApplication\&.dll
    315491       
    316 .fi
     492.EB lightgray adjust-for-leading-newline
     493.if t \{\
     494.sp 1
     495.\}
     496.fi
     497.fam
     498.ps +1
    317499.if n \{\
    318500.RE
     
    324506.RS 4
    325507.\}
     508.fam C
     509.ps -1
    326510.nf
     511.if t \{\
     512.sp -1
     513.\}
     514.BB lightgray adjust-for-leading-newline
     515.sp -1
     516
    327517        tail \-f /var/log/messages | \e\e
    328518                my_program_to_parse_into_eventlog_records | \e\e
    329519                eventlogadm SystemLogEvents
    330520       
    331 .fi
     521.EB lightgray adjust-for-leading-newline
     522.if t \{\
     523.sp 1
     524.\}
     525.fi
     526.fam
     527.ps +1
    332528.if n \{\
    333529.RE
Note: See TracChangeset for help on using the changeset viewer.