File: zfcpdbf

package info (click to toggle)
s390-tools 1.8.3-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,584 kB
  • ctags: 5,973
  • sloc: ansic: 34,053; cpp: 8,153; sh: 7,784; asm: 5,573; perl: 2,519; makefile: 799
file content (639 lines) | stat: -rwxr-xr-x 16,342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
#!/usr/bin/perl
#==============================================================================
# Copyright IBM Corp. 2005, 2009.
#
# zfcpdbf
#
# Script to analyse trace data of ZFCP module logged in DBF.
#
# Author(s): Maxim Shchetynin <maxim@de.ibm.com>
#  	     Teresa Gamez Zerban <gamezt@de.ibm.com>
#
# This file is part of s390-tools
#
# s390-tools is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.   
#
# s390-tools is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with s390-tools; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#==============================================================================

use strict;
use warnings;
use Getopt::Long;
use File::Basename;

my(%fsf_command) = (
	'0x00000001' =>	'send FCP command',
	'0x00000002' =>	'abort FCP command',
	'0x00000005' =>	'open port',
	'0x00000006' =>	'open unit',
	'0x00000007' =>	'close unit',
	'0x00000008' =>	'close port',
	'0x00000009' =>	'close port physical',
	'0x0000000b' =>	'send ELS',
	'0x0000000c' =>	'send generic',
	'0x0000000d' =>	'exchange config data',
	'0x0000000e' =>	'exchange port data',
	'0x00000012' =>	'download control file',
	'0x00000013' =>	'upload control file'
);

my(%protocol_status) = (
	'0x00000001' =>	'good',
	'0x00000010' =>	'QTCB version error',
	'0x00000020' =>	'sequence number error',
	'0x00000040' =>	'unsupported QTCB type',
	'0x00000080' => 'host connection initializing',
	'0x00000100' =>	'FSF status presented',
	'0x00000200' =>	'duplicate request ID',
	'0x00000400' =>	'link down',
	'0x00000800' =>	'reestablished queue',
	'0x01000000' =>	'error state'
);

my(%fsf_status) = (
	'0x00000000' =>	'good',
	'0x00000001' =>	'port already open',
	'0x00000002' => 'unit already open',
	'0x00000003' => 'port handle not valid',
	'0x00000004' => 'unit handle not valid',
	'0x00000005' =>	'handle mismatch',
	'0x00000006' => 'service class not supported',
	'0x00000009' => 'FCP LUN not valid',
	'0x00000010' => 'access denied',
	'0x00000011' => 'access type not valid',
	'0x00000012' =>	'LUN sharing violation',
	'0x00000022' =>	'command does not exist',
	'0x00000030' => 'direction indicator not valid',
	'0x00000033' => 'command length not valid',
	'0x00000040' =>	'max number of ports exceeded',
	'0x00000041' => 'max number of units exceeded',
	'0x00000050' => 'ELS rejected',
	'0x00000051' =>	'generic command rejected',
	'0x00000052' => 'partially successful',
	'0x00000053' => 'authorization failure',
	'0x00000054' =>	'ACT error detected',
	'0x00000055' => 'control file update error',
	'0x00000056' => 'control file too large',
	'0x00000057' => 'access conflict detected',
	'0x00000058' => 'conflicts overruled',
	'0x00000059' => 'port boxed',
	'0x0000005a' => 'unit boxed',
	'0x0000005b' => 'exchange config/port data incomplete',
	'0x00000060' =>	'payload size mismatch',
	'0x00000061' =>	'request too large',
	'0x00000062' => 'response too large',
	'0x00000063' => 'SBAL mismatch',
	'0x00000064' => 'open port without PRLI',
	'0x000000ad' => 'adapter status available',
	'0x000000af' => 'FCP RSP available',
	'0x000000e2' => 'unknown command',
	'0x000000e3' => 'unknown op subtype',
	'0x000000e5' =>	'invalid command option'
);

my(%unsolicited_status) = (
	'0x00000001' =>	'port closed',
	'0x00000002' =>	'incoming ELS',
	'0x00000003' => 'sense data available',
	'0x00000004' =>	'bit error threshold',
	'0x00000005' =>	'link down',
	'0x00000006' =>	'link up',
	'0x00000009' =>	'notification lost',
	'0x0000000a' =>	'ACT updated',
	'0x0000000b' =>	'ACT hardened'
);

#COMMAND LINE OPTIONS

