radoni's picture
Upload USAGE.md with huggingface_hub
65be428 verified
# πŸš€ 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"
```