0% found this document useful (0 votes)
5 views2 pages

Practical Scripting Assignment

The document outlines a practical assignment involving Linux and Batch scripting tasks, with a deadline of 11 days. Key tasks include disk monitoring, backup scripts, system updates, user account management, service status checks, log cleanup, and network connectivity checks. Group leaders are responsible for communication and marking upon completion of the assignment.

Uploaded by

mosesagaba502
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Practical Scripting Assignment

The document outlines a practical assignment involving Linux and Batch scripting tasks, with a deadline of 11 days. Key tasks include disk monitoring, backup scripts, system updates, user account management, service status checks, log cleanup, and network connectivity checks. Group leaders are responsible for communication and marking upon completion of the assignment.

Uploaded by

mosesagaba502
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

In your groups work on this practical assignment.

Deadline is 11 days from


today but when you finish get in touch and you get marked. The group leader
sends an email.

Linux Scripting Assignment


1. Disk monitoring: where an email alert can be sent if usage exceeds a certain
threshold
2. Backup script: where a compressed backup of a directory can be created and
saved with its timestamp
3. System Update Script: which updates the system and cleans up unnecessary
packages.
4. User Account Management where a user created automatically with a username
and password specified as variables
5. Service Status Check: which checks if a service is running and restarts it if
necessary.
6. Automatic Log Cleanup: which removes log files older than 7 days from a
specified directory.
7. CPU and Memory Usage Report: which generates a report of CPU and
memory usage.
8. Automatic Security Check (Root Login Detection): which Detects any root
logins by reading the auth log and emails the admin if any root logins are
detected.
9. Process Monitor and Kill High CPU Process: which Kills processes using over
80% CPU.
10. Network Connectivity Checker: which checks if a specified IP address or
domain is reachable.

Batch Scripting Assignment


1. Disk Space Monitor: checks disk space on drive C: and sends an alert if the free
space is below a threshold (e.g., 20%).
2. Backup Script: creates a backup of a specified folder, compresses it, and saves it
with a timestamp.
3. System Update and Cleanup Script: updates installed programs (e.g., via
Chocolatey) and removes temporary files to free up space.
4. Automated User Creation: creates a new user and sets a password. Run as an
administrator.
5. Service Status Check: checks the status of a specified service (e.g., "Spooler")
and starts it if it’s not running.
6. Log File Cleanup: deletes log files older than 7 days from a specified folder.
7. CPU and Memory Usage Report: Generates a report of CPU and memory
usage
8. Monitor and Restart High CPU Process: checks for any process using over a
certain CPU threshold (e.g., 80%) and restarts it.
9. Network Connectivity Check: pings a specified host (e.g., Google) to check for
network connectivity.
10. Scheduled Windows Updates Check: checks for Windows updates and installs
them if available.

You might also like