ALFRED(8)

πŸ“¦
version 2026.2 Β· 2 versions
  • 2026.2 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2022.0 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ALFRED(8) πŸ’–

okay bestie, sit down, hydrate, because we're doing section 8 of the manual and this one is literally iconic. it's the page for alfred, aka the Almighty Lightweight Fact Remote Exchange Daemon ✨ (yes the name is that extra, yes we love her for it).


🌸 NAME 🌸

alfred β€” Almighty Lightweight Fact Remote Exchange Daemon 🧚


πŸŽ€ SYNOPSIS πŸŽ€

alfred [options]

that's it. that's the whole vibe. one binary, all the flags πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so alfred is a user space daemon that distributes arbitrary local information over the mesh/network in a decentralized fashion. and when we say arbitrary we mean arbitrary β€” the data can be anything that seems useful. originally she was designed to replace the batman-adv visualization (vis), but fr fr you can distribute hostnames, phone books, administration information, DNS information, the local weather forecast … the limit is genuinely your imagination 🫢

alfred runs as a daemon in the background of the system. a user may insert information by using the alfred binary on the command line, or use special programs to communicate with alfred (done via unix sockets). then alfred takes care of distributing the local information to other alfred servers on other nodes. the way she does that? via IPv6 link-local multicast, and it does not require any configuration. no cap. a user can request data from alfred and will receive the information available from all alfred servers in the network. it's giving effortless πŸ”₯


✨ OPTIONS ✨

  • -v, --version β€” print the version πŸ‘‘
  • -h, --help β€” display a brief help message πŸ₯Ί
  • -u, --unix-path path β€” path to unix socket used for client-server communication πŸ”Œ

πŸ’… CLIENT OPTIONS πŸ’…

  • -s, --set-data data-type β€” sets new data to distribute from stdin for the supplied data type (0-255). πŸ’Œ
heads up bestie: 0 - 63 are reserved (please send an e-mail to the authors if you want to register a datatype), and can not be used on the commandline. also, information must be periodically written again to alfred, otherwise it will timeout and alfred will forget about it (after 10 minutes). so like… keep feeding her or she moves on 😭
  • -r, --request data-type β€” collect data from the network and print on stdout πŸ“¬
  • -d, --verbose β€” show extra information in the data output πŸ‘€
  • -d, --force β€” start server even when batman-adv or interface(s) are not yet available. πŸ’ͺ (and yes, the page literally lists -d twice with two different long names β€” i'm not making this up, i'm just the messenger 🫠)
  • -V, --req-version version β€” specify the data version set for -s. skipping the parameter entirely has the same effect as setting the parameter to 0 (-V 0). 🏷️
  • -M, --modeswitch mode β€” switch modes, queen:
    • primary β€” switch daemon to mode primary πŸ‘‘
    • secondary β€” switch daemon to mode secondary 🐣
  • -I, --change-interface interface β€” change the alfred server to use the new interface(s) πŸ”„
  • -B, --change-bat-iface interface β€” change the alfred server to use the new batman-adv interface πŸ¦‡
  • -S, --server-status β€” request server status information such as mode & interfaces πŸ“Š
  • -E, --event-monitor β€” start alfred event monitor connecting to the alfred server and reporting update events πŸ“‘

🌈 SERVER OPTIONS 🌈

  • -i, --interface iface β€” specify the interface (or comma separated list of interfaces) to listen on. use 'none' to disable interface operations. 🎧
  • -b batmanif β€” specify the batman-adv interface configured on the system (default: bat0). use 'none' to disable the batman-adv based best server selection. πŸ¦‡

the interface option -i is optional. if interface 'none' is specified, the alfred daemon will not communicate with other alfred instances on the network unless the interface list is modified at runtime via the unix socket. the -b option is optional, and only needed if you run alfred on a batman-adv interface not called bat0, or if you don't use batman-adv at all (use '-b none'). in this case, alfred will still work but will not be able to find the best next primary server based on metrics. πŸ“‰

  • -m, --primary β€” start up the daemon in primary mode, which accepts data from secondaries and syncs it with other primaries. πŸ‘‘

okay so here's the lore, bestie: alfred servers may either run as primary or secondary in the network. primaries will announce their status via broadcast, so that secondaries can find them. secondaries will then send their data to their nearest primary (based on TQ). primaries will exchange their data (which they have received from secondaries or got on their own) with other primaries. by using primaries and secondaries, overhead can be reduced while still keeping redundancy (by having multiple primaries). obviously, at least one primary must be present in the network to let any data exchange happen. also having all nodes in primary mode is possible (for maximum decentrality and overhead). ✨

  • -c, --update-command command β€” specify command to execute on data change. it will be called with data-type list as arguments. πŸ””
  • -p, --sync-period period β€” specify alfred synchronization period, in seconds. if not specified, the default ALFRED_INTERVAL setting of 10 seconds will be used. fractional seconds are supported. ⏱️
  • -4 group-address β€” specify the IPv4 multicast group address and enable IPv4 data-sharing (disabling IPv6 communication). this option is required on systems that do not support IPv6 addressing. πŸ“

🎬 EXAMPLES 🎬

start an alfred server listening on bridge br0 (assuming that this bridge includes the batman interface bat0):

alfred -i br0 -m

send data to the alfred server and store it under id 65:

cat /etc/hostname | alfred -s 65

retrieve all data stored as id 65 from all connected alfred servers:

alfred -r 65
{ "fe:f1:00:00:01:01", "OpenWRT-node-1\x0a" },
{ "fe:f1:00:00:02:01", "OpenWRT-node-2\x0a" },
{ "fe:f1:00:00:03:01", "OpenWRT-node-3\x0a" },

πŸ” SEE ALSO πŸ”

batadv-vis(8), batctl(8) β€” go read those next, bestie πŸ“š


πŸ’œ AUTHOR πŸ’œ

alfred was written by Simon Wunderlich <sw@simonwunderlich.de> and Sven Eckelmann <sven@open-mesh.com>. 🫢

this manual page was written by Simon Wunderlich <sw@simonwunderlich.de> and Sven Eckelmann <sven@open-mesh.com>. πŸŽ€


and that's the whole page, periodt πŸ’… this Linux page is dated Sep 21, 2013 β€” vintage, lowkey a classic, and still serving ✨ go forth and distribute your facts, you're the main character of the mesh now πŸŒˆπŸ‘‘πŸ’–