Skip to main content

Module host

Module host 

Source

Functionsยง

collect_host_info
Collect all host-level metadata. Fast (no network I/O). Takes a snapshot of GPU info already gathered so GPU-derived fields (host_gpu_model, host_gpu_count, host_gpu_vram_mib) can be populated without re-querying the GPU driver.
read_host_id ๐Ÿ”’
read_host_ip ๐Ÿ”’
First non-loopback IPv4 address discovered via getifaddrs(3).
read_host_name ๐Ÿ”’
read_memory_mib ๐Ÿ”’
MemTotal from /proc/meminfo converted to MiB.
read_storage_gb ๐Ÿ”’
Sum of all non-loop, non-ram block device capacities in GB.
read_vcpus_and_model ๐Ÿ”’
Returns (vcpu_count, cpu_model) by parsing /proc/cpuinfo once.