Changes

Jump to: navigation, search

OPS435 Online Assignment 2S

484 bytes removed, 23:38, 4 April 2021
identify and select appropriate fabric API for each task
* Has access to matrix.senecacollege.ca
'''Due Date:''' Please follow the three stages of submission schedule:* Check point 1: complete the detail algorithm for each task in this assignment by November 25, 2020. Name it as a2s_algorithm.txt and upload it to your github repository* Check point 2: complete the coding of your fabric commands file from the algorithm for each task by Dec 2, 2020. Name it as a2s_[Seneca_name].py (replace [Seneca_name] with your Seneca email user name) and upload it to your github repo by Dec 2, 2020.* Check point 3: complete the testing and debugging using your VM in myvmlab by Dec 4, and also submit your algorithm file (a2s_algorithm.txt), test results, and the fabric file (a2s_[Seneca_name].py) to Blackboardby April 12, 2021.
'''Late Penalty:''' 20% per school day, and note that in order to pass this course, this assignment must be completed satisfactorily, i.e. a grade of 50% or more.
== Overview ==
: Study the Fabric API run(), sudo(), local(), and put() and utilize them to create a four new Fabric task tasks called userAdmin::* addUser(username):* findUser(username):* listUser():* listSysUser(): The userAdminaddUser(username) task should perform the following activities operations on a remote machine tosystem::* create a new user when necessary information is provided, and if the user name is already exist, the operation should fail.: The findUser(username) task should perform the following operations on a remote system::* scan the appropriate file(s) on the remote system and determine whether the named user exist or not and report accordingly.: The listUser() task should perform the following operations on a remote system::* delete an existing scan the appropriate file(s) on the remote system and produce a list of shell user when it is safe names on the system. Shell users are those users who can login to do sothe remote system and get a bash shell.: The listSysUser() task should perform the following operations on a remote system::* scan the appropriate file(s) on the remote system and produce a list of system user (non-shell) name on the system. System users are those users who will not get a bash shell.
== Tasks for this assignment ==
* Populate your private repository with appropriate files.
=== Add collaborator to your ops435-a2r a2s private repository ===
* Add your professor's github account as one of the collaborators to your ops435-a2s private repository. This will allow your professor to pull the contents of your ops435-a2s repository and also to review and suggest changes and fixes to your algorithm and/or your fabric file.
* <b><font color='blue'>Make sure that your professor accepted your invitation from github.com.</font></b>
from fabric.api import *
'''
OPS435 Assignment 2S - Fall 2020Winter 2021
Program: a2r_[seneca_id].py
Author: Student Name"
=== Final Test===
Once you have all the individual task tested and that each is working properly, perform the final test and compare with the sample tests and verify that your fabric tasks produce the correct results before submitting it on Blackboard.
 
== Sample login/logout records file and sample test run results==
* can be found from the sample repository github.com/rayfreeping/ops435-a2
== Rubric ==
! Task !! Maximum mark !! Actual mark
|-
| User Requirement DocumentaddUser ||20 |||-| Program usage and Options || 20 |||-| Generate user name list || 10 |||-| Generate remote host IP list|| 10 25 ||
|-
| Daily Usage Report by User findUSer || 10 25 ||
|-
| Daily Usage Report by Remote Host listUser|| 10 25 ||
|-
| Weekly Usage Report by User listSysUser|| 10 25 ||
|-
| Weekly Usage Report by Remote Host || 10 ||
|-
 
| '''Total''' || 100 ||
== Submission ==
* Stage 1: upload your algorithm document file to your ops435-a2r repository in github.com by November 25, 2020* Stage 2: upload your python script for this assignment to your ops435-a2r repository in github.com and to your vm in myvmlab by Dec 2, 2020* Stage 3: After fully tested and debugged your python script fabric file for this assignment, update submit your algorithm, your python script, and your est results to your ops435-a2r repository in github.com. Also submit the algorithm document, the python script fabric file and final test result to blackboard by Dec 4April 12, 20202021.
1,760
edits

Navigation menu