- Extract 9 skill files from command knowledge: - mcp-tools-reference.md: Complete NetBox MCP tools reference - system-discovery.md: Bash commands for system info gathering - device-registration.md: Device registration workflow - sync-workflow.md: Machine sync process - audit-workflow.md: Data quality audit checks - ip-management.md: IP/prefix management and conflict detection - topology-generation.md: Mermaid diagram generation - change-audit.md: NetBox change audit workflow - visual-header.md: Standard visual header pattern - Slim all 11 commands to under 60 lines: - cmdb-sync.md: 348 -> 57 lines - cmdb-register.md: 334 -> 51 lines - ip-conflicts.md: 238 -> 58 lines - cmdb-audit.md: 207 -> 58 lines - cmdb-topology.md: 194 -> 54 lines - initial-setup.md: 176 -> 74 lines - change-audit.md: 175 -> 57 lines - cmdb-site.md: 68 -> 50 lines - cmdb-ip.md: 65 -> 52 lines - cmdb-device.md: 64 -> 55 lines - cmdb-search.md: 46 lines (unchanged) - Update agent to reference skills for best practices - Preserve existing netbox-patterns skill Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.5 KiB
1.5 KiB
description
| description |
|---|
| Register the current machine into NetBox with all running applications |
CMDB Machine Registration
Register the current machine into NetBox, including hardware info, network interfaces, and running applications.
Skills to Load
skills/visual-header.mdskills/device-registration.mdskills/system-discovery.mdskills/netbox-patterns/SKILL.mdskills/mcp-tools-reference.md
Usage
/cmdb-register [--site <site-name>] [--tenant <tenant-name>] [--role <role-name>]
Options:
--site <name>: Site to assign (will prompt if not provided)--tenant <name>: Tenant for resource isolation (optional)--role <name>: Device role (default: auto-detect based on services)
Instructions
Execute skills/visual-header.md with context "Machine Registration".
Execute skills/device-registration.md which covers:
- System discovery via Bash (use
skills/system-discovery.md) - Pre-registration checks (device exists?, site?, platform?, role?)
- Device creation via MCP
- Interface and IP creation
- Container registration (if Docker found)
- Journal entry documentation
Error Handling
| Error | Action |
|---|---|
| Device already exists | Suggest /cmdb-sync or ask to proceed |
| Site not found | List available sites, offer to create new |
| Docker not available | Skip container registration, note in summary |
| Permission denied | Note which operations failed, suggest fixes |
User Request
$ARGUMENTS