my $OPT_HBA	= 0;
my $OPT_SAN	= 0;
my $OPT_SCSI	= 0;
my $OPT_REC	= 0;
my $OPT_DEVICE	= "";
my $OPT_PATH	= "";
my $OPT_VERBOSE	= 0;
my $OPT_HELP	= 0;
my $OPT_VERSION	= 0;
my $OPT_DATE 	= "on";
my $OPT_SINGLELINE =0;

#string for the singleline option
my $endl	="\n\t";

#PARSE COMMAND LINE OPTIONS
Getopt::Long::Configure('bundling');

GetOptions(
	'd|device=s'	=> \$OPT_DEVICE,
	'p|path=s'	=> \$OPT_PATH,
	'V|verbose'	=> \$OPT_VERBOSE,
	'h|help'	=> \$OPT_HELP,
	'v|version'	=> \$OPT_VERSION,
	'D|date=s'	=> \$OPT_DATE,
	's|singleline'	=> \$OPT_SINGLELINE
) or print_usage();

foreach(@ARGV) { 
	if($_ eq 'hba') {
		$OPT_HBA = 1;
	}
	elsif( $_ eq 'scsi') {
		$OPT_SCSI = 1;
	}
	elsif($_ eq 'rec') {
		$OPT_REC = 1;
	}
	elsif($_ eq 'san') {
		$OPT_SAN = 1;
	}
};

#MAIN PROGRAM

if($OPT_HELP) {
	print_usage();
}
 
if($OPT_VERSION) {
	print_version();
}

if($OPT_SINGLELINE) {
	$endl = "; ";
}

if($OPT_DATE ne "" && $OPT_DATE ne "on" and  $OPT_DATE ne "off") {
	print "Date has to be set 'on'(default) or 'off'" . 
		" and not '$OPT_DATE'.\n";
	exit;
}
	 
if($OPT_DEVICE eq "") {
	$OPT_DEVICE = "*";
}
#Check if the adapter is set correct
else {
	while(length($OPT_DEVICE) < 4) {
		$OPT_DEVICE = '0' . $OPT_DEVICE;
	}

	if(length($OPT_DEVICE) == 4) {
		$OPT_DEVICE = "0.0." . $OPT_DEVICE;
	}

	if(length($OPT_DEVICE) != 8 or $OPT_DEVICE !~ /^0\.0\./) {
		printf "'$OPT_DEVICE' does not look like a FCP adapter.\n";
		exit;
	}
}

if($OPT_PATH eq "") {
	$OPT_PATH = '/sys/kernel/debug/s390dbf';
}

#Check if path exist
if(! -d $OPT_PATH) {
	printf $OPT_PATH . " does not exist. Is debugfs mounted?\n";
	exit;
} 

my @paths  = glob($OPT_PATH . "/zfcp_" . $OPT_DEVICE . "_*"); 
unless(@paths) {
	if($OPT_DEVICE ne "*") {
		printf "No DBF files found for FCP adapter %s.\n",
			$OPT_DEVICE;
	} 
	else {
		printf "No DBF files found at %s.\n",$OPT_PATH;
	}
	exit;
}	 

if($OPT_HBA) {
	my @hba_paths = @{filter_paths("hba",@paths)};
	trace_hba(@hba_paths);
}
elsif($OPT_SCSI) {
	my @scsi_paths = @{filter_paths("scsi",@paths)};
	trace_scsi(@scsi_paths);
}
elsif($OPT_REC) {
	my @rec_paths = @{filter_paths("rec",@paths)};
	trace_rec(@rec_paths);
}
else {
	my @san_paths = @{filter_paths("san",@paths)};
	trace_san(@san_paths);
}

#END MAIN PROGRAMM


#SUBS

#
# Filters the scsi trace for the specified ports
#
# \param	Path to the traces
#
sub trace_scsi {
	my(@scsi_paths) = @_;
	
	foreach my $scsi_path (@scsi_paths) {
		open(DBF,$scsi_path . "/structured") or 
		die("Cannot open DBF file " . $scsi_path . "/structured");
		$scsi_path =~/(0\.0\.\w+)_\w+/;
		my $adapter = $1;
		my %scsi_hash;
		while(<DBF>) {
			if($_=~ /timestamp\s+([:\d]+)/) {
				print_scsi($adapter,%scsi_hash);
				%scsi_hash = ();
				$scsi_hash{'timestamp'} = convert_time($1);
			}
			elsif ($_ =~ /(\w+)\s+(\w+)/) {
				$scsi_hash{$1} = $2;;
			}
		}
		print_scsi($adapter,%scsi_hash);
		close(DBF);
	}
}

