IT automation with python lab
Here are all the codes I write during my IT automation learning journey.
Purpose : Script to check system states (disks, cpu_usage, etc.) Highlight : working with OS
Purpose : Program to record guests at hotel Highlight : working with file
- Register new guests
- Remove leaving guests
- Verify currently chech in guests
Open the file in "read" mode. Iterate over each line in the file and put each guest's name into a Python list. Open the file once again in "write" mode. Add each guest's name in the Python list to the file one by one.
Purpose : The script reads a CSV file containing a list of employees in organization, counts how many people are in each department, and then generates a report using this information Highlight : working with csv file
Purpose : The script reads a log file and process it (using regex) and insights of it, according to the pattern specified.
Highlight : regex, managing data and processes