Got it. I'll keep the viva notes to around 12–15 important questions, with slightly more explanation in each answer so you can understand and speak confidently without memorising lengthy paragraphs.

# Experiment 1 – Linux Infrastructure Monitoring Using CLI Tools

### 1. What is infrastructure monitoring?

Infrastructure monitoring is the process of continuously observing system resources such as CPU, RAM, disk storage and network performance. It helps identify performance issues, resource shortages and potential system failures.

### 2. What is the purpose of Linux monitoring tools?

Linux monitoring tools help administrators understand system health and performance. They identify resource bottlenecks, track utilization and help troubleshoot slow or unresponsive systems.

### 3. Explain the commands `top`, `free`, `df` and `uptime`.

- top: Displays real-time CPU usage, memory usage and running processes.
- free: Displays RAM and swap memory utilization.
- df: Displays disk space usage across mounted filesystems.
- uptime: Displays how long the system has been running and its 1, 5 and 15-minute load averages.

### 4. What is load average?

Load average represents the average number of processes running or waiting for CPU resources over three time intervals: 1, 5 and 15 minutes. A consistently high load average may indicate system overload.

### 5. What is the difference between RAM, swap and disk storage?

- RAM: Fast, temporary memory used by running applications.
- Swap: Disk space used as additional virtual memory when RAM is insufficient.
- Disk: Permanent storage used for operating systems, applications and files.

### 6. Explain `vmstat`, `iostat` and `sar`.

- vmstat: Reports memory, CPU, processes and system I/O statistics.
- iostat: Monitors CPU and disk input/output performance.
- sar: Collects and reports historical system performance statistics.

### 7. How do you collect five samples using these commands?

- `vmstat 2 5` – Collects five samples at 2-second intervals.
- `iostat 2 5` – Collects five CPU and disk I/O samples.
- `sar 2 5` – Collects five CPU utilization samples.

### 8. What is a performance bottleneck? Explain its types.

A bottleneck is a system resource that limits overall performance.

- CPU bottleneck: CPU utilization remains consistently high.
- Memory bottleneck: Available RAM becomes low and swap usage increases.
- Disk I/O bottleneck: Disk operations become slow due to high I/O activity.

### 9. What is I/O wait?

I/O wait is the percentage of time the CPU remains idle while waiting for input/output operations, usually involving disk access. High I/O wait can indicate slow or overloaded storage.

### 10. What is the difference between `free` and `df`?

`free` monitors RAM and swap memory, whereas `df` monitors disk storage utilization. In simple terms, `free` checks memory and `df` checks storage space.

### 11. Why do we collect multiple samples instead of just one?

A single sample only shows system performance at one moment. Multiple samples help identify trends, temporary spikes and continuous resource utilization problems.

### 12. What are monitoring thresholds? Give examples.

A monitoring threshold is a predefined limit for a system metric. When the metric crosses this limit, an alert can be generated.

Examples:

- CPU utilization greater than 80%.
- Disk utilization greater than 90%.

### 13. What is the difference between monitoring and troubleshooting?

Monitoring continuously observes system performance and detects abnormal conditions. Troubleshooting investigates the root cause of those problems and applies corrective actions.

### 14. What is `sysstat`?

`sysstat` is a Linux package that provides system performance monitoring utilities, including `sar`, `iostat` and other resource-monitoring tools.

### 15. How would you prepare an infrastructure health report?

I would examine CPU, memory, disk and load average using Linux commands. I would identify abnormal resource utilization, determine possible bottlenecks and suggest suitable monitoring thresholds with recommendations.

Last-minute revision – Remember these:

| Concept   | Remember                     |
| --------- | ---------------------------- |
| `top`     | CPU and processes            |
| `free`    | RAM and swap                 |
| `df`      | Disk storage                 |
| `uptime`  | Load average                 |
| `vmstat`  | Overall system statistics    |
| `iostat`  | Disk I/O                     |
| `sar`     | Historical performance       |
| `sysstat` | Monitoring utilities package |

I'll follow this format for the remaining experiments too: fewer questions, slightly detailed answers, practical commands and important concepts.