- All counters reside in ponce.
- ssh to ponce to work on counters.
- All new domains require to be added to list of recognized domains (see A below).
- Press Control/h to erase in database command prompt.
Example:
These URL's may require the same counter:
http://poncevideo.sdsu.edu
http://ponce.sdsu.edu/victor_ponce_video.php
http://pon.sdsu.edu/victor_ponce_video.php
http://kon.sdsu.edu/victor_ponce_video.php
http://apo.sdsu.edu/victor_ponce_video.php
http://ton.sdsu.edu/victor_ponce_video.php
http://victormiguelponce.com/victor_ponce_video.php
http://ponce.tv/victor_ponce_video.php
http://ponce.sdsu.edu/video.php
http://pon.sdsu.edu/video.php
http://kon.sdsu.edu/video.php
http://apo.sdsu.edu/video.php
http://ton.sdsu.edu/video.php
http://victormiguelponce.com/video.php
http://ponce.tv/video.php
These URL's may require the same counter:
http://ponce.sdsu.edu/onlinechannel01.php
http://pon.sdsu.edu/onlinechannel01.php
http://kon.sdsu.edu/onlinechannel01.php
http://apo.sdsu.edu/onlinechannel01.php
http://ton.sdsu.edu/onlinechannel01.php
http://onlinecalc.sdsu.edu/onlinechannel01.php
http://victormiguelponce.com/onlinechannel01.php
http://ponce.tv/onlinechannel01.php
A. To add domain name to list of recognized domains:
[This is required for any new domain name]
For example, to add the domain poncevideo.sdsu.edu
- Edit file /usr/local/etc/Counter/conf/count.cfg in ponce
- Add poncevideo.sdsu.edu to the bottom of the list.
B. To add counter to a webpage:
[First copy counter html code from webpage with counter to webpage without counter]
-
Edit Authdb file:
editdb /usr/local/etc/Counter/db/Authdb
Command> add
Enter Key: http://enlineacalc.sdsu.edu/canalenlinea01.php
Enter Value (04a384eefdfb5fc93effa62e83ac9f0d): 04a384eefdfb5fc93effa62e83ac9f0d
Command> quit
[Comments: Cut and paste the value (within parentheses) given by the system]
C. To change value of counter (increase value of counter)
[First search for value of key]
-
Edit Authdb file:
editdb /usr/local/etc/Counter/db/Authdb
Command> Search http://enlineacalc.sdsu.edu/canalenlinea01.php
1 item matched.
1. http://enlineacalc.sdsu.edu/canalenlinea01.php=>04a384eefdfb5fc93effa62e83ac9f0d
Command> quit
[Then enter Countdb and follow procedure]
-
Edit Countdb file:
editdb /usr/local/etc/Counter/db/Countdb
Command>edit 04a384eefdfb5fc93effa62e83ac9f0d
1 item matched.
1. 04a384eefdfb5fc93effa62e83ac9f0d=>1027:130.191.163.173
Enter the number to edit, Q to quit:
1
Edit Key (04a384eefdfb5fc93effa62e83ac9f0d): Return
Edit Value (1027:130.191.163.173): 1234:0.0.0.0
Command> quit
D. To share counter among two or more pages:
[First search Authdb to find value for established key]
[Then add new key and replace value given by the system by value of established key]
For example, to share counters between
established key ponce.sdsu.edu/victor_ponce_video.php
and
new key ponce.sdsu.edu/video.php
search established key and add new key in Authdb
-
Edit Authdb file:
editdb /usr/local/etc/Counter/db/Authdb
Command> Search http://ponce.sdsu.edu/victor_ponce_video.php
1 item matched.
1. http://ponce.sdsu.edu/victor_ponce_video.php=>9f2281d2a27a25c5e2cd6d426b713c2e
(Current database:Authdb)
Command> add
Enter Key: http://ponce.sdsu.edu/video.php
Enter Value (a087d0010bb088acfe7d6b679b293113): 9f2281d2a27a25c5e2cd6d426b713c2e
Command> quit
E. To assign counters in one file:
[First search Authdb to find value for established key, create new key with string]
Create file in ponce home directory counters_toromuerto and place all keys and strings, as shown key=>string
editdb -o -f counters_toromuerto /usr/local/etc/Counter/db/Authdb
-o to override