Open main menu

CDOT Wiki β

Changes

OPS435 Online Assignment 2

244 bytes added, 20:40, 19 July 2020
Daily Usage Report by User
==== Daily Usage Report by User ====
The following is a are Daily Usage Report Reports created for user rchan by the following command. The output can be displayed either in seconds:
<pre>
[rchaneric@centos7 a2]$ ./ura2.py -u rchan -t daily usage_data_file--seconds
</pre>
Daily Usage Report for rchan
============================
Date Usage in Seconds13/02/2018 20013/02 /2018 138015 /02/2018 19802018 02 13 1580Total 3560
</pre>
...or by omitting the <code>--seconds</code> option, in HH:MM:SS format.
<pre>
[rchaneric@centos a2]$ ./ura2.py -u cwsmith rchan -t daily usage_data_file
</pre>
 
<pre>
Daily Usage Report for cwsmithrchan==============================Date Usage in Seconds13/02/2018 00:03 :2013 2280/02/2018 00:23:002018 15/02 15 7883/2018 02 14 3047 00:33:00Total 1321000:59:20
</pre>
It's recommended you get the seconds working first, then create a function to converts seconds to HH:MM:SS.
==== Daily Usage Report by Remote Host====