> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get basic system information.

> Retrieve basic system information via agent skill.

```python theme={null}
#!/usr/bin/env python3
"""Get basic system information."""

import json
import platform
import sys
from datetime import datetime

# ---------------------------------------------------------------------------
# Create Example
# ---------------------------------------------------------------------------

try:
    info = {
        "os": platform.system(),
        "os_version": platform.version(),
        "python_version": sys.version,
        "machine": platform.machine(),
        "processor": platform.processor(),
        "current_time": datetime.now().isoformat(),
        "hostname": platform.node(),
    }
except Exception as e:
    info = {"error": str(e)}

print(json.dumps(info, indent=2))

# ---------------------------------------------------------------------------
# Run Example
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    raise SystemExit("This module is intended to be imported.")
```

## Run the Example

```bash theme={null}
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/05_agent_os/skills/sample_skills/system-info/scripts

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

python get_system_info.py
```
