|
# π Usage Examples |
|
|
|
## Quick Start |
|
|
|
### 1. Pull and Run |
|
```bash |
|
ollama pull radoni/vmware-infrastructure-automation-ai |
|
ollama run radoni/vmware-infrastructure-automation-ai |
|
``` |
|
|
|
### 2. Automatic Menu Display |
|
The AI automatically shows this menu: |
|
|
|
``` |
|
ποΈ VMware Infrastructure Automation - 20-Part HANDS-ON Implementation |
|
================================================================ |
|
|
|
π Foundation (Parts 1-5): |
|
1. π Universal Discovery Engine β START HERE |
|
2. π Protocol Translator |
|
3. π€ Integration Bot |
|
4. β‘ Sync Matrix |
|
5. π§ Intelligence Mapper |
|
|
|
[... complete menu ...] |
|
|
|
Which part? (Enter 1-20) |
|
``` |
|
|
|
## Implementation Example |
|
|
|
### Part 1: Universal Discovery Engine |
|
``` |
|
You: 1 |
|
|
|
AI: # Part 1: Universal Discovery Engine - HANDS-ON EXECUTION |
|
|
|
## Prerequisites Check |
|
```bash |
|
which python3 && echo "β
Python3" || echo "β Install Python3" |
|
ping -c 1 vcenter.yourdomain.com && echo "β
vCenter reachable" |
|
``` |
|
|
|
## EXECUTION STEPS |
|
|
|
### Step 1: Install Dependencies |
|
```bash |
|
pip3 install pyvmomi requests pandas |
|
``` |
|
|
|
### Step 2: Create Discovery Script |
|
```python |
|
# Save as discovery_engine.py |
|
#!/usr/bin/env python3 |
|
import ssl |
|
import json |
|
from pyVim.connect import SmartConnect, Disconnect |
|
from pyVmomi import vim |
|
from datetime import datetime |
|
|
|
# [Complete working script provided] |
|
``` |
|
|
|
### Step 3: Execute |
|
```bash |
|
python3 discovery_engine.py |
|
ls -la infrastructure_discovery.json |
|
``` |
|
|
|
β
Part 1 Complete! What's next? (1-4) |
|
``` |
|
|
|
## Key Features |
|
|
|
### Real Commands Only |
|
- β
Copy-paste ready scripts |
|
- β
Working configurations |
|
- β
Cross-platform support |
|
- β Minimal theory/explanation |
|
|
|
### Interactive Flow |
|
- Always starts with 20-part menu |
|
- User selects part (1-20) |
|
- AI provides executable implementation |
|
- AI asks what's next |
|
|
|
### Domain Focus |
|
- β
VMware infrastructure automation |
|
- β
PowerCLI, pyVmomi, REST APIs |
|
- β Refuses non-VMware topics |
|
- β Redirects to menu for off-topic queries |
|
|
|
## Advanced Usage |
|
|
|
### Project Structure |
|
Creates organized automation project: |
|
``` |
|
vmware-automation/ |
|
βββ scripts/ |
|
βββ config/ |
|
βββ parts/01-discovery/ |
|
βββ parts/02-translator/ |
|
βββ ... (all 20 parts) |
|
``` |
|
|
|
### Integration Between Parts |
|
Each part builds on previous ones: |
|
- Part 1 β Discovery data for Part 2 |
|
- Part 2 β API layer for Part 3 |
|
- Part 3 β Integration for Part 4 |
|
- And so on... |
|
|
|
## Troubleshooting |
|
|
|
### No Menu Displayed |
|
```bash |
|
# Restart if needed |
|
ollama serve |
|
ollama run radoni/vmware-infrastructure-automation-ai "hello" |
|
``` |
|
|
|
### Wrong Response Type |
|
The AI should always give executable commands. If not: |
|
```bash |
|
# Be specific |
|
ollama run radoni/vmware-infrastructure-automation-ai "Part 1 hands-on commands" |
|
``` |
|
|