Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Active AFP Connections over CLI

Hi All,


I'm trying to query our OS X 10.6 server for currently connected AFP users using the CLI and I'm unsure of how to go about it.


I would like a response similar to the list in the Server Admin --> AFP --> Connections GUI


Thanks for any information


Stewart

Mac OS X (10.6.8)

Posted on Jan 30, 2012 3:09 AM

Reply
Question marked as Best reply

Posted on Jan 30, 2012 4:36 AM

I have solved this myself and used egrep to get the output I desired:


serveradmin command afp:command = getConnectedUsers | egrep '(name)' | cut -d '"' -f 2


Hope this helps


Stewart

1 reply

Active AFP Connections over CLI

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.