Question: Python script called server_user_mon.py that can bench mark a user's footprint on a machine and generate line graphs. The script should work as follows: It
Python script called server_user_mon.py that can bench mark a user's footprint on a machine and generate line graphs. The script should work as follows:
- It should query the server, and then construct an xlsx file containing all of the users logged in and their footprint on the server.
Username | Total PIDs | Total CPU Time | Total Real Memory Usage |
|
|
|
|
The script should be run as follows
$python server_user_mon.py all
where all means to query all users logged onto the server.
can be Seneca Matrix
hint1: use openpyxl
hint2: you can run the script from a remote machine and transfer the necessary data if any libraries are missing on Matrix
Step by Step Solution
3.46 Rating (159 Votes )
There are 3 Steps involved in it
Solution import subprocess import openpyxl def queryserverusers Queries the server for the footprint of each user Args users A list of usernames to qu... View full answer
Get step-by-step solutions from verified subject matter experts
