1,760
edits
Changes
→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
</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
</pre>
<pre>
Monthly Usage Report for user1rchan
==============================
Month Usage in Seconds
</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
</pre>