Skip to content

System Info

System Info

Updates OS, prompts hostname change, displays key info (IP, MAC, network, DNS, kernel, OS, CPU, memory, disk, load, UUID). Logs to /var/log/sys_info.log.

Lab Environment Only

This tool is intended for ephemeral, short-lived lab environments and is not hardened for production use.

System Requirements

This script is designed for Ubuntu LTS and derivatives (Linux Mint, Pop!_OS). Other distributions (RHEL, Fedora, Debian, ARM) are not supported.

Installation Command

curl -sL https://raw.githubusercontent.com/ibtisam-iq/infra-bootstrap/main/scripts/system-checks/sys-info.sh | sudo bash

What It Does

  • Runs preflight.
  • Updates system (apt update/install deps like net-tools, curl, gpg).
  • Prompts hostname change.
  • Gathers/displays info.

Verify

  • Log: cat /var/log/sys_info.log.

  • Hostname: hostname (changed if prompted).

  • Output Example:

    📌 System Information
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     🔹 Hostname : my-lab-server
     🔹 Private IP : 192.168.1.100
     🔹 Public IP : 203.0.113.1
     🔹 MAC Address : aa:bb:cc:dd:ee:ff
     🔹 Network : 192.168.1.100/24
     🔹 DNS : 8.8.8.8, 8.8.4.4
     🔹 Kernel : 5.15.0-91-generic
     🔹 OS : Ubuntu 22.04.4 LTS
     🔹 CPU : Intel(R) Core(TM) i7-8700
     🔹 Memory : 15Gi
     🔹 Disk Usage : 20G / 100G
     🔹 CPU Load : 0.10, 0.20, 0.30
     🔹 UUID : 12345678-1234-1234-1234-123456789abc
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    

Last update: January 21, 2026 11:27:57 PM