File size: 2,704 Bytes
65be428 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# π 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"
```
|