#
# Print the scsi trace 
#
# \param	Adapter which is traced
# \param	Data of the scsi trace
#
sub print_scsi {
	my($adapter,%scsi_hash) = @_;
	if(defined($scsi_hash{'timestamp'}) && defined($scsi_hash{'tag'}) && 
		($scsi_hash{'tag'} eq 'rslt' || $scsi_hash{'tag'} eq 'abrt' ||
		 $scsi_hash{'tag'} eq 'lrst' || $scsi_hash{'tag'} eq 'trst')) {
		print "$adapter $scsi_hash{'timestamp'} " . 
			"SCSI serial=$scsi_hash{'scsi_serial'}" . $endl .
			"id=$scsi_hash{'scsi_id'} lun=$scsi_hash{'scsi_lun'} " .
			"command=$scsi_hash{'scsi_cmnd'}" . $endl;
		if($OPT_VERBOSE && $scsi_hash{'scsi_retries'}  ne hex 0) {
			print "retry $scsi_hash{'scsi_retries'} ".
				"from $scsi_hash{'scsi_allowed'}"; 
		}
	
		if($scsi_hash{'fcp_rsp_validity'} ne '0x00') {
			print "FCP_RSP validity=" .
			      "$scsi_hash{'fcp_rsp_validity'} ";
			if($OPT_VERBOSE) {
				print "scsi_status=" .
				      "$scsi_hash{'fcp_rsp_scsi_status'} " . 
				      $endl . "residual=" .
				      "$scsi_hash{'fcp_rsp_resid'} " .
				      "code=0x$scsi_hash{'fcp_rsp_code'} ";
			} 
		}
	
		if($OPT_VERBOSE && $scsi_hash{'fcp_sns_info_len'} ne hex 0) {
			print "FCP_SNS info=$scsi_hash{'fcp_sns_info'}";
		}
		print "\n";
	}	 
}

#
# Filters the hba trace for the specified ports
#
# \param	Path to the traces
#
sub trace_hba {
	my(@hba_paths) = @_;

	foreach my $hba_path (@hba_paths) {
		open(DBF,$hba_path . "/structured") or 
		die("Cannot open DBF file " . $hba_path . "/structured");
		$hba_path =~/(0\.0\.\w+)_\w+/;
		my $adapter = $1;
		my %hba_hash;
		while(<DBF>) {
			if($_ =~ /timestamp\s+([:\d]+)/) {
				print_hba($adapter, %hba_hash);
				%hba_hash = ();
				$hba_hash{'timestamp'} = convert_time($1);
			}
			elsif ($_ =~ /^(\w+)\s+(\w+)$/) {
				$hba_hash{$1} = $2;
			}
			elsif ($_ =~ /^(\w+)\s+(\w+\s\w+\s\w+\s\w+)$/) {
				$hba_hash{$1} = $2;
			}
			elsif ($_ =~ /^(\w+)\s+(\w+\s\w+)$/) {
				$hba_hash{$1} = $2;
			}
		}
		print_hba($adapter,%hba_hash);
		close DBF;
	}
}

