-
Updated dfstool v1.1 Now Available
Posted on August 1st, 2011 21 commentsAfter a great launch that included a mention in MacWorld’s Mac OS X Hints, I’ve decided to make my command line tool for querying and connecting to DFS shares from Mac OS X even better. After all, it was a 1.0 release so there was bound to be room for improvement. Thanks to everyone who provided feedback and suggestions.
Here is a list of the new features and improvements in dfstool v1.1…
– Add -u user switch
– Fix -d domain controller switch
– Change -h screen to use basepath variable
– Add -f option to mount via the Finder
– Revised option handling to better catch incorrect option and argument combinations
– Check Mac OS X version to ensure it only runs on Snow Leopard 10.6And here is the obligatory sample output:
~ $ ./dfstool -h
dfstool (1.1)
(c) 2011 Jorge Escala <http://jescala.com/dfstool>
usage: dfstool [option] [<dfspath>]
options:
-d <dc> use <dc> domain controller to enumerate DFS shares
-f mount via the Finder using AppleScript
-h display this usage screen
-l display the complete dfs list
-m <mntpnt> mount the dfs path at <mntpnt>
-M mount the dfs path in ~/Network
-u <username> specify <username> for authentication
-v display version
~ $ ./dfstool -M '\\ad\dfs\shared\files'
~ $ df -h | tail -1
//server/shared/files 1.3Ti 827Gi 551Gi 61% /Users/jescala/Network/shared/filesThis code is available under the BSD license and can be downloaded here:
dfstool-1.1.tgz
MD5: 37901f848ef3f4d8bf25cd90bfd2931a21 responses to “Updated dfstool v1.1 Now Available”

