AFPARG(1)

Okay bestie, this is the afparg manual from the Netatalk AFP Fileserver Manual πŸŽ€, and it's giving main character energy ✨


✨ Name ✨

afparg β€” send commands to an AFP server πŸ¦‹


πŸ’… Synopsis πŸ’…

afparg [-1234567Vv] [-h host] [-p port] [-s volume] [-u user] [-w password] [-f command]

afparg -l

🌸 Description 🌸

okay so afparg is a super simple tool for sending commands to an AFP server as an authenticated user πŸ” It's so good for peeking at files on the server or doing trivial file operations, lowkey easy stuff but literally so useful πŸ’–

Run afparg -l to see every available command and what arguments it wants 🧚


πŸ‘‘ Options πŸ‘‘

  • -1 β€” use the AFP 2.1 protocol version πŸ“
  • -2 β€” use the AFP 2.2 protocol version πŸ“
  • -3 β€” use the AFP 3.0 protocol version πŸ“
  • -4 β€” use the AFP 3.1 protocol version πŸ“
  • -5 β€” use the AFP 3.2 protocol version πŸ“
  • -6 β€” use the AFP 3.3 protocol version πŸ“
  • -7 β€” use the AFP 3.4 protocol version, which is the default ✨
  • -f command arguments β€” the command you want to run πŸŽ€
  • -h host β€” the server's hostname or IP address (default: localhost) 🏠
  • -l β€” list the available commands and then exit πŸšͺ
  • -p port β€” the server's port number (default: 548) πŸ”Œ
  • -u user β€” the username for logging in to the AFP server (default: current uid) πŸ™‹β€β™€οΈ
  • -v β€” verbose output, so you get more details πŸ—£οΈ
  • -V β€” very verbose output, the extra chatty option πŸ“’
  • -w password β€” the password for logging in to the AFP server πŸ”‘

🧚 Configuration 🧚

heads up bestie ⚠️ The test runner AFP client only supports the ClearTxt UAM right now. To set it up, configure the UAM in netatalk's afp.conf like this:
[Global]
uam list = uams_clrtxt.so

πŸ“ Examples πŸ“

πŸ’– List available commands and their arguments

$ afparg -l
FPResolveID CNID
FPEnumerate dir
FPCopyFile source dest
FPLockrw d | r file
FPLockw d | r file

✨ Resolve a CNID to file name

$ afparg -h 10.0.0.8 -u myuser -w mypass -s "test volume" -f FPResolveID 18
======================
FPResolveID with args:
Trying to resolve id 18
Resolved ID 18 to: 'AFP_Reference.pdf'

πŸ¦‹ List files inside of a directory on the shared volume

$ afparg -h 10.0.0.8 -u myuser -w mypass -s "test volume" -f FPEnumerate "my dir"
file1
file2

🌈 Make a copy of a file on the shared volume

$ afparg -h 10.0.0.8 -u myuser -w mypass -s "test volume" -f FPCopyFile AFP_Reference.pdf AFP_Reference2.pdf
======================
FPCopyFile with args:
source: "AFP_Reference.pdf" -> dest: "AFP_Reference2.pdf"

πŸ”₯ Open a file's data fork with read/write lock

$ afparg -h 10.0.0.8 -u myuser -w mypass -s "test volume" -f FPLockrw d AFP_Reference2.pdf
======================
FPOpen with read/write lock
source: "AFP_Reference2.pdf"

πŸ¦‹ See Also πŸ¦‹

If you want more, check out afp_logintest(1), afp_spectest(1), and afpd(8) πŸ’œ


That's the tea β˜• from Netatalk 4.5.1, bestie, and you're literally ready to go πŸ«ΆπŸ’œ AFPARG(1) πŸ’…

πŸ“¦ where this page comes from
  • fedora 44: netatalk-afptest 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