/[cwmp]/google/trunk/bin/acs.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /google/trunk/bin/acs.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 205 - (hide annotations)
Wed Nov 14 23:02:17 2007 UTC (16 years, 7 months ago) by dpavlin
File MIME type: text/plain
File size: 749 byte(s)
 r222@brr:  dpavlin | 2007-11-15 00:01:24 +0100
 added --create-dump option to acs.pl which will force creation
 of protocol dumps even without debug level > 2

1 dpavlin 28 #!/usr/bin/perl -w
2    
3     # acs.pl
4     #
5     # 06/18/07 09:19:54 CEST Dobrica Pavlinusic <dpavlin@rot13.org>
6    
7     use strict;
8    
9 dpavlin 30 use lib './lib';
10     use CWMP::Server;
11 dpavlin 203 use CWMP::Session;
12     use CWMP::Vendor;
13 dpavlin 57 use Getopt::Long;
14 dpavlin 203 use Data::Dump qw/dump/;
15 dpavlin 28
16     my $port = 3333;
17 dpavlin 57 my $debug = 0;
18 dpavlin 164 my $store_path = './';
19     my $store_plugin = 'YAML';
20 dpavlin 205 my $create_dump = 1;
21 dpavlin 28
22 dpavlin 57 GetOptions(
23     'debug+' => \$debug,
24     'port=i' => \$port,
25 dpavlin 164 'store-path=s' => \$store_path,
26     'store-plugin=s' => \$store_plugin,
27 dpavlin 205 'create_dump!' => \$create_dump,
28 dpavlin 57 );
29    
30 dpavlin 50 my $server = CWMP::Server->new({
31     port => $port,
32 dpavlin 205 session => {
33     store => {
34     module => $store_plugin,
35     path => $store_path,
36     debug => $debug,
37     },
38     create_dump => $create_dump,
39 dpavlin 150 },
40 dpavlin 53 debug => $debug,
41 dpavlin 50 });
42 dpavlin 203
43     CWMP::Vendor->add_triggers;
44    
45 dpavlin 28 $server->run();
46    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26