-
Thank your for making this utility, exactly what I need, I just have to find how to make it work in my workplace
The problem here, it seems to be, that “rpcclient –command=dfsenum 3″ does not return anything.
First, workgroup command line option is missing, and there is no way to provide it through dfstool. So changed related rpcclient lines to include the missing –workgroup=XXX. This doesn’t help either. The output from rpcclient is:
rpcclient $> dfsenum 3
result was NT_STATUS_NOT_FOUNDRegarding getting the AD DC automatically, found this article: http://technet.microsoft.com/en-us/library/bb727055.aspx, basically need to query DNS for _ldap._tcp.dc._msdcs. if I am not mistaken.
I am not an expert on this
Will keep you updated if I make any progress.Thanks!
-
Peter Sommerlad August 24th, 2011 at 10:05
Would dfstool also work, if a mac is not bound to the AD domain, i.e., local user? Today, cifs works with server names, but our IT department doesn’t support Macs but nevertheless introduces DFS in the next weeks. And I cannot yet upgrade to Lion on my main mac. I hope your tool can be of help, but while being a Unix guru (since the late 80s), I a complete newbie about how a Mac interacts with Windows, except for mounting smb/cifs shares in the “old way”.
-
hi… need some assistance using the tool… i’m trying to utilize the tool with os 10.6.8 to mount a share, but i keep getting an error that the “dfstool: dfspath not found”… now i know the dfs is there. i’m able to connect to the same share using 10.7 and with an xp machine.
my one liner is:
./dfstool -m /Volumes/myTestVolume ‘\\serverName\folderToMap’can someone please assist?
-
i’ve cd’d into
/Applications/DFS Mount.app/Contents/MacOSand ran the command
./applet -s serverName -u myUsername -land the icon for the server popped up in the dashboard
clicked on about
clicked on config
put the serverName in
clicked oktyped the dfs address
\\serverName\folderstill received the error
dfstool: dfspath not foundi’m not sure if i’m missing something a bit basic??? seems awfully straightforward.
-
didn’t get any errors when i navigated to /usr/local/bin and ran
./dfstool -s serverName -u myUsername -lso i then tried to mount dfs
dfstool [-M [-s ] [-u ]] dfspath./dfstool -M -s serverName -u myUsername ‘\\serverName\folder’
and get a “dfstool: dfspath not found” errormounting to a mount point
./dfstool -m /Volumes/myTestVolume/ -s serverName -u myUsername ‘\\serverName\folder’
and get a “dfstool: dfspath not found” error -
D. McGuire October 6th, 2011 at 14:11
I too am not seeing any output with the -l switch. Lion and my Windows boxes see it just fine. Any tips since last post?
-
D. McGuire October 6th, 2011 at 17:11
OK, I figured out my issue. I was using the full “domain.local” section, and I cut that down to just “\\domain\share\”, and I made sure that I added the slash at the end, and that worked for me.
-
-
Hi,
I am using macosx 10.6.8 and I have the same problem like matt from August 31st, 2011 at 18:00
>dfstool -s servername -u username -l
After asking for the password:
dfstool: dfspath not foundServername is a DC fullname, the username is a AD username and the mac is not joined to AD.
Do have any idee what may be wrong?
(dfstool v1.2) -
additional information: all the shares have a “$” at the end of their names.
-
BirdFlew Over December 6th, 2011 at 17:47
Please forgive my ignorance in advance. I have downloaded this tool to help with dfs shares. Our organization recently went from using smb shares to a specific server location to a dfs and now our Macs will not connect. I ran the tool and received errors Line 17 unexpected EOF while looking for matching ” and Line 244: Syntax error : unexpected end of file. Logout Process completed. I changed in the exec dfs v1.1 file to a domain controller on our network.
I never get a prompt that allows me to input any of the help items and if I try outside of the app. I get an error the app exec can not be found. I am not a Unix guru at all. So any help or explanation would be helpful.
Thank You in advance for helping me understand how to use this tool and get it to work. -
David V January 25th, 2012 at 14:20
I am using 10.6.8, the machine is bound to AD.
I ran the dfstool -s servername -u username -l and the box popped up. I hit about then config and entered the server. I received no output.
When i try to mount i get dfspath not found.
-
I”m tryingthe beta as well, but since there’s no comments page for it I would like to post here.
I can’t get anything besides “dfspath not found” when trying to use this. I prevously used ADmitMac but I’m trying to see if I can get by without the $$$ new version.
This is the only line which gives me anything besides a blank stare:
dig _ldap._tcp.dc._msdcs…com SRV +short | egrep -v ‘^;;’ | awk ‘{print $4}’
This gives my expected list of domain controllers, including two I’ve seen before: mpaus01…com &
mpaus02…comThe command I’m using is this:
dfstool -u -s ..com ‘\\MPAUS41\Work_files\ShareToMount\’
which returns ‘DFSpath not found’.I also don’t get any results with this:
dfstool -s ..com -u -lThanks
Darryl -
Sorry, my clever angle-brackets were eaten in my comment, leaving “…” only!
I’m trying beta 1.2 as well, but since there’s no comments page for it I would like to post here.
I can’t get anything besides “dfspath not found” when trying to use this. I prevously used ADmitMac but I’m trying to see if I can get by without the $$$ new version.
This is the only line which gives me anything besides a blank stare:
dig _ldap._tcp.dc._msdcs…com SRV +short | egrep -v ‘^;;’ | awk ‘{print $4}’
This gives my expected list of domain controllers, including two I’ve seen before:
mpaus01…com &
mpaus02…comThe command I’m using is this:
dfstool -u -s ..com ‘\\MPAUS41\Work_files\ShareToMount\’
which returns ‘DFSpath not found’.
I also don’t get any results with this:
dfstool -s ..com -u -lThanks
Darryl -
I’m trying beta 1.2 as well, but since there’s no comments page for it I would like to post here.
I can’t get anything besides “dfspath not found” when trying to use this. I prevously used ADmitMac but I’m trying to see if I can get by without the $$$ new version.
This is the only line which gives me anything besides a blank stare:
dig _ldap._tcp.dc._msdcs.[group].[xyzxyz].com SRV +short | egrep -v ‘^;;’ | awk ‘{print $4}’
This gives my expected list of domain controllers, including two I’ve seen before:
mpaus01.[group].[xyzxyz].com &
mpaus02.[group].[xyzxyz].comThe command I’m using is this:
dfstool -u -s [group].[xyzxyz].com ‘\\MPAUS41\Work_files\ShareToMount\’
which returns ‘DFSpath not found’.
I also don’t get any results with this:
dfstool -s [group].[xyzxyz].com -u -lThanks
Darryl
-
jescala.com
terminally geeky

A. Lottem August 9th, 2011 at 03:44