#
# Print the hba trace 
#
# \param	Adapter which is traced
# \param	Data of the hba trace
#
sub print_hba {
	my($adapter,%hba_hash) = @_;	
	if(defined($hba_hash{'timestamp'})) { 
		#Unsolicited status
		if(defined($hba_hash{'tag'}) && $hba_hash{'tag'} eq "stat") {
			if(defined($hba_hash{'tag2'}) && 
			$hba_hash{'tag2'} eq "read") { 
			    	if(defined($hba_hash{'timestamp'}) && 
				 defined($hba_hash{'status_type'}) && 
				 defined($hba_hash{'status_subtype'}) && 
				 defined($hba_hash{'queue_designator'})) {
					print "$adapter $hba_hash{
					'timestamp'} " .
					"unsolicited status" .
					" '$unsolicited_status{
						$hba_hash{'status_type'}}'"
					. $endl .
					"subtype= $hba_hash{'status_subtype'}"
					. $endl .
					"queue designator= $hba_hash{
					'queue_designator'}" . $endl ;
			  	  }
			}
			elsif(defined($hba_hash{'tag2'}) && 
				$hba_hash{'tag2'} eq "dism") {
				print "status read request dissmissed";
			}
			elsif(defined($hba_hash{'tag2'}) && 
				$hba_hash{'tag2'} eq "fail") {
				print "status read request failed";
			}
		}		
		elsif(defined($hba_hash{'tag'}) && $hba_hash{'tag'} eq "resp") {
			if(defined($hba_hash{'tag2'}) && 
			($hba_hash{'tag2'} eq "perr" || 
			 $hba_hash{'tag2'} eq "ferr" || 
			 $hba_hash{'tag2'} eq "open" || 
			 $hba_hash{'tag2'} eq "qtcb")) {
				print "$adapter $hba_hash{'timestamp'} " .
				"response to '$fsf_command{
					$hba_hash{'fsf_command'}}'" . $endl;
				print "protocol status='$protocol_status{
					$hba_hash{'fsf_prot_status'}}'" . 
					"FSF status='$fsf_status{
					$hba_hash{'fsf_status'}}'" . $endl ; 
			}  
		}	
		else {
			next;
		}
		
		if($OPT_VERBOSE) {
			print "protocol status qualifier=" .
				"'$hba_hash{'fsf_prot_status_qual'}'" . $endl .
				"FSF status qualifier=" .
				"'$hba_hash{'fsf_status_qual'}'" . $endl .
				"FSF request status " .
				"'$hba_hash{'fsf_req_status'}'" . $endl .
				"SBAL=$hba_hash{'sbal_first'}/$hba_hash{
				'sbal_last'}/$hba_hash{'sbal_response'} " .
				"(fist/last/response)" . $endl; 
		}

		if($hba_hash{'fsf_command'} eq '0x00000002') {
			print "Abort FSF request " .
				"ID=$hba_hash{'abort_fsf_reqid'} " .
				"seqno=$hba_hash{'abort_fsf_seqno'}";
		}
		elsif($hba_hash{'fsf_command'} eq '0x00000005' || 
			$hba_hash{'fsf_command'} eq '0x00000008' ||
		$hba_hash{'fsf_command'} eq '0x00000009') {
			print "WWPN=$hba_hash{'wwpn'} D_ID=$hba_hash{'d_id'} ";
			print "port handle=$hba_hash{'port_handle'}";
		}
		elsif($hba_hash{'fsf_command'} eq '0x00000006' || 
			$hba_hash{'fsf_command'} eq '0x00000007') {
			print "WWPN=$hba_hash{'wwpn'} " .
				"LUN=$hba_hash{'fcp_lun'}" . $endl;
			print "port handle=$hba_hash{'port_handle'}" .
				" LUN handle=$hba_hash{'lun_handle'}"; 
		}
		elsif($hba_hash{'fsf_command'} eq '0x0000000b' ) {
			print "D_ID=$hba_hash{'d_id'} LS " .
				"code=$hba_hash{'port_handle'}";
		}
		print"\n";
	}
}

#
# Filters the rec trace for the specified ports
#
# \param	Path to the traces
#
sub trace_rec {
	my(@rec_paths) = @_;

	foreach my $rec_path ( @rec_paths ) {
		open(DBF,$rec_path . "/structured") or 
		die("Cannot open DBF file " . $rec_path . "/structured");
		$rec_path =~/(0\.0\.\w+)_\w+/;  
		my $adapter = $1;
		my %rec_hash;
		while(<DBF>) {
			if($_ =~ /timestamp\s+([:\d]+)/) {
				print_rec($adapter,%rec_hash);
				%rec_hash = ();
				$rec_hash{'timestamp'} = convert_time($1);
				print "\n";
			}
			elsif ($_ =~ /(\w+)\s+(\w+)/) {
				$rec_hash{$1} = $2;
			}
		}
		print_rec($adapter,%rec_hash);
		print "\n";
		close DBF;  
	}
}

#
# Prints the rec traces 
#
# \param	Adapter which is traced
# \param	Data of the rec trace
#
sub print_rec {
	my($adapter,%rec_hash) = @_;
	if(defined($rec_hash{'timestamp'}) && defined($rec_hash{'tag'}) && 
		defined($rec_hash{'hint'}) && defined($rec_hash{'wwpn'}) &&
		defined($rec_hash{'fcp_lun'})) {
		print "$adapter $rec_hash{'timestamp'}\ttag=$rec_hash{'tag'} " .
		  	"hint=$rec_hash{'hint'}" . $endl .
			"WWPN='$rec_hash{'wwpn'}' lun='$rec_hash{'fcp_lun'}'";
	} 
}

