What's the terminal command to see how network shares are connected?

I would like to see how certain volume shares are connected to my Mac. I'm on a Windows network and need to know if shares are connected over smb2 or cifs or afp protocol... etc... Do I need to restart my Mac each time to get an accurate reading? (cache)


Solution 1:

You could use the mount command from terminal:

mount

This will give a print out of everything mounted on the system and details about what protocol was used and by who. Here's in example output:

/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
map -fstab on /Network/Servers (autofs, automounted, nobrowse)
/dev/disk1s2 on /Volumes/TM Backup (hfs, local, nodev, nosuid, journaled)
//user@theShare:548/Share on /Volumes/Share (afpfs, nodev, nosuid, mounted by user)

Solution 2:

For a more detailed listing of samba connections including the protocol in use, try:

smbutil statshares -a