I am trying to obtain a full path listing of smb shares but when I run the cli 'isi smb shares list' or 'isi shares view sharename' it always returns a path with %Z in it. How can I expand the pathname so I get a full pathname return without the %Z?
Ah, I see what's going on now... This was actually created as one single share. The path is expanded based on which access zone the end user is accessing.. If they are accessing via "Zone_1" it will have the path /ifs/data/parent/Zone_1/build... If they are accessing it zia "Zone_2" it will be /ifs/data/parent/Zone_2/build... So both paths are valid.. What i'd suggest is start with a list of Access Zones. Then you can use the name of the zone to populate %z yourself...
The other option, and I don't think this is a good one, is to delete the current SMB share that uses %z and re-created two new shares using the specific full path..
Or, you could parse the output of isi zones list -v, use that to get a list of the shares... and the name of the zone... then parse the output of isi smb shares view , and do a regex search and replace and %Z with the name of the zone from the previous command..
Quick shell script could give you something you can reuse at customer's sites..
So I can tell by this output the path to ss_data, when accessed across the Test2 zone, is "/ifs/data/test/Test2/data".. If this isn't the behavior you're seeing, i'm curious if this is a bug with the version you are on...
isi zone zones list -v |grep -i bfinstalls
should return something.... unless it is not longer allocated to any zones.... or a zone is set to all SMB Shares (i'm un-aware how this option shows up)
I have an upgrade on the agenda to 7.0.1.6 and maybe it fixes my issues. BFInstalls is listed as a smb share but not under any zone. it wouldn't be that difficult if the number of folders/sub folders was small but it isn't and the structure is duplicated.
AndrewChung
132 Posts
624
0
Posted June 28th, 2013 10:00
You can’t. The %Z will get expanded to the access zone if I remember correctly. Either that or the NETBIOS domain name.
Andrew Chung
EMC²| Isilon Storage Division
Practice Architect
Mobile: +1 (562) 248-6401
E-Mail: andrew.chung@isilon.com
2 Attachments
image001.jpg
image001.jpg
image002.jpg
image002.jpg