0% found this document useful (0 votes)
2 views

Based Scripting Questions

The document outlines a list of 25 scripting tasks aimed at system monitoring, maintenance, and automation. Key tasks include monitoring disk usage, cleaning temporary files, backing up databases, and validating IP addresses. The scripts also cover log management, service monitoring, and user management to enhance system efficiency and reliability.

Uploaded by

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

Based Scripting Questions

The document outlines a list of 25 scripting tasks aimed at system monitoring, maintenance, and automation. Key tasks include monitoring disk usage, cleaning temporary files, backing up databases, and validating IP addresses. The scripts also cover log management, service monitoring, and user management to enhance system efficiency and reliability.

Uploaded by

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

1.Write a script to monitor disk usage and alert when over 80%.

2.Write a script to clean /tmp directory older than 7 days.


3.Script to monitor a web service and alert on failure.
4.Rotate logs and keep last 5 files.
5.Backup MySQL DB daily with timestamp.
6.Validate IP addresses in a text file.
7.Read server IPs from a file and ping each.
8.Fetch and email top CPU-consuming processes.
9.SSH into multiple servers and execute commands.
10. Script to archive application logs to S3.
11. Script to restart a service if down.
12. Script to tail multiple logs in parallel.
13. Monitor SSL cert expiration.
14. Parse log file and count failed logins.
15. Report users with UID > 1000.
16. Find and kill zombie processes.
17. Script to compare two directories for differences.
18. Monitor network bandwidth in real-time.
19. Script to create users from CSV file.
20. Alert if a Docker container is not running.
21. Script to auto-deploy a static site using rsync.
22. Create a script to automate git pull and restart service.
23. Generate a dynamic inventory file for Ansible.
24. Build a script to validate YAML/JSON files.
25. Parse Jenkins job status via API and alert if failed.

You might also like