CLI Reference
CLI Reference
The hookprobe-ctl command provides unified management of HookProbe.
Syntax
hookprobe-ctl <command> [options]Service Management
status
Show service status.
hookprobe-ctl statusOutput:
HookProbe Status:─────────────────Agent: running (PID 1234)Provision: completedXDP: loaded (native mode)Uptime: 2d 5h 32mstart
Start all HookProbe services.
hookprobe-ctl startstop
Stop all HookProbe services.
hookprobe-ctl stoprestart
Restart all services.
hookprobe-ctl restartenable
Enable auto-start on boot.
hookprobe-ctl enabledisable
Disable auto-start.
hookprobe-ctl disableMonitoring
health
Check health status.
hookprobe-ctl healthOptions:
--json # Output as JSON--engines # Include engine status--verbose # Detailed outputmetrics
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 jsonlogs
View 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
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
Enable weekly auto-updates.
sudo hookprobe-ctl enable-autoupdatedisable-autoupdate
Disable auto-updates.
sudo hookprobe-ctl disable-autoupdateConfiguration
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
mesh
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
dsm
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)
vlan
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 50flows
Manage OpenFlow rules.
hookprobe-ctl flows <subcommand>Subcommands:
list # List flow rulesadd # Add flow ruleremove # Remove flow ruleFleet Operations (Nexus)
fleet
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)
gpu
Manage GPU resources.
hookprobe-ctl gpu <subcommand>Subcommands:
status # Show GPU statusmemory # GPU memory usageprocesses # GPU processesML Operations (Nexus)
ml
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
version
Show version information.
hookprobe-ctl versionuninstall
Remove HookProbe completely.
sudo hookprobe-ctl uninstallhelp
Show help.
hookprobe-ctl helphookprobe-ctl <command> --helpExit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |
| 3 | Service not running |
| 4 | Configuration error |
| 5 | Permission denied |
Next Steps
- Configuration - Settings reference
- Debugging - Troubleshooting guide
- Hot Shot Mode - Performance tuning