Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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: 

  1. 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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Information Security

Authors: Michael E. Whitman, Herbert J. Mattord

7th Edition

035750643X, 978-0357506431

More Books

Students also viewed these Computer Network questions