๐ฅ๏ธ CLI Reference
Complete command-line interface reference for HyperFabric Interconnect management.
Installation
The CLI is automatically installed with the package:
After installation, the hfabric command will be available globally.
Global Options
All commands support these global options:
Global Options:
--verbose, -v: Enable verbose output--quiet, -q: Suppress non-error output--config FILE: Specify configuration file path--help: Show help message and exit
Commands Overview
| Command | Description |
|---|---|
ping |
Test connectivity between fabric nodes |
topo |
Display fabric topology information |
diagnose |
Run comprehensive fabric diagnostics |
transfer |
Perform data transfer operations |
nodes |
Manage fabric nodes |
zones |
Manage fabric zones |
monitor |
Real-time fabric monitoring |
config |
Configuration management |
license |
License information and machine ID |
hfabric ping
Test connectivity and measure performance between fabric nodes.
Syntax
Arguments
SOURCE: Source node IDDESTINATION: Destination node ID
Options
--count, -c INTEGER: Number of ping packets to send (default: 4)--size, -s INTEGER: Packet size in bytes (default: 64)--timeout, -t INTEGER: Timeout in milliseconds (default: 5000)--interval, -i FLOAT: Interval between pings in seconds (default: 1.0)--quantum: Enable quantum-optimized ping--detailed: Show detailed routing information--json: Output results in JSON format
Examples
Basic connectivity test:
High-frequency latency measurement:
Quantum-optimized ping:
Large packet test:
Output
PING from gpu-cluster-01 to storage-array-01
64 bytes from storage-array-01: time=0.123ms path=[gpu-cluster-01, switch-01, storage-array-01]
64 bytes from storage-array-01: time=0.119ms path=[gpu-cluster-01, switch-01, storage-array-01]
64 bytes from storage-array-01: time=0.125ms path=[gpu-cluster-01, switch-01, storage-array-01]
64 bytes from storage-array-01: time=0.121ms path=[gpu-cluster-01, switch-01, storage-array-01]
--- storage-array-01 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss
min/avg/max/stddev = 0.119/0.122/0.125/0.002 ms
hfabric topo
Display and analyze fabric topology information.
Syntax
Subcommands
show
Display topology overview:
Options:
--format FORMAT: Output format (table, json, yaml, graph) (default: table)--filter TYPE: Filter by node type (gpu, quantum, neuromorphic, storage)--zone ZONE_ID: Show only nodes in specified zone--detailed: Include detailed node specifications
analyze
Analyze topology for bottlenecks:
Options:
--threshold FLOAT: Bottleneck severity threshold (0.0-1.0) (default: 0.7)--recommendations: Include optimization recommendations
path
Show routing path between nodes:
Options:
--algorithm ALGO: Routing algorithm (shortest, fastest, balanced) (default: optimal)--constraints: Show latency and bandwidth constraints
Examples
Basic topology overview:
Detailed GPU nodes only:
Topology as visual graph:
Analyze bottlenecks:
Show optimal path:
Output Examples
Table format:
โโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโ
โ Node ID โ Hardware Type โ Bandwidth โ Latency โ Zone โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ gpu-cluster-01 โ NVIDIA_H100 โ 400.0 Gbps โ 100 ns โ ai-training โ
โ qpu-ibm-01 โ QUANTUM_QPU โ 10.0 Gbps โ 50 ns โ quantum-realm โ
โ neuromorphic-01 โ NEUROMORPHIC_CHIP โ 50.0 Gbps โ 80 ns โ edge-processing โ
โโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
hfabric diagnose
Run comprehensive diagnostics on the fabric infrastructure.
Syntax
Arguments
TARGET: Specific node, zone, or 'all' for full fabric (default: all)
Options
--tests TESTS: Comma-separated list of test typesconnectivity: Node connectivity testsperformance: Bandwidth and latency testsquantum: Quantum coherence and fidelity testssecurity: Security and encryption testsall: Run all test types (default)--concurrency INTEGER: Number of concurrent test threads (default: 10)--duration INTEGER: Test duration in seconds (default: 30)--output FILE: Save detailed results to file--format FORMAT: Output format (table, json, report) (default: table)
Examples
Full fabric diagnostics:
Specific node performance test:
Quantum zone diagnostics:
High-concurrency stress test:
Output
๐ HyperFabric Diagnostics Report
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Overall Health: โ
EXCELLENT (98.7%)
๐ Connectivity Tests
โ
All nodes reachable: 42/42 nodes
โ
Inter-zone connectivity: 100% success rate
โ ๏ธ High latency path detected: gpu-01 โ storage-remote (15ms)
โก Performance Tests
โ
Bandwidth utilization: 87.3% average
โ
Latency targets met: 95.2% of paths < 1ms
โ
Zero packet loss on critical paths
๐ฌ Quantum Tests
โ
Quantum coherence: 99.9% fidelity maintained
โ
Entanglement preservation: 8/8 QPU pairs
โ ๏ธ Coherence time degradation on qpu-03: 85ฮผs (target: 100ฮผs)
๐ Security Tests
โ
Encryption operational: All secure zones
โ
Quantum key distribution: Active on 4 channels
โ
No unauthorized access attempts detected
๐ Recommendations:
โข Optimize routing for gpu-01 โ storage-remote path
โข Schedule maintenance for qpu-03 coherence optimization
โข Consider adding redundant links in ai-training zone
hfabric transfer
Perform data transfer operations between fabric nodes.
Syntax
Arguments
SOURCE: Source node ID or file pathDESTINATION: Destination node ID or file path
Options
--data-type TYPE: Data type (tensor, parameter, quantum_state, generic) (default: generic)--priority PRIORITY: Transfer priority (ultra_high, high, medium, low, bulk) (default: medium)--size SIZE: Transfer size (supports K, M, G, T suffixes)--compression: Enable data compression--encryption: Enable data encryption--verify: Verify transfer integrity--latency-constraint TIME: Maximum latency constraint (e.g., 1ms, 500us, 100ns)--bandwidth-min BANDWIDTH: Minimum bandwidth requirement--quantum-entangled: Require quantum entanglement preservation--progress: Show transfer progress--benchmark: Run transfer benchmark
Examples
Simple data transfer:
High-priority AI model transfer:
hfabric transfer model-server gpu-cluster-01 \
--data-type parameter \
--priority high \
--compression \
--verify
Quantum state transfer:
hfabric transfer qpu-01 qpu-02 \
--data-type quantum_state \
--quantum-entangled \
--latency-constraint 100us
Bulk data migration:
hfabric transfer old-storage new-storage \
--size 10TB \
--priority bulk \
--compression \
--benchmark
Output
๐ Data Transfer Operation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Source: gpu-01
Destination: storage-01
Data Type: parameter
Size: 1.00 GB
Priority: high
๐ฃ๏ธ Route: gpu-01 โ switch-spine-01 โ storage-01
โก Estimated Time: 2.1 seconds
๐ Bandwidth: 400.0 Gbps
Progress: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 100% โ 1.00 GB โ 1.95s
โ
Transfer completed successfully
๐ Performance Metrics:
โข Actual time: 1.95s (7% faster than estimated)
โข Average bandwidth: 415.3 Gbps (103.8% utilization)
โข Peak bandwidth: 425.7 Gbps
โข Latency: 125ns average
โข Zero packet loss
โข Compression ratio: 2.3:1
hfabric nodes
Manage fabric nodes (registration, removal, status).
Syntax
Subcommands
list
List all registered nodes:
Options:
--filter TYPE: Filter by hardware type--zone ZONE_ID: Filter by zone--status STATUS: Filter by status (online, offline, degraded)--format FORMAT: Output format (table, json, yaml)
register
Register a new node:
Options:
--hardware-type TYPE: Hardware type (required)--bandwidth BANDWIDTH: Bandwidth capacity in Gbps (required)--latency LATENCY: Base latency in nanoseconds (required)--memory MEMORY: Memory capacity in GB--location LOCATION: Physical location--zone ZONE_ID: Assign to zone--quantum-coherence TIME: Quantum coherence time in microseconds--config FILE: Load configuration from file
remove
Remove a node:
Options:
--force: Force removal even if node is active--migrate-data: Migrate data before removal
status
Show detailed node status:
Options:
--metrics: Include performance metrics--history: Show historical performance data
Examples
List all nodes:
List quantum nodes only:
Register new GPU node:
hfabric nodes register gpu-new-01 \
--hardware-type nvidia_h100 \
--bandwidth 400 \
--latency 100 \
--memory 80 \
--location "Rack-15-Slot-3"
Register quantum node:
hfabric nodes register qpu-new-01 \
--hardware-type quantum_qpu \
--bandwidth 10 \
--latency 50 \
--quantum-coherence 150 \
--zone quantum-realm
Remove node safely:.
Detailed node status:
hfabric zones
Manage fabric zones for network segmentation and optimization.
Syntax
Subcommands
list
List all zones:
create
Create a new zone:
Options:
--type TYPE: Zone type (compute_cluster, inference_farm, quantum_realm, etc.)--isolation LEVEL: Isolation level (none, low, medium, high, quantum_secure)--max-nodes INTEGER: Maximum nodes in zone--bandwidth BANDWIDTH: Required bandwidth in Gbps--description TEXT: Zone description
delete
Delete a zone:
assign
Assign node to zone:
remove
Remove node from zone:
Examples
Create AI training zone:
hfabric zones create ai-training-cluster \
--type compute_cluster \
--isolation medium \
--max-nodes 1000 \
--bandwidth 400 \
--description "Large-scale AI training cluster"
Create quantum processing zone:
hfabric zones create quantum-lab \
--type quantum_realm \
--isolation quantum_secure \
--max-nodes 20 \
--bandwidth 50
Assign node to zone:
hfabric monitor
Real-time monitoring of fabric performance and health.
Syntax
Arguments
TARGET: Specific node, zone, or 'all' for full fabric (default: all)
Options
--refresh SECONDS: Refresh interval in seconds (default: 1)--metrics METRICS: Comma-separated metrics to displaylatency: Inter-node latencybandwidth: Bandwidth utilizationthroughput: Data throughputquantum: Quantum coherence metricserrors: Error ratesall: All available metrics (default)--threshold FLOAT: Alert threshold for anomalies--export FILE: Export metrics to file--dashboard: Launch web dashboard
Examples
Real-time fabric monitoring:
Monitor specific zone:
Monitor bandwidth only:
Launch web dashboard:
Output
๐ HyperFabric Real-Time Monitor [2024-01-15 14:23:45]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Overall Status: โ
HEALTHY
๐ Active Connections: 1,247
โก Total Throughput: 2.3 TB/s
๐ฌ Quantum Coherence: 99.7%
โโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโ
โ Node โ Latency โ Bandwidth โ Throughput โ Status โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ gpu-cluster-01 โ 0.12ms โฒ 5% โ 387.2 Gbps โ 1.2 TB/s โฒ โ โ
Excellent โ
โ qpu-ibm-01 โ 0.05ms โผ 2% โ 9.8 Gbps โ 45.3 GB/s โ โ
Optimal โ
โ storage-tier-01 โ 0.31ms โ 156.7 Gbps โ 891.2 GB/s โ โ ๏ธ High Load โ
โ edge-server-nyc โ 2.15ms โฒ12% โ 45.2 Gbps โ 123.4 GB/s โ โ ๏ธ Degraded โ
โโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
๐จ Alerts:
โข High latency detected: edge-server-nyc (2.15ms > 1ms threshold)
โข Storage tier approaching capacity: 87.3% utilization
Press 'q' to quit, 'r' to refresh, 'd' for detailed view
hfabric config
Configuration management for fabric settings.
Syntax
Subcommands
show
Display current configuration:
set
Set configuration value:
get
Get configuration value:
reset
Reset configuration to defaults:
export
Export configuration to file:
import
Import configuration from file:
Configuration Keys
| Key | Description | Default |
|---|---|---|
fabric.default_latency_constraint_ns |
Default latency constraint | 1000000 |
fabric.enable_ml_routing |
Enable ML-based routing | false |
fabric.enable_quantum_optimization |
Enable quantum optimizations | false |
fabric.buffer_pool_size |
Buffer pool size | 1000 |
fabric.max_packet_size |
Maximum packet size | 65536 |
routing.algorithm |
Default routing algorithm | optimal |
monitoring.refresh_interval_s |
Monitoring refresh interval | 1 |
quantum.coherence_threshold_us |
Quantum coherence threshold | 10.0 |
security.encryption_enabled |
Enable encryption by default | false |
Examples
Show all configuration:
Enable ML routing:
Set default latency constraint:
Export configuration:
Reset to defaults:
Environment Variables
The CLI respects these environment variables:
| Variable | Description | Default |
|---|---|---|
HFABRIC_CONFIG_FILE |
Default configuration file | ~/.hfabric/config.yaml |
HFABRIC_LOG_LEVEL |
Logging level | INFO |
HFABRIC_ENDPOINT |
Fabric endpoint URL | localhost:8080 |
HFABRIC_API_KEY |
API authentication key | None |
HFABRIC_TIMEOUT |
Default operation timeout | 30s |
Configuration File
Default configuration file location: ~/.hfabric/config.yaml
Example configuration:
fabric:
default_latency_constraint_ns: 1000000
enable_ml_routing: false
enable_quantum_optimization: false
buffer_pool_size: 1000
max_packet_size: 65536
routing:
algorithm: optimal
load_balancing: true
fault_tolerance: true
monitoring:
refresh_interval_s: 1
enable_alerts: true
alert_threshold: 0.8
quantum:
coherence_threshold_us: 10.0
enable_entanglement: true
error_correction: true
security:
encryption_enabled: false
quantum_key_distribution: false
logging:
level: INFO
file: ~/.hfabric/logs/hfabric.log
max_size_mb: 100
Exit Codes
| Code | Description |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |
| 3 | Connection error |
| 4 | Authentication error |
| 5 | Permission denied |
| 10 | Node not found |
| 11 | Route not found |
| 12 | Latency constraint violation |
| 20 | Quantum error |
| 21 | Coherence lost |
| 30 | Buffer error |
| 40 | Configuration error |
This comprehensive CLI reference enables complete management of HyperFabric Interconnect infrastructure through the command line interface.