source: vendor/current/docs/manpages/log2pcap.1

Last change on this file was 989, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.7

File size: 3.2 KB
Line 
1'\" t
2.\" Title: log2pcap
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5.\" Date: 10/25/2016
6.\" Manual: User Commands
7.\" Source: Samba 4.4
8.\" Language: English
9.\"
10.TH "LOG2PCAP" "1" "10/25/2016" "Samba 4\&.4" "User Commands"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
30.SH "NAME"
31log2pcap \- Extract network traces from Samba log files
32.SH "SYNOPSIS"
33.HP \w'\ 'u
34log2pcap [\-h] [\-q] [logfile] [pcap_file]
35.SH "DESCRIPTION"
36.PP
37This tool is part of the
38\fBsamba\fR(7)
39suite\&.
40.PP
41log2pcap
42reads in a samba log file and generates a pcap file (readable by most sniffers, such as ethereal or tcpdump) based on the packet dumps in the log file\&.
43.PP
44The log file must have a
45\fIlog level\fR
46of at least
47\fB5\fR
48to get the SMB header/parameters right,
49\fB10\fR
50to get the first 512 data bytes of the packet and
51\fB50\fR
52to get the whole packet\&.
53.SH "OPTIONS"
54.PP
55\-h
56.RS 4
57If this parameter is specified the output file will be a hex dump, in a format that is readable by the
58text2pcap
59utility\&.
60.RE
61.PP
62\-q
63.RS 4
64Be quiet\&. No warning messages about missing or incomplete data will be given\&.
65.RE
66.PP
67logfile
68.RS 4
69Samba log file\&. log2pcap will try to read the log from stdin if the log file is not specified\&.
70.RE
71.PP
72pcap_file
73.RS 4
74Name of the output file to write the pcap (or hexdump) data to\&. If this argument is not specified, output data will be written to stdout\&.
75.RE
76.SH "EXAMPLES"
77.PP
78Extract all network traffic from all samba log files:
79.PP
80.if n \{\
81.RS 4
82.\}
83.nf
84 $ log2pcap < /var/log/* > trace\&.pcap
85
86.fi
87.if n \{\
88.RE
89.\}
90.PP
91Convert to pcap using text2pcap:
92.PP
93.if n \{\
94.RS 4
95.\}
96.nf
97 $ log2pcap \-h samba\&.log | text2pcap \-T 139,139 \- trace\&.pcap
98
99.fi
100.if n \{\
101.RE
102.\}
103.SH "VERSION"
104.PP
105This man page is correct for version 3 of the Samba suite\&.
106.SH "BUGS"
107.PP
108Only SMB data is extracted from the samba logs, no LDAP, NetBIOS lookup or other data\&.
109.PP
110The generated TCP and IP headers don\*(Aqt contain a valid checksum\&.
111.SH "SEE ALSO"
112.PP
113\fBtext2pcap\fR(1),
114\fBethereal\fR(1)
115.SH "AUTHOR"
116.PP
117The 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\&.
118.PP
119This manpage was written by Jelmer Vernooij\&.
Note: See TracBrowser for help on using the repository browser.