Get the each folder size in ASM
Hi,
i have a ASM disk group name as DATA. which contains 30 folders. under 30 folders they are so many folder. if my present directory is DATA and i want to see the size of each folder and sub-folders also . what is command to see the size of each folder in ASM? I used du command, but it shows only total size of all 30 folders. i want each folder size. please let me know the command.
Zstar Electronic Co.Ltd, Wholesaler of fire cards for DS/NDSL/NDSi, Provide R4, R4i, DStt, iEDGE, AK2i,M3,M3i,N5
www.zstar.hk
Similar Messages
-
How to get the personal folder size
Hi,
I'm trying to develop a method for define the maximum size of personal documents folder. I'm changing the Upload Command, and I want to know if its possible to get the current size of the personal documents folder for the user that is trying to upload the document.
For this moment, I've got the current UserID, and I have created an RID with the path "userhome/UserID/Personal Documents", but now I don't know how to get the size of this folder!!!!
Thanks to all.
Arnau RoviraOriginally Posted by NanLau
Hi,
Does anyone know how to get the current size of Mailbox and Archive by using GW api?
Can anyone answer this? Thanks. -
How to get the enclosing folder of an Application?
Ok. re-visiting my Applescript to compare installed apps versus a list of predefined apps... here is my test code so far:
set appsPath to (path to applications folder)
tell application "Finder"
set appList to name of every application file of entire contents of folder appsPath
end tell
set theApps to {"iMovie.app", "Microsoft Excel", "Microsoft Excel.app", "Adobe Acrobat 7.0 Professional.app", "Adobe After Effects CS4.app", "ColorEyes Display Pro.app", "Corel Painter X.app", "DiskTracker 2.3.2", "EPSON Scan.app", "Flash 8.app", "Product Ingest.app", "Product Tag.app", "Art Ingest.app", "TextWrangler.app", "Toast Titanium.app", "Suitcase Fusion 2.app", "Suitcase Fusion 3.app", "Fetch.app"}
repeat with anApp in theApps
set vers to version of (application anApp)
-- get parent path of anApp!!!!
if (parentFolder is equal to "Applications" or parentFolder is equal to "Utilities") then
set parentFolder to ""
end if
display alert anApp & ": Version: " & vers & " " & parentFolder
end repeat
The only thing I'm stuck on is how to get the parent folder of anApp. Basically we use several versions of software here that are not easily identifiable by the version attribute. However their enclosing folder has all the versioning info I need (e.g.: MS Excel 04's vers would be 110113, but the enclosing folder is "Microsoft Office 2004", and some departments get Office 2008, Office 2011, etc., so I need a human-friendly way to get the right versions)
I don't know if the "if" statement to check whether the parent is Applications or Utilities is correct as I haven't gotten that far in testing. I'm only interested in getting the parent of apps that have parent folder that is a sub-folder of Applications or Utilities.
Basically what I am trying to do here is write a text file containing all departmental apps, homefolder sizes, relevant partition sizes, etc. and spit it out at the tech responsible for migrating a user to a new mac (display alert is just convenient for testing purposes). In the past we've had too many "missed" items in QC like wrong apps installed, or wrong versions, or data not copied over properly, etc. So this way they can run this on the old system beforehand and the new system after, line everything up and check off if it matches. This is just a snippet...
TIA!
AndrewHi,
Andrew Caldwell wrote:
Is there a way to invoke these without the script opening each one?
You must use the bundle identifier instead of the name
Here a example :
set theApps to {"com.microsoft.excel", "com.adobe.Acrobat.Pro", "com.barebones.textwrangler", "com.roxio.Toast", "com.fetchsoftworks.Fetch"}
repeat with anApp in theApps
tell application "Finder" to tell (application file id anApp)
set vers to version
set parentFolder to name of its container
end tell
if parentFolder is in {"Applications", "Utilities"} then set parentFolder to ""
display alert anApp & ": Version: " & vers & " " & parentFolder
end repeat -
How I get the community Folder of community using adaptive tag?
Hi,
How I will get the community Folder of community using adaptive tag.Hi,
Andrew Caldwell wrote:
Is there a way to invoke these without the script opening each one?
You must use the bundle identifier instead of the name
Here a example :
set theApps to {"com.microsoft.excel", "com.adobe.Acrobat.Pro", "com.barebones.textwrangler", "com.roxio.Toast", "com.fetchsoftworks.Fetch"}
repeat with anApp in theApps
tell application "Finder" to tell (application file id anApp)
set vers to version
set parentFolder to name of its container
end tell
if parentFolder is in {"Applications", "Utilities"} then set parentFolder to ""
display alert anApp & ": Version: " & vers & " " & parentFolder
end repeat -
How is it posible to get the File name, size and type from a File out the H
How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
form JSP
<form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
File: <input type="file" name="filename"/
Path: <input type="text" readonly="" name="path" value="c:"/
Saveas: <input type="text" name="saveas"/>
<input name="submit" type="submit" value="Upload" />
</form>
proces JSP
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="FileUploadBean" %>
<jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
<%
TheBean.doUpload(request);
%>
BEAN
import java.io.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletInputStream;
public class FileUploadBean {
public void doUpload(HttpServletRequest request) throws IOException
String melding = "";
String filename = request.getParameter("saveas");
String path = request.getParameter("path");
PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
ServletInputStream in = request.getInputStream();
int i = in.read();
System.out.println("filename:"+filename);
System.out.println("path:"+path);
while (i != -1)
pw.print((char) i);
i = in.read();
pw.close();
}Thanks it works great.
Here an excample from my code
import org.apache.commons.fileupload.*;
public class FileUploadBean extends Object implements java.io.Serializable{
String foutmelding = "geen";
String path;
String filename;
public boolean doUpload(HttpServletRequest request) throws IOException
try
// Create a new file upload handler
FileUpload upload = new FileUpload();
// Set upload parameters
upload.setSizeMax(100000);
upload.setSizeThreshold(100000000);
upload.setRepositoryPath("/");
// Parse the request
List items = upload.parseRequest(request);
// Process the uploaded fields
Iterator iter = items.iterator();
while (iter.hasNext())
FileItem item = (FileItem) iter.next();
if (item.isFormField())
String stringitem = item.getString();
else
String filename = "";
int temp = item.getName().lastIndexOf("\\");
filename = item.getName().substring(temp,item.getName().length());
File bestand = new File(path+filename);
if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
FileOutputStream fOut = new FileOutputStream(bestand);
BufferedOutputStream bOut = new BufferedOutputStream(fOut);
int bytesRead =0;
byte[] data = item.get();
bOut.write(data, 0 , data.length);
bOut.close();
catch(Exception e)
System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
foutmelding = "Bestand opsturen is fout gegaan";
return true;
} -
On a macbook I purchased secondhand hard drive got corrupted and I started to get the flashing folder with the question mark, I purchased a new hard drive and snow lion install DVD I installed the hard drive and tried disc but kept getting blinking folder
Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc."
Power on the computer and insert the DVD immediately.
Hold down the 'C' key to boot from the Snow Leopard DVD.
http://support.apple.com/kb/ht1533
After selecting the appropriate language, if necessary, select Utilities, and Disk Utility.
You'll likely need to partition and format the new drive before it's recognized.
http://manuals.info.apple.com/MANUALS/0/MA161/en_US/MacBook_13inch_HardDrive_DIY .pdf
(Yes, these instructions ARE 7 years old, but the procedure is the same for installing from DVD media.) -
How to get the system32 folder path in java?
how to get the system32 folder path in windows using java code?
Zstar Electronic Co.Ltd, Wholesaler of fire cards for DS/NDSL/NDSi, Provide R4, R4i, DStt, iEDGE, AK2i,M3,M3i,N5
www.zstar.hk -
How to get the actual screen size
Hi,
I have to get the actual screen size of the cliend in an applet, if i use method
Dimension dmx = Toolkit.getDefaultToolkit().getScreenSize();
it does not gives the actual screen size, like the screen size will be different if the application bar ( where we have start button on windows ) is Auto hide, and will be different it is not Auto Hide, or some users ike to keep the application bar on right or left of screen or on top..
So how do we get the actual display size of screenHi,
I got how to do if using applet
in screen object of java script we have methods to get the available width and availabe size
screen.availWidth
screen.availHeight
here is the link for more info
http://developer.netscape.com/docs/manuals/js/client/jsref/screen.htm
http://forum.java.sun.com/thread.jsp?thread=275329&forum=57&message=1063410 -
How do you get the Event folder date to match the media dates in FCPX
Modifying the clip date/time with the Modify command works fine ... but the Event itself still has the date the event was created, not the date of the media that it contains.
If tried using Touch on the Event folder but FCPX ignores it.
Any ideas on how to get the Event folder date to match the media dates (or set to any other date desired) so that Events sorted by date show the actual dates of the media that they contain?
Thanks
JonathanHere is the texture I've been manipulating all afternoon to try and achieve the looks i want.
and when I put this texture over the top of other images and select Multiply, and adjusted the opacity, this is what i get....
Now this kinda works?? but it still looks not as good on an asian person.
Thanks by the way to everyone for all the tips, I really really appriciate it and more suggestions for improvments are welcome! -
Hi,
How to get the root folder name using sharepoint designer WF? i have a document library with root folders and subfolders. so i am trying to get the root specific root folder name attaching with email once user will
upload any files to subfolders within that root folder.
Thanks in advanced!Hi,
According to your description, you might want to get the root folder name in SharePoint Designer Workflow when there is file uploading.
The “Path” field of the current item holds the relative path of a file, as a workaround, you can retrieve the value of the “Path” as string, then split the string
value with a delimiter character of “/” to meet your requirement.
In SharePoint Designer 2010, there is no OOTB action to split the string. You can use the custom workflow actions below to achieve it.
Here is a link about the related actions I use in this scenario:
https://spdwfstringactions.codeplex.com/
Settings of workflow as below:
It works well in my environment:
Best regards
Patrick Liang
TechNet Community Support -
How do you get the applications folder on mac book pro
How do you get the applications folder on mac book pro?
To access it, you open the Finder (blue face at bottom left of dock) and click the Applications shortcut you'll find there.
Matt -
Opening Numbers and getting the same page size and location each time
Can someone help me with something which is pretty basic, please?
When I open a Numbers spreadsheet which I use frequently, each time it opens as a tiny box and always has to be resized and repositioned onscreen before I can start work.
I figure there must be something I can do to have it open in the same screen position and the same size each time, but what?Hi Norman,
Your tags show OS X Mavericks 10.9. The latest version of Mavericks is 10.9.2
Are using Numbers 3.0 ? The lates version of Numbers is 3.1 and it does save the zoom.
Maybe this will help, but it does not work in Numbers 3.0
Numbers > Preferences > General > Default Zoom > 100% (or whatever % you want).
And Save your document before closing to retain the zoom and position.
The Numbers *window* size can not (yet) be saved, but the zoom and the position within a sheet can be saved in Numbers 3.1
Regards,
Ian. -
Help. I moved my iTunes account (set up on a computer running on a school network) to an external drive, because I was out of network drive space. I changed my iTunes shortcut to point to my external drive. I am upable to pull music from a CD and copy it to the iTunes folder on the external drive. But when I try to open iTunes or use a previosuly set up device I get the following error message... "The folder iTunes is on a locked disc or you do not have write permissions for this folder." I have gone in and unchecked the read only on the folder and given my self all rights in my iTunes properties. Still I can't get in, and iTunes will only open to the folder on the external, it won't even open the iTunes page so I can see what I have. Help I need to be able to access those old files.
davidfrombillings wrote:
I thought I could just drag and drop my iTunes library to an external hard drive.
it'll work ... if done properly ☞
copy the entire iTunes folder (not just the iTunes music or media folder) from <MacintoshHD>/users/<yourname>/music on your Mac to the external, then launch iTunes while holding the option (⌥) key, click on choose library when prompted, and select the iTunes folder on the external.
if I already have my iTunes going to the incorrect files how is it going to find the correct files again.
you could try if this script helps:
iTunes Track CPR v1.3
This script attempts to locate the files of so-called "dead tracks"--iTunes tracks designated with (!)--that you assume are not actually missing but are still located in the iTunes Music folder in their "iTunes File Order" (Music -> Artist -> Album -> file.xxx)."
Eric Ross wrote:
When you moved the file back did you go back into iTunes in your preferences and select the advance tab and then selected the location again or where your files are
the iTunes media folder location in preferences > advanced tells iTunes where to put new additions to your library, not where your content currently is. -
Any way to get the Tiger folder=menu behavior back?
I didn't realize how much I missed this Tiger feature until now it's gone:
In Tiger, if you dragged a folder into the Dock, you could click-and-hold on it to display a pop-up menu of its contents. If there were other folders inside it, they would display as submenus. You could follow along the submenus until you reached the item you wanted. For example, you could launch an application or open a document buried several layers deep in sub-folders by following along the pop-up menus.
In Leopard, as far as I can tell, if you put a folder's icon in the Dock, you can ONLY make it behave as a Stack. Stacks are OK if everything in the folder is at the same level... but if you've got other folders inside, the Stack is pretty much useless.
Has anyone found a way to get the Tiger functionality back? I've tried the fn, ctrl, option and command keys, hoping one of these would display the submenus, but no luck.Okay, I found that third-party developers have stepped up with ways to do this (one I've tried is the free HierarchicalDock -- http://www.eternalstorms.at/utilities/hierdock/) but now that I've had a few weeks to get used to Leopard, I find that I don't miss menu folders as much as I did. They were always kind of slow to update anyway, and there are other ways in Leopard to do what I want.
-
How to get the current Mailbox size
Hi,
Does anyone know how to get the current size of Mailbox and Archive by using GW api?Originally Posted by NanLau
Hi,
Does anyone know how to get the current size of Mailbox and Archive by using GW api?
Can anyone answer this? Thanks.
Maybe you are looking for
-
Hi, I want to distinguish two messages via message filters. One is a duplicate of the other and I want to delete it. The filter is defined as follows: - match all of the following - To or Cc contains %[email protected] - Return-Path doesn't contain sdd
-
sometimes when I try to make a call to someone, I can't hear the connecting tone im my phone, but the other party's phone is ringing. I have to end the call again and make another attempt. The connecting tone could only be heard after I made a redi
-
Transferring EXCEL or WORD docs from PC to iPhone
What is the easiest way to transfer a word or excel document from my Windows PC into my iPhone 4, please? I have Quickoffice app [with word, excel etc] installed in my iPhone.
-
Handeling errors thrown from report viewer ?
Hi, I am using Crystal reports 2008 (12.0.0.683) for developing windows applications in Visual Studio .Net 2005. I use Crystal viewer ActiveX control in our windows form application for showing the reports. In my report, in the header part i am using
-
Compressor working after hardware Fix
Hi Everyone, I thought this might be of help to some of the folks having Compressor problems. I was never able to get Compressor to work stably on my Dual 2.0ghz G5. Despite always downloading the latest updates, adding new user account and running t