How to see which files are open on shares

Im fairly new to OS X Server. Am running OS X Server 10.6.8
How can i see files that are open through AFP or SMB? I've tried the command lsof but that doesnt seem to show open files through network.

Try smbstatus.
To pin down exactly which files are locked for use, try:
smbstatus | grep -i deny_write
For AFP, I'm not sure exactly how it's done -- there isn't an afpstatus command, so I'm a bit in the dark. However, you could probably use a combination of lsof and grep to find any objects of type REG and owned by applefile.
Maybe this:
sudo lsof | grep -i "^applefile" | grep REG
But that will return everything in use by the AppleFile service. From there, though, one may need to be familiar with what shares are on the system to further deduce what's open. For example, I get 10 lines returned, but only one of them contains a known share name (/Users/username/path/to/file), the rest are system directories (/System, /private, /usr, /Library and the like).
Hope this helps a bit.

Similar Messages

  • How do you tell which files are open in bridge cs5?

    In adobe bridge for CS2, open files in Photoshop show an icon in the lower right corner of the bridge thumnail. This is really helpful in sorting if you have a lot of files open. I can't figure out how to tell in bridge CS5 which files are open in photoshop. Is there a menu option that controls this??

    Thanks for the reply. This is a useful feature but not quite what I need.
    I am sorting through 2000 wedding photos. I have maybe 10 versions of the same shot open at a time. I edit, save, and close 2-3 of them. In CS2, I would go back to bridge and I could see the 7 files still open. I could quickly highlight and delete them. I'm trying to find a way to do something similar in CS5 bridge. Right now, I take the ones I'm going to delete and stack them all. But when I go back to bridge to delete them, I have to look at file numbers to see which ones are in the stack that I want to delete. This really slows my work flow. Any suggestions? Can I delete them directly from Photoshop?

  • Can you see which apps are open and/or running like you can on an android phone by going to settings applications running services?

    can you see which apps are open and/or running (like you can on an android phone by going to settings>applications>running services)?

    Hi wjosten,
    thank you for the help.  I should have said I had a iphone 3.  A friend has the same phone and she showed me how she can see what web pages are open when she double taps the home button.  Mine is set to bring up favourites when I double tap (chosen from settings>general>home button).. BUT my choices are only HOME; SEARCH; PHONE FAVORITES; CAMERA or IPOD.  I changed my choice to HOME but that just defeats the purpose as when I am at the home page and double tap nothing happens.  Am I making sense?

  • How to determine which file descriptor opened my driver?

    Suppose a user process opens my driver twice. How does open() determine which file descriptor opened the device? In Linux, the kernel will pass a pointer to a structure which represents the open file descriptor. However, Solaris only passes the device number to open(), so I can only determine my device was opened, but not which file. I need this information because my driver needs to keep track of all file descriptors opened for the device.
    Thanks!
    -Darren

    I'm still at a loss why you need to know the file descriptor value (unless the app is sufficiently spaghettied that it has to query the driver to figure out what it opened with what). It's like asking what filename was used to open the device (which you can't get either). Since Solaris is based on a Streams framework, it would be bad to have drivers to even think it has a direct mapping into user space. It would be the same in asking (using /bin/sh):
    prog3 4>&1 3>&1 2>&1 | prog2 | prog1
    and you want to know from prog1 what descriptor prog3 wrote to. I don't see how linux even does this properly, since any given file open can have multiple file descriptors (via dup).

  • Changing which files are opened automatically when opening a solution

    When I open a solution, VS automatically opens various files in the editor.   There must be a configuration setting somewhere in the solution that tells VS which files to open but I'm unable to find that setting.  Anyone know where this setting
    can be found?

    It's in the .suo file.
    If you have a Foo.sln then you will also have a (hidden) Foo.v12.suo file and that's where this information is stored.
    The .suo is a binary file in an undisclosed format.
    Solution User Options, I believe, is what .suo stands for.  (At least, that's what I say in my head when I see .suo.)
    It's user-specific and machine-specific, and therefore not something that should be committed to your revision control system.

  • How to see which programs are attached to which desktop?

    I have used the option to attache software programs to different desktops in Mountain Lion.  When I hava not used a specific program in a while and then need to, I cannot always remember which desktop I anchored it to.  I know I can go to the launch and click on it there, but having it attached to a desktop, it seems like I should be able to find it that way.  Is there a way to quickly see which one it is attached to without opening the app from the app launchpad or opening the app folder?  I want to be able to just click to the desktop.  In Tiger I think, we could click on spaces in the menu bar and see a list.  Just wondering if there is a quick way in Mountain lion that I'm not aware of.
    thanks!
    Michelle

    Hi, thanks for your reply, I am using mission control right now, I was just hoping there was a way that is similar to spaces in the toolbar.. and I'm guessing some of it is habit with how we think about it. 
    I realize why I was wondering this today.  I had mail open and then I opened imessage and it opened on top of mail, which told me I did not have it anchored to any specific desktop.  So I was trying to decide which one to attach it to and realized I did not know how to tell which ones already had something anchored to it.  If they are open, I could see by mission control.  But I did not want to open everything to see where it was anchored.  I rememberd being able to click on spaces in tiger and I could see the list.  So I hoped ML would have some place to see the same info. 
    Michelle

  • Deduplication: how to identify which files are "in-policy" (and which are not)?

    Dear experts,
    in eventlog I find the following information for one of my deduplicated volumes:
    Volume: F: (\\?\Volume{9794e270-fb08-487e-979b-8a08fa9ca311}\)
    Error code: 0x0
    Error message:
    Savings rate: 24
    Saved space: 853327714684
    Volume used space: 2681869406208
    Volume free space: 66771247104
    Optimized file count: 1199618
    In-policy file count: 1188049
    Job processed space (bytes): 0
    Job elapsed time (seconds): 2
    Job throughput (MB/second): 0
    Some things look strange to me: 
    - The savings rate is only 24% which looks odd because I get about 40% on other file shares with similar characteristics.
    - The "Optimized file count" is higher than the "in-policy" file count.
    - The volume has about 3.5 million files but only 1.1 million files are "in-policy".
    My understanding of "in-policy" files is that all files are in-policy which are older than 3 days (if not configured different, which is not the case) and which are not contained in an excluded folder (nothing configured here) and which have no
    excluded file extension (nothing configured here apart from the default). Right?
    I'm sure that only a small fraction of the files on this volume are younger than three days, so something seems to be wrong there, but I have no idea how to find the cause of the problem.
    Is there any way to identify the files (full path) which are considered to be not "in-policy"?
    How can I find out if the optimization process really looks at all files - and doesn't skip a million?
    Thanks!
    Regards
    Christoph

    Mandy, thanks for your feedback! I've read these technet articels, but I couldn't learn something really helpfull related to my problem there. To make investigation of the problem easier I did the following:
    - created a brand new empty volume (x:) on the same server
    - enabled data deduplication on that volume with a minimal file age of 0 days
    - copied about 2GB of data from the problem-volume in 15450 files to this new volume
    - started "Start-DedupJob x: -Type Optimization -Memory 50"
    After a few seconds that job completed and I got the following result:
    Volume: X: (\\?\Volume{d1ba9ed8-28f1-44d1-9535-fe603d6a70c6}\)
    Error code: 0x0
    Error message:
    Savings rate: 0
    Saved space: 12360718
    Volume used space: 3091664896
    Volume free space: 7610097664
    Optimized file count: 153
    In-policy file count: 153
    Job processed space (bytes): 46095214
    Job elapsed time (seconds): 9
    Job throughput (MB/second): 4.88
    The question is: why are only 153 files in-policy?
    All files (of more than 15000) are of course "older than 0 days", there are no excluded folders configured, there are no excluded extensions configured, no file has one of the default excluded extensions and more than 1000 files are bigger than 100kB
    (minimal size for deduplication is 32kB). So what makes only 153 files qualify for deduplication?
    My impression is that there are further undocumented requirements which have to be met by a file to qualify for deduplication. But if there's no detailed log of an optimization run available how to find out what's going on?
    (Or is something going wrong on my server?)
    Kind Regards
    Christoph

  • How to view which files are take up most space?

    Is there a script which will produce a list of which folders/files are taking up the most space? I want to create some free space on the HD and would like to find out what's taking up the most space.
    Thanks

    Hi Crhis, most likely there is a Script, or Terminal commands but...
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is likely the easiest/best, and is now free...
    http://www.omnigroup.com/applications/omnidisksweeper/download/

  • How to tell which files are masters

    I have a library that i imported with over 3000 pictures, but i dont know which ones are masters

    Still trying to sort this out: Where does the User Manual define " image"?
    From the Glossary;
    image 
    An artifact that reproduces the likeness of some subject, usually a physical object or person, also known as a picture. See also image selection, photograph, picture, subject.
    image selection 
    Refers to an image or group of images selected in the Browser or the Full Screen view filmstrip. A white rectangle surrounding an image indicates it is selected. See also Browser, Full Screen view, image.
    These two entries appear to me to be inconsistent:
    The first definition defines "image" as a real world object and does not state its relations to Aperture items.
    The second entry uses the term "image" for items selected in the film strip. Here I see the interpretation that Kirby uses.
    The term image (in Aperture "speak") seems to need clarification - being used for image versions and "pictures" at the same time.

  • How to see which file iTunes Match is processing

    For those willing to troubleshoot problems in Itunes Match  here it is step by step
    Lauch "Activity Monitor"
    Now search for the Itunes process
    Now choose Inspector
    A dialog is displayed, choose Files and Open Ports
    Scroll down until you see a MP3 or AAC file...
    Leave this dialog open, and you see what Itunes Match is processing and the progress.
    Each music file will take a few seconds to process

    Now the complicated and definitive version (tested under Lion):
    Open Terminal
    In the shell execute the following
    cd /Applications/iTunes.app/Contents/MacOS/
    gdb iTunes
    After gdb is launched, execute this in gdb:
    br ptrace
    run
    set $rdi=11
    continue
    iTunes is now launched
    Open activity Monitor
    Search for iTunes
    Find the process id (PID) In my screenshot it's numbered as 407
    Open another Terminal Window
    Run:
    sudo su -
    It prompts for the password, enter it.
    Run:
    opensnoop -p <PID>
    example: opensnoop -p 407
    Now all the files that iTunes open will scroll through this screen. It's very verbose

  • How to find which files are in the library

    Hi there,
    I keep almost all of my library as referenced files on external hard-drives because of the small hard-drive that my MBP has. BUT over time I've added some pictures here and there that are stored in my Aperture library. I would like to relocate these pictures, but I don't know which ones they are.
    I can go picture by picture and find them, but I would like an easier way.
    Is there a way to find all the pictures that are stored in the aperture library?

    Bring up the entire Library, for instance by clicking on the All Photos Album.
    Open the search HUD and use the 'plus' button to add a search by File Status.
    You now have a choice of searching by online/offline and managed/referenced.
    Ian

  • How to see which fields are called from a datasource?

    Hy Experts
    I have the datasource 8ZDS_DS02 and I want to know which fields in R/3 System are 'maped' to the infoobjects.  How can I do?
    Thank you in advance!

    if you have 8ZDS_DS02 as datasource, then you need to go to the update rule, Transfer rule of ZDS_DS02 and see what is being mapped to the datasource, whatever you see in 8* datasource is coming from the base ods which is ZDS_DS02.
    thanks.
    Wond

  • How to see which perners are rejected/skipped in Time Run

    Hi!
    We Run Time in background for all employee everyday and then can see no of employee get rejected/processing has not completed for in Time Run Statistics.My Question is How to get to know which employee (employee ID)got rejected/skipped.
    PT_ERL00 is not helpful as we cant guess which message might have terminated Time Run for an employee.
    It must be a usual need in any company.There would be some solution of it.Please help.
    Regards
    Sunita

    Since Time Evaluation was run "LIVE" in the background up to dd.mm.yyyy, you can repeat the execution up to the same date and the system will only pick up the employees whose Time Evaluation was not completed or for whom new Absences/Attendences were entered. 
    So if you re-execute the Time Evaluation with the "Display Log" box checked (as mentioned by Howard), you will be able to see the error messages for the first few employees that are in error, and you will be able to drill down into your Log to identify the source of the error).  After correcting the problem, it is always best to re-execute Time Evaluation "LIVE" (without the Log/Protocol turned "ON") to see if any other employees are still in error.

  • 9.0.3 scan source paths: how to control which files are picked?

    Using 9.0.3 Preview. I've been waiting for the "scan source paths to determine project contents" feature, but I'm running into problems with this:
    * It's picking up "Packages" called com.mycompany.CVS, with "files" called Entries, Repository, etc. It messes the display (making it contain twice the number of entries that I'd like it to show).
    * Also, there's no way to exclude certain files or directories from the list (or is there?). I happen to have a few .jsp files lying around which are copied (by our Ant build.xml) to their proper location - but the build insists on compiling these .JSP files, and worse, spits out the error:
    Error: JSP files must reside in the server root directory or a subdirectory beneath it
    What the heck does this mean?
    How do I get around these problems?
    Shankar.

    Hi,
    You can quickly create a project based on a directory (e.g. the sourcepath) and its (filtered) contents using the New Project from Existing Source wizard in the New Object Gallery (from File->New...). If you're not too bothered about the project being dynamically updated with changes on the filesystem, you may find this solves your issue.
    However, I do agree that there should be some access to filtering for "dynamic" projects. I've logged the following bug against JDeveloper's SCM support (incl. CVS):
    2552750 DYNPRJ: WE SHOULD USE THE DYNAMIC PROJECT FILTER API FOR SCM FILES
    to support filtering out SCM control files (such as Entries, Root etc.) and the following ER against the IDE:
    2552763 DYNPRJ: PROVIDE UI SUPPORT FOR FILTERING
    to provide UI for filtering in a dynamic project.
    Both the bug and ER are published, so you can track their progress on metalink.
    Thanks,
    Brian
    JDev Team

  • How to Determine Which Workspaces Are Open

    We are currently doing some Git automation in which all developer work folders will get updated automatically. However, the automation script should skip a developer folder if CVI is open from that folder. For example, assume there are three folders.
    c:\dev1\myproj.prj
    c:\dev2\myproj.prj
    c:\dev3\myproj.prj
    If dev2 has myproj.prj open, the script will skip that folder. The way we tried to determine if a particular project is open is as follows:
    1. Determine if CVI process is running.
    2. If yes, get CVI window title.
    We wrote a Win32 C++ utility for this purpose. Since the title shows the full workspace path, this information was sufficient. But recently, we noticed that if the path is too long, CVI shortens it (eg: c:\..\folder\myproj.prj). At the same time, if I hover the mouse on the title bar area, CVI shows a tool tip with the full path.
    So I was wondering if there is any way I can read the tool tip string? Suggestions on approaching this in some other way are also welcome.
    Solved!
    Go to Solution.

    You could use ActiveX automation to connect to a running instance of CVI to find out what the current project is.
    Once you determine that an instannce of CVI is running, you can then call CVI_ActiveApp to connect to it (look at samples\activex\cvi\build.prj if you're not familiar with ActiveX automattion). The one caveat is that it's hard to control which instance of CVI will be used by CVI_ActiveApp, in case more than one is running. But you can always also use the CVI_AppGetCVIProcessId function to confirm that you have the right one (whatever the "right one" means, in that case).
    Once you have a connection, then you can use CVI_AppGetCurrentProject.
    Luis

Maybe you are looking for