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
Step: 1
Solution import subprocess import openpyxl def queryserverusers Queries the server for the footprint of each user Args users A list of usernames to qu...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Principles Of Information Security
Authors: Michael E. Whitman, Herbert J. Mattord
7th Edition
035750643X, 978-0357506431
Students also viewed these Computer Network questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App