fmd-adm
Idiomatic Rust bindings for illumos libfmd_adm, the Fault Management Daemon administrative library.
This crate provides a safe wrapper around the raw FFI bindings in fmd-adm-sys.
Usage
use FmdAdm;
let adm = open.expect;
for module in adm.modules.unwrap
for case in adm.cases.unwrap
API overview
All operations go through the FmdAdm handle, which connects to the local
fault management daemon on construction and disconnects on drop.
- Modules:
modules() - Resources:
resources(),resource_count(),resource_repaired(),resource_replaced(),resource_acquit() - Cases:
cases(),case_acquit() - SERD engines:
serd_engines() - Transports:
transports() - Statistics:
stats()
Privileges
Opening a handle does not require elevated privileges, but most query and
mutation operations do. Run with pfexec or appropriate RBAC profiles to
access fmd data.