system-inventory-script

🖥️ System Inventory Script

This project generates a detailed System Inventory Report on macOS using a Bash script.
It collects key system information used by IT Support, SysAdmins, and Security teams for auditing, troubleshooting, and documentation.


🔧 Features

This script automatically gathers:

This mirrors real‑world IT workflows used in system diagnostics and security assessments.


📜 Script: inventory.sh

#!/bin/bash

echo "===== System Inventory Report ====="
echo "Generated on: $(date)"
echo ""

echo "---- Operating System ----"
sw_vers
echo ""

echo "---- Hardware ----"
system_profiler SPHardwareDataType
echo ""

echo "---- Network ----"
ipconfig getifaddr en0
echo ""

echo "---- Disk Usage ----"
df -h /
echo ""

echo "---- Logged In Users ----"
who
echo ""

▶️ How to Run

1. Make the script executable

chmod +x inventory.sh

2. Run the script

./inventory.sh

3. Save the output to a file

./inventory.sh > sample-output.txt

This creates a clean, readable system report.


📁 Project Files


🧠 What This Project Demonstrates

This project shows the ability to gather system data, automate tasks, and document results — essential skills for IT Support and Security roles.


🗣️ Presentation Summary

“This script automatically collects key system information including OS version, hardware specs, network configuration, disk usage, and logged‑in users. It demonstrates my ability to automate IT tasks, audit systems, and work with command‑line tools commonly used in IT support and security environments.”