Changes

Jump to: navigation, search

OPS435 Assignment 2 for Section C

823 bytes removed, 24 March
List Users With Verbose
As discussed before, this command should also accept the <code>--seconds</code> option.
 
==== List Users With Verbose ====
Calling any of the previous commands with the <code>--verbose</code> option should cause the script to output more information:
<pre>
[eric@centos7 a2]$ ./a2.py -l user usage_data_file -v
</pre>
 
<pre>
Files to be processed: ['usage_data_file']
Type of args for files <class 'list'>
User list for usage_data_file
=============================
asmith
cwsmith
rchan
tsliu2
</pre>
 
<pre>
[eric@centos7 a2]$ ./a2.py -r 10.40.105.130 -t monthly usage_data_file -v
</pre>
 
<pre>
Files to be processed: ['usage_data_file']
Type of args for files <class 'list'>
usage report for remote host: 10.40.105.130
usage report type: monthly
Monthly Usage Report for 10.40.105.130
======================================
Date Usage
02/2018 05:15:00
Total 05:15:00
</pre>
==== Daily Report From Online ====

Navigation menu