Changes

Jump to: navigation, search

OPS435 Python Assignment 2

687 bytes added, 17:32, 11 November 2018
Sample outputs
=== Sample outputs ===
The following are the reports generated by the usage report script (ur.py) with the "usage_data_file" mentioned in the overview section.
==== User List ====
The following is a user list extracted from the usage_data_file created by the command:
<pre>
[rchan@centos7 a2]$ ./ur.py -l user usage_data_file
</pre>
 
<pre>
asmith
bigia
cwsmith
hfang
mlee18
mshana
rchan
tsliu2
</pre>
 
==== Remote Host List ====
The following is a remote host list extracted from the usage_file_file created by the command:
<pre>
[rchan@centos7 a2]$ ./ur.py -l host usage_data_file
</pre>
<pre>10.40.105.130
10.40.43.94
10.40.91.236
10.40.91.247
10.43.115.162
24.114.50.50
</pre>
==== Daily Usage Report by User ====
The following is a Daily Usage Report created for user rchan by the following command:
<pre>
[rchan@centos7 a2]$ ./ur.py -u rchan -t daily usage_data_file
==== Daily Usage Report by Remote Host====
The following is a sample Daily Usage Report from created for the Remote Host 10.9440.105.103 by the command:<pre>[rchan@centos7 a2]$ ./ur.py -r 10.25 on host40.cty105.senecacollege.ca:130 -t daily usage_data_file</pre>
<pre>
Daily Usage Report from for 10.9440.10105.25 130====================================Date Usage in seconds2018 02 14 30Seconds2018 02 07 412018 02 01 913 7969Total 80 7969
</pre>
==== Weekly Usage Report by User ====
The following is a sample Weekly Usage Report created for user1 on hostuser rchan by the command:<pre>[rchan@centos7 a2]$ .cty/ur.senecacollege.ca:py -u rchan -t weekly usage_data_file</pre>
<pre>
Weekly Usage Report for user1rchan
=============================
Week # Usage in Seconds
2017 01 1602018 07 15802017 02 452017 03 52017 04 Total 20 Total 2201580
</pre>
==== Weekly Usage Report by Remote Host ====
The following is a sample Weekly Usage Report from created for the remote host 10.9440.105.130 by the command:<pre>[rchan@centos7 a2]$ ./ur.py -r 10.25 on host.cty40.senecacollege105.ca:130 -t weekly usage_data_file</pre>
<pre>
Weekly Usage Report from for 10.9440.10105.25130=====================================
Week # Usage in Seconds
2017 01 302017 03 412017 05 92018 07 79692017 06 Total 117969
Total 91==== Monthly Usage Report by User ====The following is a Monthly Usage Report created for user rchan by the command:<pre>[rchan@centos7 a2-2018fall]$ ./ur.py -u rchan -t monthly usage_data_file
</pre>
==== Monthly Usage Report by User ====
The following is a sample Monthly Usage Report for user1 on host.cty.senecacollege.ca:
<pre>
Monthly Usage Report for user1rchan
==============================
Month Usage in Seconds
2017 01 1602017 2018 02 45 1580Total 205 1580
</pre>
==== Monthly Usage Report by Remote Host ====
The following is a sample Monthly Usage Report created for remote host 10.9440.105.130 by the command:<pre>[rchan@centos7 a2-2018fall]$ ./ur.py -r 10.25 on host.cty40.senecacollege105.ca:130 -t monthly usage_data_file</pre>
<pre>
Monthly Usage Report from for 10.9440.10105.25130======================================
Month Usage in Seconds
2017 01 302017 2018 02 41 7969Total 71 7969
</pre>
1,760
edits

Navigation menu