# Validated Set Deployment - Quick Reference

## One-Command Deployment

```bash
cd /opt/smom-dbis-138-proxmox
sudo ./scripts/deployment/deploy-validated-set.sh \
    --source-project /path/to/smom-dbis-138
```

## Common Commands

### Deploy Everything
```bash
sudo ./scripts/deployment/deploy-validated-set.sh --source-project /path/to/smom-dbis-138
```

### Bootstrap Existing Network
```bash
sudo ./scripts/network/bootstrap-network.sh
```

### Validate Validators
```bash
sudo ./scripts/validation/validate-validator-set.sh
```

### Check Node Health
```bash
sudo ./scripts/health/check-node-health.sh <VMID>
```

### Check All Services
```bash
for vmid in 1000 1001 1002 1003 1004 1500 1501 1502 1503 2500 2501 2502; do
    echo "=== Container $vmid ==="
    pct exec $vmid -- systemctl status besu-validator besu-sentry besu-rpc --no-pager 2>/dev/null | head -5
done
```

## VMID Reference

| VMID Range | Type | Service Name |
|------------|------|--------------|
| 1000-1004 | Validators | besu-validator |
| 1500-1503 | Sentries | besu-sentry |
| 2500-2502 | RPC Nodes | besu-rpc |

## Script Options

### deploy-validated-set.sh
- `--skip-deployment` - Skip container deployment
- `--skip-config` - Skip configuration copy
- `--skip-bootstrap` - Skip network bootstrap
- `--skip-validation` - Skip validation
- `--source-project PATH` - Source project path
- `--help` - Show help

## Troubleshooting Quick Commands

```bash
# View logs
pct exec <vmid> -- journalctl -u besu-validator -f

# Restart service
pct exec <vmid> -- systemctl restart besu-validator

# Check connectivity
pct exec <vmid> -- netstat -tuln | grep 30303

# Check RPC (if enabled)
pct exec <vmid> -- curl -s -X POST -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
    http://localhost:8545
```
