Comprehensive examples of all SmartOps commands with natural language variations and detailed response formats.
Shows all EC2 instances with current status and basic metrics.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps list instances
Response Format:
📊 EC2 Instance Summary
Found 5 instances in us-east-1
✅ web-server-01 (i-0abc123def)
Type: t3.medium | State: running
CPU: 45% | Memory: 62% | Disk: 38%
⚠️ database-01 (i-0def456ghi)
Type: m5.large | State: running
CPU: 78% | Memory: 85% | Disk: 72%
[... more instances ...]
Detailed information about a specific instance.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps describe instance <instance-id>
Response Format:
📋 Instance Details: web-server-01
Instance ID: i-0abc123def
Type: t3.medium (2 vCPU, 4 GB RAM)
State: running (since 2024-03-15 10:30 UTC)
Platform: Amazon Linux+
AZ: us-east-1a
Private IP: 10.0.1.45
Public IP: 54.123.45.67
Tags:
- Name: web-server-01
- Environment: production
- Team: platform
Monitoring:
- CPU: 45% (avg last hour)
- Memory: 62% (current)
- Network In: 125 MB/hour
- Network Out: 450 MB/hour
Comprehensive health status of all instances.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps health report
Response Format:
🏥 Infrastructure Health Report
Generated: 2024-03-20 14:30 UTC
Overall Health: ⚠️ ATTENTION NEEDED
Summary:
✅ Healthy: 12 instances
⚠️ Warning: 3 instances
❌ Critical: 1 instance
Issues Requiring Attention:
❌ CRITICAL: app-server-03
- CPU: 95% (sustained for 30 min)
- Action: Consider scaling or investigating process
⚠️ WARNING: database-01
- Disk: 85% full
- Action: Clean up logs or expand storage
⚠️ WARNING: web-cache-02
- Memory: 88% utilized
- Action: Monitor for OOM issues
📈 Trends:
- CPU usage up 15% from yesterday
- 2 new instances added this week
- Cost trending 8% over budget
Check health of specific instance.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps check health <instance-id>
Analyze EC2 costs and identify savings opportunities.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps cost analysis
Response Format:
💰 EC2 Cost Analysis Report
Period: Last 30 days
Current Spending:
- Total: $3,456.78
- On-Demand: $2,890.45 (84%)
- Reserved: $566.33 (16%)
- Spot: $0.00 (0%)
Top Recommendations:
1. 🎯 Right-size Overprovisioned Instances
Potential Savings: $456/month (13%)
- web-server-01: t3.medium → t3.small
Current: 15% CPU avg → Save $28/month
- test-server-02: m5.xlarge → m5.large
Current: 8% CPU avg → Save $95/month
2. 💼 Purchase Reserved Instances
Potential Savings: $890/month (26%)
- 5 instances running 24/7
- Recommend 1-year no upfront RIs
3. 🌙 Implement Schedule-Based Scaling
Potential Savings: $234/month (7%)
- Dev/test instances can be stopped nights/weekends
- 10 instances identified
Total Potential Savings: $1,580/month (46%)
Get specific rightsizing suggestions.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps rightsizing recommendations
AI-guided troubleshooting for instance issues.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps troubleshoot <instance-id>
Interactive Response:
🔧 Troubleshooting Assistant
I'll help you troubleshoot web-server-01. Let me gather some information...
Current Status:
- Instance is running
- CPU: 45% (normal)
- Memory: 92% (HIGH)
- Disk I/O: Normal
- Network: Normal
⚠️ High memory usage detected!
Let me check what's consuming memory...
[Running diagnostic commands via SSM]
Top Memory Consumers:
1. java process: 2.8 GB (70%)
2. mysql: 650 MB (16%)
3. nginx: 120 MB (3%)
Recommendations:
1. Immediate: Restart the Java application
2. Short-term: Increase instance type to t3.large
3. Long-term: Investigate memory leak in application
Would you like me to:
A) Restart the Java application now
B) Show application logs
C) Create a snapshot before changes
Identify instances with problems.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps find issues
Run commands on instances via SSM.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps execute "<command>" on <instance-id>
Safety Features:
Response Format:
🔨 Command Execution Request
Target: web-server-01 (i-0abc123def)
Command: systemctl restart nginx
⚠️ This command will restart the nginx service.
This may cause brief downtime.
Type 'yes' to confirm execution
[After confirmation]
✅ Command Executed Successfully
Output:
nginx.service - The nginx HTTP Server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
Active: active (running) since Thu 2024-03-20 15:45:32 UTC
Execution Time: 1.2 seconds
Command ID: abc-def-ghi-123
Start stopped instances.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps start instance <instance-id>
Stop running instances.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps stop instance <instance-id>
Safety Confirmation:
⚠️ Stop Instance Confirmation
You're about to stop: prod-database-01
Environment: production
Current connections: 45
This action will:
- Terminate all active connections
- Stop the instance (data on instance store volumes will be lost)
- Incur no further hourly charges
Type 'yes' to confirm stopping this instance
Restart instances gracefully.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps reboot instance <instance-id>
Set up automated daily reports.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps schedule daily report at <time>
Show available commands and usage.
Natural Language Examples:
Direct Command:
@Ohlala SmartOps help
Response Format:
🤖 Ohlala SmartOps - Command Reference
I understand natural language! Just describe what you need.
You can also use these commands:
📊 Monitoring
• list instances - Show all EC2 instances
• health report - Comprehensive health status
• check health <id> - Check specific instance
💰 Cost Optimization
• cost analysis - Analyze spending
• rightsizing recommendations - Find savings
🔧 Troubleshooting
• troubleshoot <id> - AI-guided diagnostics
• find issues - Identify problems
🔨 Remote Execution
• execute "<command>" on <id> - Run via SSM
⚙️ Instance Control
• start/stop/reboot instance <id>
📅 Scheduling
• schedule daily report at <time>
💡 Tips:
- Use instance names or IDs
- Ask follow-up questions
- Natural language works best!
Need more help? Visit docs.ohlala.cloud
Execute commands across multiple instances:
@Ohlala SmartOps execute "sudo yum update -y" on tag:Environment=dev
Filter instances by various criteria:
@Ohlala SmartOps list instances where cpu > 80%
@Ohlala SmartOps find instances tagged Environment=production
Combine multiple operations:
@Ohlala SmartOps stop all dev instances then create ami backups