Case study assessment
Criteria
Unit code, name and release number
ICTNWK428 – Create scripts for networking (1)
Qualification/Course code, name and release number
ICT40120 – Certificate IV in Information Technology (Release 2)
Student details
Student number
Student name
Assessment declaration
Student signature and date
Version: 20210805
Date created: 01/12/2020
Date modified: 28/09/2021
For queries, please contact:
SkillsPoint Technology and Business Services SkillsPoint
Location Ultimo NSW
© 2021 TAFE NSW, Sydney
RTO Provider Number 90003 | CRICOS Provider Code: 00591E
This assessment can be found in the: Learning Bank
The contents in this document is copyright © TAFE NSW 2021, and should not be reproduced without the permission of the TAFE NSW. Information contained in this document is correct at time of printing: 23 December 2022. For current information please refer to our website or your teacher as appropriate.
Assessment instructions
Table 1 Assessment instructions
Assessment details | Instructions |
Assessment overview | The objective of this assessment is to assess your knowledge and performance as would be required to: Prepare to write networking scripts Create and implement codeImplement operating system toolsTest and finalise script activities |
Assessment Event number | 2 of 2 |
Instructions for this assessment | This is a case study assessment and it will be assessing you on your knowledge and performance of skills required by the unit. This assessment is in 7 (seven) parts: Part 1: Determine requirements Part 2: Employ software development cycle Part 3: Develop solution algorithmPart 4: Create and implement codePart 5: TestingPart 6: Implement operating system toolsPart 7: Finalise script activities This assessment is supported by the following: Assessment feedback |
Submission instructions | On completion of this assessment, you are required to submit your work to your assessor for marking (as instructed by your assessor). You are required to submit the following items: This updated assessment itemSubmission folder (zipped) including the following files in the required file location:CheckIPPort.pyCheckIPPort2.pyCheckIPPort Network Script Documentation.docxports.txt Ensure you have written your name at the bottom of each page of this assessment. It is important that you keep a copy of all electronic and hardcopy assessments submitted to TAFE and complete the assessment declaration when submitting the assessment. |
What do I need to do to achieve a satisfactory result? | To achieve a satisfactory result for this assessment all questions must be answered correctly. |
What do I need to provide? | USB/cloud storage with sufficient free space A personal computer with the following: Internet accessWord processing software e.g. Microsoft WordUp to date version of MS WindowsWindows Task SchedulerPython 3.x installedPython integrated development environment (IDE) installed e.g. PyCharm, Eclipse, Spyder, ThonnyPython debugger such as Visual Studio code (optional) |
What will the assessor provide? | Access to learning materials. A personal computer with the following: Internet accessWord processing software e.g. Microsoft Word. OS scheduling software Windows Task Scheduler Technical requirements Up to date version of MS WindowsSufficent processing ability and storage to efficiently run all required software and development environments. Refer to individual software specifics for details.Network with at least two (2) networked computers with ports open and closed Software development and testing environment Python 3.x installedPython integrated development environment (IDE) installed e.g. PyCharm, Eclipse, Spyder, ThonnyPython debugger such as Visual Studio code (optional) The following documentation included in ICTNWK428_AE_CS_2of2_Appx_SR1.zip folder Gelos Enterprises Scenario – Gelos Enterprises_Scenario.pdfGelos Enterprises Organisational Chart – Gelos Enterprises_Org_chart.pdfGelos Enterprises IT WHS Compliance Checklist – Gelos Enterprises_IT_WHS_checklist.pdfGelos Enterprises Network Script Documentation Template – Gelos Enterprises_Network_Script_Documentation_Template.docx |
Due date and time allowed/location | Refer to Unit Assessment Guide for due dates. The estimated time for a student to complete this assessment is three (3) hours. However, there is no time limit for students to complete this assessment. |
Supervision | The following assessment tasks must take place in a classroom with the assessor present: Task 1.1 – Role play All the remaining task may be completed outside of the classroom as a ‘take home’ task however regular contact with the assessor is recommended. Your assessor may ask for you to demonstrate your script in the classroom. Your assessor may ask for additional evidence to verify the authenticity of your submission and confirm that the assessment task was completed by you. You may access referenced text, learning notes and other resources. |
Assessment feedback, review or appeals | In accordance with the TAFE NSW policy Manage Assessment Appeals, all students have the right to appeal an assessment decision in relation to how the assessment was conducted and the outcome of the assessment. Appeals must be lodged within 14 working days of the formal notification of the result of the assessment. If you would like to request a review of your results or if you have any concerns about your results, contact your Teacher or Head Teacher. If they are unavailable, contact the Student Administration Officer. Contact your Head Teacher for the assessment appeals procedures at your college/campus. |
Specific task instructions
The instructions and the criteria in the case study below will be used by the assessor to determine whether the student has satisfactorily completed the task. Use these instructions and criteria to ensure you demonstrate the required knowledge.
Screenshots
Throughout this assessment, you will be required to take screenshots of your work.
Where indicated in this assessment you will be required to provide screenshots and descriptions of your work. You are not required to provide screenshots for every single step of a task, but screenshots showing final settings and confirming the functionality was achieved.
Along with the screenshots you also need to include a short description of the work you have done.
Please ensure that the screenshots include the date and time on the PC in the lower right corner.
Case Study Scenario
This case study scenario relates to all tasks within this assessment
To complete this assessment, you will be required to first read the case study scenario below.
Gelos Enterprises
Carefully read the following scenario and related documents. These documents provide you with the background information for the organisation.
- Gelos Enterprises Scenario (Gelos Enterprises_Scenario.pdf)
- Gelos Enterprises Organisational Chart (Gelos Enterprises_Org_chart.pdf)
- Gelos Enterprises WHS Checklist (Gelos Enterprises_IT_WHS_checklist.pdf)
Your Role
You have been hired by Gelos Enterprises as a network scripting consultant. Your role is to develop a script to automate some processes in the network. This script will increase efficiency, reduce costs and ensure a high level of security in the network.
Gelos Enterprises requires that all scripts developed meet organisational requirements, are correct and ensure a continued high level of network security.
Part 1: Determine requirements
In this part of the assessment, you will determine and document the business problem and script solution requirements according to organisational requirements.
Task 1.1 – Roleplay
To complete this part of the assessment, you will be required to participate in a role-play.
Below is a summary of the role-play scenario. You will need to demonstrate sufficient knowledge and skills to determine the problem and script solution requirements according to the organisational requirements.
You will need to act out the scenario script in front of your assessor.
This role play will take approximately 5 to 10 minutes.
Your demonstration will be used as part of the overall evidence requirements of the unit.
You should refer to the list of criteria, provided in Observation Checklist 1, to understand what skills you need to demonstrate in this section of the assessment. This Checklist outlines the Performance Criteria, Performance Evidence and Assessment Conditions your assessor will be marking you on.
These role-plays will be observed by your assessor.
Once completed you will need to submit this assessment to your assessor for marking.
Roleplay scenario: Meet with organisation representative
In order to determine the organisational requirements, you need to meet with the Gelos Enterprises organisational representative and key stakeholder, Terrence Stewart, Gelos Enterprises Network Manager. In this meeting, you will discuss the business problem which requires a script solution.
Terrence has a very high level of IT technical knowledge and is very familiar with the network. In fact, he will expect you to be able to talk in technical terms.
It is important that you keep notes during this meeting as you will need this information to complete tasks later in this assessment.
In this meeting your assessor will organise for suitable persons, such as another teacher, student or industry representative, to play the role of Terrence Stewart, Gelos Enterprises Network Manager.
You will document the outcomes of this role play in Task 1.2 – Document requirements.
Roles and details for each party:
Observation Checklist 1
The Observation Checklist will be used by your assessor to mark your performance in the role play scenario in Task 1.1 of this assessment. Use this checklist to understand what skills you need to demonstrate in the role play. The Checklist lists the assessment criteria used to determine whether you have successfully completed this assessment event. All the criteria must be met. Your demonstration will be used as part of the overall evidence requirements of the unit. The assessor may ask questions while the demonstration is taking place or if appropriate directly after the activity has been completed.
Date of Observation: Click or tap to enter a date.
Task # | Task/Activity Performed | S | U/S | Assessor Comments (Describe the student’s ability in demonstrating the required skills and knowledge) |
OC 1 | Determine the business problem and script requirements, including script inputs and outputs, from organisational requirements | ☐ | ☐ |
Task 1.2 – Document requirements
Read the questions carefully and place your answers in the spaces provided. Use the word limit as an indication of the detail required in your answer.
Ensure that all answers are in your own words.
- Identify and summarise the organisational requirements, including the business problem. as described by the organisational representative during the interview.
Your answer should be between 75 and 100 words and can be written in point form.
- Identify and describe the specific requirements for the script that will be developed to solve the business problem. Include the script’s inputs and outputs that are required for operation.
Your answer should be between 75 and 100 words and can be written in point form.
Part 2: Employ software development cycle
In this part of the assessment you will employ an abbreviated software development cycle for the creation of the script according to task requirements.
Task 2.1 – Software development cycle
Identify and describe the processes, in the abbreviated software development cycle, that you will employ for the creation of the script. Specify the tasks you will implement in each process. Ensure that this reflects the task requirements for the script.
Your answer should be between 100 and 150 words and can be written in point form.
Part 3: Develop solution algorithm
In this part of the assessment you will develop a pre-emptive downtime solution algorithm that is guaranteed to end. This algorithm must be developed according to task requirements. You will continue to employ your nominated abbreviated software development cycle.
Scenario – Clarification of task requirements
After a review with Terrence Stewart, Gelos Enterprises Network Manager and Gelos Enterprises organisational representative and key stakeholder, the requirements for the script have been clarified as follows:
- The user will identify the range of computers to be check by providing a subnet prefix and subnet mask e.g. subnet prefix 192.168.0 with subnet mask of 255.255.255.0. This input will need to be validated to ensure a valid subnet prefix and subnet mask values is used. i.e. each octet is in the range 0 to 255
- The ports are defined in a file (ports.txt) which will be imported at the start of the script. You may assume that valid ports have been entered in this file.
- The script will generate IP addresses which fall within the user’s nominated range and also adheres to the following requirements:
- The top ten (10) IP addresses will be reserved for printers and servers and can be skipped
- The script must skip every IP address that is evenly numbered (i.e. divisible by 2)
- E.g. 192.168.0.12, 192.168.0.14, … , 192.168.0.252, 192.168.0.254 will be skipped
- For each of the IP addresses in the user’s nominated range:
- Scan all ports
- Output the status of each port including “port open” or “port closed”
- IP address that are unavailable for port scanning are to be noted as “unavailable”
- The script must output the IP address and port status to:
- Console
- Log file (ip_port_log.txt)
- Windows event log for later viewing in Windows Event Viewer (IP Addresses Only)
- All code is to be developed using Python and run on a current MS Windows OS
Task 3.1 – Develop Algorithm
Following your nominated software development lifecycle, develop a pre-emptive downtime solution algorithm for the script, according to the task requirements.
This solution algorithm must:
- Solve the business problem and meet the task requirements including the additional task requirements
- Be written in pseudocode
- Be well structured and implement sequence, selection and iteration
- Use a modular approach
- Take into account all possible situations including:
- Invalid user input
- The IP address being unavailable for port scanning
- Be guaranteed to end and provide a method for the user to exit the script
- Include sufficient detail to demonstrate script requirements are being met
Use the following area for your answer.
Part 4: Create and implement code
In this part of the assessment, you will create and implement code according to the task requirements. You will continue to employ your nominated abbreviated software development cycle.
Scenario – Gelos Enterprises Coding Standards
Gelos Enterprises includes the following as part of their coding standards. All networking script code must meet the following criteria:
- Be developed using Python and run under the current MS Windows OS.
- Follow best practice syntax of the Python Language Reference (PLR).
- Follow best practice syntax of the Python Standard Library (PSL) including any relevant built-in modules.
- Follow best practice for design and is well structured
- Adheres to relevant government regulatory information, including privacy requirements
- Includes the minimal technical documentation as following:
- In a comment in at the top of the script:
- Author’s name
- Email address
- Copyright (as ‘Copyright Red Opal Innovations’)
- License (as ‘Proprietary‘)
- Last updated date
- Version (numbered starting 1.0.1)
- Status (set initially to ‘development‘)
- An overview of the script’s logic
- Appropriate commenting throughout the script
- In a comment in at the top of the script:
- Use consistent naming conventions for all variables and functions
- Use appropriate data types, operators and expressions
- All functions or modules, defined in a script, may only have a single purpose
- Be easy to read and understand.
Scenario – Gelos Enterprises Security policy extract
Gelos Enterprise’s security policy states that all network-scripts should run at the minimum permission level required for task completion. Scripts should not run at the administrator level unless explicitly authorised. All scripts must be registered correctly with Windows and signed.
Task 4.1 – Create code
Create the code to implement the solution algorithm for the script according to the task requirements.
Ensure that your code:
- Matches the solution algorithm you developed in Part 3 Task 3.1
- Is written in a clear, concise, and logical manner that follows the Gelos Enterprises Coding Standards
- Seeks and responds to user’s input to control the script’s operation
- Implements selection, iteration and sequence to control script execution flow
- Implements sequential file input and output to retrieve and store information
- Runs securely and is registered with Windows registry and signed.
Save your code as CheckIPPort.py.
NOTE: A requirement of the script is that output must be sent to MS Windows Event Loggingfacility during the execution of the script. In order to use the MS Windows Event Logging facility, the PyWin32 library must first be installed using PIP.
Assessment Checklist 1
The following checklist will be used by your assessor to mark your performance against the assessment criteria of your submitted script. Use this checklist to understand what skills and/or knowledge you need to demonstrate in your submission. All the criteria described in the Assessment Checklist must be met. The assessor may ask questions directly after the task has been submitted.
# | Instructions | S | U/S | Assessor Comments |
OC 1 | Script matches solution algorithm and file name requirements | ☐ | ☐ | |
OC 2 | Script code is clear, concise and logical and follows the Gelos Enterprises Coding Standards | ☐ | ☐ | |
OC 3 | Script code seeks and responds to the user’s input to control the script’s operation | ☐ | ☐ | |
OC 4 | Script code implements selection, iteration and sequence to control script execution flow | ☐ | ☐ | |
OC 5 | Script code implements sequential file input and output to retrieve and store information | ☐ | ☐ | |
OC 6 | Script runs securely | ☐ | ☐ |
Part 5: Testing
In this part of the assessment, you will test the script against the design specification and task requirements. This will enable you to identify and resolve any scripting language bugs, syntactical, logical, or design errors. You will continue to employ your nominated abbreviated software development cycle.
Task 5.1: Check script syntax
To identify and resolve any scripting language bugs or syntax errors in your script do the following:
- Use the online facility PEP 8 to check your script.
- Include a screenshot of your first set of results, from the PEP 8 facility, in the following area a).
- Update your script to resolve all errors and as many warnings as possible.
- Again, use the online facility PEP 8 (http://pep8online.com) to check your script.
- Include a screenshot of your second set of results, from the PEP 8 online facility, in the following area b) to show that you have resolved any scripting language bugs or syntax errors in your script.
The final screen shots where all errors and most warnings have been fixed |
Task 5.2 Prepare test plan
Create a test plan to test your script. In the test plan, you must design a range of tests to confirm that the script meets the design specification and task requirements. Each test case should include:
- A unique test case number
- A brief description of what the test case is attempting to test
Ensure that your test case refers to only one criteria at a time
- Input values that are to be provided to the script for the subnet prefix, subnet mask and ports.
You may find that you can use the same or similar input values to perform a range of test cases.
- Expected output from the script
- An area for the actual output from the script (leave this blank for now)
- Leave the area for actual output and result status blank for now.
The first test case has been included as an example (You may duplicate this test case, but it must contain your own test data and results). Include another 5 (five) test cases in your test plan.
Use the following Test Plan table for your answer. (see after Task 6.3)
Task 5.3 Conduct test cases
Conduct the tests cases in your Test Plan. For each test case:
- Include your actual results in the Test Plan
- Identify, in the Test Plan, if the result status is a PASS or a FAIL
- If you identified that the script failed a test case, then:
- Use a debugging tool, such as Python Tutor to step through the code, watching variables and execution values, to detect any scripting language bugs or syntactical, logical or design errors.
When you find any bugs or errors, take a screenshot of the debugger window and include this, along with the test case number and a short explanation, in the Debugging results table, following after the Test Plan.
- Update your code to resolve any bugs or errors.
- Rerun the test case, including your actual results and result status in the Test Plan.
- Do this until you have successfully completed the test case.
You will need to include debugger screen shots and explanation for at least one (1) test case in the Debugging results table.
Use the following Test Plan table and Debugging results table for your answer.
Table 2 – Test plan
Test case # | Description | Input | Output | Result Status Pass/Fail | |||
Subnet prefix | Subnet Mask | Ports | Expected | Actual | |||
1 | Test to ensure that the correct IP address is generated | 192.168.10 | 255.255.255.0 | 80, 21 | 192.168.10.11 to 192.168.10.255 – status of ports 80 and 21 included for all IP address | 192.168.10.17 to 192.168.10.253 – status of ports 80 and 21 included for all IP address 192.168.10.11 to 192.168.10.255 – status of ports 80 and 21 included for all IP address | FAIL PASS |
Table 3 Debugging results table
Test case # | Explanation | ||
Screenshot | |||
Part 6: Implement operating system tools
In this part of the assessment, you will use searching and sorting tools to select information from the operating systems log files. You will need to implement controls and demonstrate the capability of your script to maintain a log of its operations. As part of this you will need to register and run the script with the OS scheduling facility.
Task 6.1 – Select information from systems log
After the script has run successfully access the MS Windows Event Viewer and complete the following:
Use the following area for your answer.
Search criteria selects all warning events relating to script (Event 7040). Log show attempts to access ports which were successful (as an Open) and unsuccessful (as Closed) |
Task 6.2 – Schedule and run script
Please note that in this task you will be creating a new version of your script. This version is only to be used for this task.
You will need to retest your code to ensure it still runs successfully.
Save this version of your code as CheckIPPort2.py.
Ensure that the script runs under the appropriate level by configuring the security options in MS Windows Task Scheduler.
To demonstrate that this has been done correctly take a screenshot(s) of the MS Windows Task Scheduler window and paste it into the following area a).
Include a brief description explaining the content of the screenshot(s).
Take a screenshot(s) of the results and paste it into the following area b).
Include a brief description explaining the content of the screenshot(s) and how it relates to the running of the script.
Script run at scheduled time of xx. Log should indicate script triggered to run at scheduled time |
Part 7: Finalise script activities
In this part of the assessment, you will complete the script finalisation activities. This includes storing unused materials and ICT equipment according to manufacturing specifications and organisational procedures. It also includes creating user documentation and filing it in the required location according to the organisational procedures. This will complete your nominated abbreviated software development cycle.
Scenario – Gelos Enterprises Storage of electronic files procedure
The following is an extract from Gelos Enterprises’s Storage of electronic files procedure.
Networking Scripts
All files relating to networking scripts are to be filed under the Networking Script library folder as follows:
Folder: Named according to Script title e.g. ChkNetworkStatus
Subfolder: Source containing all source files relating to the actual script code
Subfolder: Documentation containing all files relating to the documentation of the script
Subfolder: Parameters containing any parameter files required for script execution. Create empty files if these are to be edited by the user.
All files are to be set to Read-only.
Scenario – Gelos Enterprises Storage of equipment and materials procedure
The following is an extract from Gelos Enterprises Storage of equipment and materials procedure.
Storage of unused materials
All unused materials are to be returned to their original storage location and stowed in a tidy manner. Any manufacturer’s specifications must be followed to ensure the material is stored safely and ready for later use. The manufacturer’s specification can be found on the material’s packaging or the material’s label.
Storage of equipment
All equipment is to be returned to its original storage location and stowed in a tidy manner, according to the manufacturer’s specification. Manufacturer’s specification can be found in the equipment’s manual, manufacturer’s website and/or on the equipment itself. Ensure all equipment is completely shut down. Use storage cases if available.
All cables and accessories are to be unplugged from the equipment and stored with the equipment or in their storage location. At all times Work, Health and Safety practice and procedures should be followed as per the Gelos Enterprises IT WHS Compliance Checklist.
Task 7.1 – Document script
Using the supplied Gelos Enterprises Network Script Documentation Template, document the script. In your document you need to include the following:
- Script Identify – as the file name of the script
- Current version
- Overview of the purpose of the script
- Input as what is supplied as input including any validation, restrictions or assumptions
- The output that is generated by the script including where the output will be located after the script has run
- The operation explains how input is accepted, processed and output produced. This does not need to be a full algorithm however it must be sufficient for another work colleague to understand how the script performs its task
- External libraries and modules you need to run the script noting any that may need to be installed
- Event ID and Category ID from your registration of the script
- Author name, Email address, Date created and Last update date
- File location in which the script is stored.
Save your documentation as CheckIPPort Network Script Documentation.docx.
Task 7.2 – File documentation
Under the Submission folder for this assessment, file the script (both versions), including all documentation, parameter and source files, according to Gelos Enterprises’s organisational procedure, Gelos Enterprises Storage of electronic files procedure.
Task 7.3 – Store ICT equipment
Using Gelos Enterprises’s organisational procedure, Gelos Enterprises Storage of equipment and materials procedure store all equipment and materials that you used to complete this assessment item.
Using your mobile phone, take the photo(s) of the stowed equipment and any materials and include them in the following area. Include a brief explanation with each photo.
Assessment feedback
NOTE: This section must have the assessor signature and student signature to complete the feedback.
Assessment outcome
☐ Satisfactory
☐ Unsatisfactory
Assessor feedback
☐ Was the assessment event successfully completed?
☐ If no, was the resubmission/re-assessment successfully completed?
☐ Was reasonable adjustment in place for this assessment event?
☐ Has the Assessment Declaration on page 1 of the assessment been signed and dated by the student?
☐ Are you assured that the evidence presented for assessment is the student’s own work?
If yes, ensure it is detailed on the assessment document.
Comments:
Assessor name, signature and date:
Student acknowledgement of assessment outcome
Would you like to make any comments about this assessment?
Student name, signature and date
NOTE: Make sure you have written your name at the bottom of each page of your submission before attaching the cover sheet and submitting to your assessor for marking
Get expert help for Create scripts for networking and many more. 24X7 help, plag free solution. Order online now!