/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 205 - (show 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 #!/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 use lib './lib';
10 use CWMP::Server;
11 use CWMP::Session;
12 use CWMP::Vendor;
13 use Getopt::Long;
14 use Data::Dump qw/dump/;
15
16 my $port = 3333;
17 my $debug = 0;
18 my $store_path = './';
19 my $store_plugin = 'YAML';
20 my $create_dump = 1;
21
22 GetOptions(
23 'debug+' => \$debug,
24 'port=i' => \$port,
25 'store-path=s' => \$store_path,
26 'store-plugin=s' => \$store_plugin,
27 'create_dump!' => \$create_dump,
28 );
29
30 my $server = CWMP::Server->new({
31 port => $port,
32 session => {
33 store => {
34 module => $store_plugin,
35 path => $store_path,
36 debug => $debug,
37 },
38 create_dump => $create_dump,
39 },
40 debug => $debug,
41 });
42
43 CWMP::Vendor->add_triggers;
44
45 $server->run();
46

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26