AFPSTATS(1)

✨ AFPSTATS(1) ✨ β€” Netatalk AFP Fileserver Manual πŸ’–

Okay so this is the manual page for afpstats, the tool that spills the tea on List Netatalk AFP server statistics πŸ’… Think of it as your nosy bestie who knows exactly who's connected to your Netatalk AFP server right now πŸ‘€πŸ«Ά

πŸŽ€ NAME πŸŽ€

afpstats β€” List Netatalk AFP server statistics 🌸

πŸ¦‹ SYNOPSIS πŸ¦‹

afpstats [-h client-address] [-s socket]

afpstats [-v | --version]

Two ways to call it, babe 🧚 Either ask for the list, or ask what version it is ✨

πŸ’œ DESCRIPTION πŸ’œ

Okay so afpstats lists info about users connected to a Netatalk AFP server running on the local machine πŸ“ You get their mounted volumes, their time of login, and other deets 😭 Sessions connected over both TCP/IP (DSI) and AppleTalk (ASP) show up, so nobody's getting left out 🫢

Lowkey important: to turn on AFP statistics in Netatalk at runtime, you need afpstats = yes set in afp.conf πŸ”₯ By default, only root and users permitted by the socket's group ownership can query the session list πŸ™ˆ If you want other users to get in on the gossip, set "afpstats group = group" and add those users to the configured group πŸ’…

🌈 OPTIONS 🌈

  • -h, --hostname client-address β€” Filter the output by the client hostname or address you give it πŸ’– TCP/IP sessions use the resolved client hostname, and if that's not available, they fall back to the IP address 🧚 AppleTalk sessions use the client DDP address in net.node form πŸ¦‹
  • -s, --socket path β€” Connect to the afpstats Unix socket at path ✨ It defaults to /var/lib/netatalk/afpstats.sock (the path changes depending on the configured localstatedir) 🌸
  • -v, --version β€” Show the version and exit πŸ‘‘

πŸ™ˆ NOTE πŸ™ˆ

The socket is created by afpd on startup with mode 0660 🚨 By default, only root and users permitted by the socket's group ownership can query the session list πŸ’€

Want to set the group owner explicitly? Use the afpstats group option in afp.conf, for example to a dedicated netatalk group 🫢 The socket path also depends on search permissions for the parent directory, so check those too πŸ”₯

πŸ“ EXAMPLES πŸ“

List connected users:

$ afpstats
Connected user  PID     Login time       State     Protocol   Client address     Mounted volumes
alice           452547  Apr 28 21:58:50  sleeping  TCP/IP     workstation.local  Data Vault, alice's Home
bob             451969  Apr 28 21:21:32  active    AppleTalk  65280.12           My AFP Volume

🧚 SEE ALSO 🧚

afpd(8), afp.conf(5) πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Contributors to the Netatalk Project 🌈


Bestie, that's the whole tea β˜•πŸ’– This page is from Netatalk 4.5.1, and it was last updated on 2026-10-13 πŸ¦‹ Stay iconic, stay connected πŸ’…βœ¨

πŸ“¦ where this page comes from
  • fedora 44: netatalk 5:4.5.1-1.fc44 Β· GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-BSD AND FSFUL AND LicenseRef-Callaway-MIT
  • πŸ’– girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms