source: branches/samba-3.2.x/docs/manpages/log2pcap.1@ 205

Last change on this file since 205 was 205, checked in by Herwig Bauernfeind, 16 years ago

Update 3.2 branch to 3.2.5

File size: 2.4 KB
Line 
1.\" Title: log2pcap
2.\" Author:
3.\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
4.\" Date: 11/20/2008
5.\" Manual: User Commands
6.\" Source: Samba 3.2
7.\"
8.TH "LOG2PCAP" "1" "11/20/2008" "Samba 3\.2" "User Commands"
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14log2pcap - Extract network traces from Samba log files
15.SH "SYNOPSIS"
16.HP 1
17log2pcap [\-h] [\-q] [logfile] [pcap_file]
18.SH "DESCRIPTION"
19.PP
20This tool is part of the
21\fBsamba\fR(7)
22suite\.
23.PP
24log2pcap
25reads 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\.
26.PP
27The log file must have a
28\fIlog level\fR
29of at least
30\fB5\fR
31to get the SMB header/parameters right,
32\fB10\fR
33to get the first 512 data bytes of the packet and
34\fB50\fR
35to get the whole packet\.
36.SH "OPTIONS"
37.PP
38\-h
39.RS 4
40If this parameter is specified the output file will be a hex dump, in a format that is readable by the
41text2pcap
42utility\.
43.RE
44.PP
45\-q
46.RS 4
47Be quiet\. No warning messages about missing or incomplete data will be given\.
48.RE
49.PP
50logfile
51.RS 4
52Samba log file\. log2pcap will try to read the log from stdin if the log file is not specified\.
53.RE
54.PP
55pcap_file
56.RS 4
57Name 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\.
58.RE
59.PP
60\-h|\-\-help
61.RS 4
62Print a summary of command line options\.
63.RE
64.SH "EXAMPLES"
65.PP
66Extract all network traffic from all samba log files:
67.PP
68.RS 4
69.nf
70 $ log2pcap < /var/log/* > trace\.pcap
71
72.fi
73.RE
74.PP
75Convert to pcap using text2pcap:
76.PP
77.RS 4
78.nf
79 $ log2pcap \-h samba\.log | text2pcap \-T 139,139 \- trace\.pcap
80
81.fi
82.RE
83.SH "VERSION"
84.PP
85This man page is correct for version 3 of the Samba suite\.
86.SH "BUGS"
87.PP
88Only SMB data is extracted from the samba logs, no LDAP, NetBIOS lookup or other data\.
89.PP
90The generated TCP and IP headers don\'t contain a valid checksum\.
91.SH "SEE ALSO"
92.PP
93\fBtext2pcap\fR(1),
94\fBethereal\fR(1)
95.SH "AUTHOR"
96.PP
97The 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\.
98.PP
99This manpage was written by Jelmer Vernooij\.
Note: See TracBrowser for help on using the repository browser.