Skip to content

Commit

Permalink
configure ACS server to ZTE CPE
Browse files Browse the repository at this point in the history
git-svn-id: https://perl-cwmp.googlecode.com/svn/trunk@275 836a5e1a-633d-0410-964b-294494ad4392
  • Loading branch information
dpavlin committed Mar 8, 2010
1 parent b15650d commit 014c5a7
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions scripts/zte-configure-acs.pl
@@ -0,0 +1,43 @@
#!/usr/bin/perl

use warnings;
use strict;

my $acs = 'http://192.168.2.100:3333';
my $cpe = 'http://192.168.2.1';

use WWW::Mechanize;
my $mech = WWW::Mechanize->new();

$mech->get( $cpe );

$mech->submit_form(
form_number => 1,
fields => {
tUsername => 'admin',
tPassword => 'admin',
}
);

$mech->follow_link( text_regex => qr/Advanced/ );

$mech->follow_link( text_regex => qr/TR069/ );

#$mech->dump_forms;
#$mech->dump_links;
#$mech->dump_all;

my $uid = 'time-' . time();

$mech->submit_form(
form_number => 2,
fields => {
_ACS_URL => $acs,
_ACS_NAME => $uid,
_ENABLE => '_ENABLE',
}
);


warn $uid;

0 comments on commit 014c5a7

Please sign in to comment.