CLI Reference
CLI Reference
Section titled “CLI Reference”The hookprobe-ctl command provides unified management of HookProbe.
Syntax
Section titled “Syntax”hookprobe-ctl <command> [options]Service Management
Section titled “Service Management”status
Section titled “status”Show service status.
hookprobe-ctl statusOutput:
HookProbe Status:─────────────────Agent: running (PID 1234)Provision: completedXDP: loaded (native mode)Uptime: 2d 5h 32mStart all HookProbe services.
hookprobe-ctl startStop all HookProbe services.
hookprobe-ctl stoprestart
Section titled “restart”Restart all services.
hookprobe-ctl restartenable
Section titled “enable”Enable auto-start on boot.
hookprobe-ctl enabledisable
Section titled “disable”Disable auto-start.
hookprobe-ctl disableMonitoring
Section titled “Monitoring”health
Section titled “health”Check health status.
hookprobe-ctl healthOptions:
--json # Output as JSON--engines # Include engine status--verbose # Detailed outputmetrics
Section titled “metrics”View current metrics.
hookprobe-ctl metricsOptions:
--format prometheus # Prometheus format--filter <pattern> # Filter metrics--history # Include history--since <duration> # Time range (e.g., 24h)Example:
hookprobe-ctl metrics --filter qsecbit --format jsonView and follow logs.
hookprobe-ctl logsOptions:
-f, --follow # Follow log output-n, --lines <n> # Number of lines (default: 50)<service> # Specific service logsExamples:
hookprobe-ctl logs -fhookprobe-ctl logs -n 100hookprobe-ctl logs hookprobe-provision.serviceUpdates
Section titled “Updates”update
Section titled “update”Manually update HookProbe.
sudo hookprobe-ctl updateWhat it does:
- Create backup
- Pull from GitHub
- Apply updates
- Re-provision
- Restart services
- Verify health
- Rollback on failure
enable-autoupdate
Section titled “enable-autoupdate”Enable weekly auto-updates.
sudo hookprobe-ctl enable-autoupdatedisable-autoupdate
Section titled “disable-autoupdate”Disable auto-updates.
sudo hookprobe-ctl disable-autoupdateConfiguration
Section titled “Configuration”config
Section titled “config”Manage configuration.
hookprobe-ctl config <subcommand>Subcommands:
show # Display active configurationvalidate # Validate config filestest # Test configuration changesExamples:
hookprobe-ctl config showhookprobe-ctl config validatehookprobe-ctl config test --file /etc/hookprobe/config.yamlMesh Operations
Section titled “Mesh Operations”Manage mesh connectivity.
hookprobe-ctl mesh <subcommand>Subcommands:
status # Show mesh statuspeers # List connected peersstats # View contribution statisticsExamples:
hookprobe-ctl mesh statushookprobe-ctl mesh peershookprobe-ctl mesh statsDSM Operations
Section titled “DSM Operations”Manage DSM ledger.
hookprobe-ctl dsm <subcommand>Subcommands:
status # Show DSM statusblocks # List microblockscheckpoint # View checkpointverify # Verify inclusionExamples:
hookprobe-ctl dsm statushookprobe-ctl dsm blocks --recent 10hookprobe-ctl dsm checkpoint --epoch 147hookprobe-ctl dsm verify --block <hash> --checkpoint <epoch>VLAN Operations (Fortress)
Section titled “VLAN Operations (Fortress)”Manage VLANs.
hookprobe-ctl vlan <subcommand>Subcommands:
list # List all VLANsadd # Add new VLANremove # Remove VLANstatus # VLAN statusExamples:
hookprobe-ctl vlan listhookprobe-ctl vlan add --id 50 --name "development"hookprobe-ctl vlan remove --id 50Manage OpenFlow rules.
hookprobe-ctl flows <subcommand>Subcommands:
list # List flow rulesadd # Add flow ruleremove # Remove flow ruleFleet Operations (Nexus)
Section titled “Fleet Operations (Nexus)”Manage edge node fleet.
hookprobe-ctl fleet <subcommand>Subcommands:
list # List managed nodeshealth # Check fleet healthconfig # Push configurationdeploy # Deploy model/updateExamples:
hookprobe-ctl fleet listhookprobe-ctl fleet healthhookprobe-ctl fleet config --update baseline.yamlhookprobe-ctl fleet deploy --model threat-v4.onnxGPU Operations (Nexus)
Section titled “GPU Operations (Nexus)”Manage GPU resources.
hookprobe-ctl gpu <subcommand>Subcommands:
status # Show GPU statusmemory # GPU memory usageprocesses # GPU processesML Operations (Nexus)
Section titled “ML Operations (Nexus)”Manage ML models.
hookprobe-ctl ml <subcommand>Subcommands:
list # List modelstrain # Start trainingexport # Export modelmetrics # Training metricsExamples:
hookprobe-ctl ml listhookprobe-ctl ml train --use-gpuhookprobe-ctl ml export --model threat-v4 --format onnxSystem
Section titled “System”version
Section titled “version”Show version information.
hookprobe-ctl versionuninstall
Section titled “uninstall”Remove HookProbe completely.
sudo hookprobe-ctl uninstallShow help.
hookprobe-ctl helphookprobe-ctl <command> --helpExit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |
| 3 | Service not running |
| 4 | Configuration error |
| 5 | Permission denied |
Next Steps
Section titled “Next Steps”- Configuration - Settings reference
- Debugging - Troubleshooting guide
- Hot Shot Mode - Performance tuning