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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 154 by dpavlin, Sat Oct 27 22:53:58 2007 UTC revision 180 by dpavlin, Sun Oct 28 21:36:30 2007 UTC
# Line 12  use Getopt::Long; Line 12  use Getopt::Long;
12    
13  my $port = 3333;  my $port = 3333;
14  my $debug = 0;  my $debug = 0;
15    my $store_path = './';
16    my $store_plugin = 'YAML';
17    my $protocol_dump = 0;
18    
19  GetOptions(  GetOptions(
20          'debug+' => \$debug,          'debug+' => \$debug,
21          'port=i' => \$port,          'port=i' => \$port,
22            'store-path=s' => \$store_path,
23            'store-plugin=s' => \$store_plugin,
24            'protocol-dump!' => \$protocol_dump,
25  );  );
26    
27    my $queue;
28    
29    if ( $protocol_dump ) {
30    
31            warn "generating dump of xml protocol with CPE\n";
32    
33            $queue = [
34                            'GetRPCMethods',
35                            'GetParameterNames',
36    #                       [ 'GetParameterNames', 'InternetGatewayDevice.DeviceInfo.SerialNumber', 0 ],
37    #                       [ 'GetParameterNames', 'InternetGatewayDevice.DeviceInfo.', 1 ],
38                            [ 'GetParameterValues',
39                                    'InternetGatewayDevice.DeviceInfo.SerialNumber',
40                                    'InternetGatewayDevice.DeviceInfo.VendorConfigFile.',
41                                    'InternetGatewayDevice.DeviceInfo.X_000E50_Country',
42                            ],
43                            [ 'SetParameterValues',
44                                    'InternetGatewayDevice.DeviceInfo.ProvisioningCode' => 'test provision',
45    #                       'InternetGatewayDevice.DeviceInfo.X_000E50_Country' => 1,
46                            ],
47    #                       'Reboot',
48            ];
49    };
50    
51    
52  my $server = CWMP::Server->new({  my $server = CWMP::Server->new({
53          port => $port,          port => $port,
54          store => {          store => {
55  #               module => 'DBMDeep',                  module => $store_plugin,
56                  module => 'YAML',                  path => $store_path,
57                  store_path => 'state.db',                  debug => $debug,
58          },          },
59          debug => $debug,          debug => $debug,
60          default_queue => [ qw/          default_queue => [ $queue ],
                 GetRPCMethods  
                 GetParameterNames  
         / ],  
 #               Reboot  
61  });  });
62  $server->run();  $server->run();
63    

Legend:
Removed from v.154  
changed lines
  Added in v.180

  ViewVC Help
Powered by ViewVC 1.1.26