# 
# Filters the san trace for the specified ports
#
# \param	Path to the traces
#
sub trace_san {
	my(@san_paths) = @_;
		
	foreach my $san_path (@san_paths) {
		open(DBF,$san_path . "/structured") or 
		die("Cannnot open DBF file " . $san_path . "/structured");
		$san_path =~ /(0\.0\.\w+)_\w+/;
		my $adapter = $1;
		my %san_hash;
		while(<DBF>) {
			if($_ =~ /timestamp\s+([:\d]+)/) {
				#Every new block starts with a timestamp and 
				#since we cannot be sure that a block ends with 
				#a blank line we check for the next timestamp
				print_san($adapter,%san_hash);
				%san_hash = ();
				$san_hash{'timestamp'} = convert_time($1);
			}
			elsif ($_ =~ /(\w+)\s+(\w+)/) {
				$san_hash{$1} = $2;
			}
		}
		print_san($adapter,%san_hash);
		print"\n";
		close DBF;
	}
	return;
}

#
# Prints the san traces 
#
# \param	Adapter which is traced
# \param	Data of the san trace
#
sub print_san {
	my($adapter,%san_hash) = @_;

	if(defined($san_hash{'timestamp'}) && defined($san_hash{'s_id'}) && 
		defined($san_hash{'d_id'}) && defined($san_hash{'tag'})) {
		my $tag;
		if($san_hash{'tag'} eq "octc") { 
			$tag = "CT request";
		}
		elsif($san_hash{'tag'} eq "rctc") {
			$tag = "CT response";
		}
		elsif($san_hash{'tag'} eq "oels") {
			$tag = "ELS request";
		}
		elsif($san_hash{'tag'} eq "rels") {
			$tag = "ELS respsone";
		}
		elsif($san_hash{'tag'} eq "iels") {
			$tag = "ELS incoming";
		} 	
		print "$adapter $san_hash{'timestamp'}\t$san_hash{'s_id'} " .
			" -> $san_hash{'d_id'} $tag \n";
	}
}

#
# Converts the Unix time to localtime an returns it 
# depending on the --date option.
#
# \param	UNIX Timestamp to convert
# \return 	Formated Localtime
#
sub convert_time {
	my($timestamp) = @_;
	
	my @conv_time = split(/:/,$timestamp);
	my @local_t = localtime($conv_time[0]);
	if($OPT_DATE eq "on") {
		return (sprintf "%04d-%02d-%02d %02d:%02d:%02d.%d", 
			($local_t[5]+1900) ,$local_t[4],$local_t[3],$local_t[2],
			$local_t[1],$local_t[0], $conv_time[1]);
	}
	else {
		return (sprintf "%02d:%02d:%02d.%d",$local_t[2],
			$local_t[1],$local_t[0], $conv_time[1]);
	} 
}

#
# Filters the path to trace 
#
#\param		The filter for the paths
#\param		Path to the traces
#\return	The filtered pathes
#
sub filter_paths {
	my($filter,@paths) = @_;
	
	my @filtered_paths;
	
	foreach my $path (@paths) {
		if($path =~ /_$filter$/) {
			push(@filtered_paths,$path);
		}
	}
	unless(@filtered_paths) {
		print "No traces for '$filter' found\n";
		exit;
	}
	return \@filtered_paths;
}

#
# Prints the version
#
sub print_version {

	my ($s390tools_version) = '%S390_TOOLS_VERSION%';
	printf "zfcpdbf: version %s\n", $s390tools_version;
	printf "Copyright IBM Corp. 2005,2009\n";
	exit;
}

#
# Prints the usage
#
sub print_usage {
print 
"
Usage: zfcpdbf [COMMAND] [OPTIONS]

Sort debug data of all active or specified FCP adapter(s).
	-h, --help                display this help and exit
 	-v, --version             display version information and exit
commands:
	hba                     trace all FSF requests
	san                     trace SAN activity (default)
  	scsi                    trace SCSI- and corresponding FCP-commands
	rec			  trace REC records
	options:
	  -d, --device=<device>   FCP adapter device number
	  -p, --path=<path>       specifiy path to DBF files
	  -D, --dates={off|on}    show date as well as time 
	  -s, --singleline        output in one line per event
	  -V, --verbose           verbose output
	
";
	exit;
}