Command/script to find size of Unix Box ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Command/script to find size of Unix Box ?
# 1  
Old 06-12-2008
Command/script to find size and usage of Unix Box ?

Please could anyone provide me the Command/script to find the size and usage of Unix box ASAP ?

Last edited by sakthifire; 06-18-2008 at 09:24 AM..
# 2  
Old 06-12-2008
Tools Lots to look at, but to see Memory

Code:
> top -d1 | grep Memory
Memory: 32G phys mem, 28G free mem, 31G swap, 31G free swap

Are there specific details you are looking for? The above tells something about Memory; but there are many other commands to retrieve info about lots of things.
# 3  
Old 06-12-2008
Hi Friend
I want to know the size/usage of box . In sense , totally how much space has been utilized , how much space allocated for the box ......

I executed the command : > top -d1 | grep Memory in the box , I got the out put like the below.

$ > top -d1 | grep Memory
ksh: -d1: not found.


can you please help me on this ?
# 4  
Old 06-12-2008
Tools top -d1

from the man page:

Code:
     -dcount
          Show only count displays, then exit.  A display is con-
          sidered  to  be  one update of the screen.  This option
          allows the user to select the  number  of  displays  he
          wants  to  see  before  top  automatically  exits.  For
          intelligent terminals, no  upper  limit  is  set.   The
          default is 1 for dumb terminals.

My intent was to force just one iteration of the top command to be executed. Not sure why the -d option is not available in ksh.
At any rate, was that sample output I provided what you wanted? If so, can try another approach to the data, but if not then will not waste much time heading down this path.
# 5  
Old 06-13-2008
Quote:
$ > top -d1 | grep Memory
ksh: -d1: not found.
This is not a ksh issue. It is a user issue. Do not type ">" before "top -d1 | grep Memory"

Not all systems have top installed. If you told us what version of the UNIX operating system you are using, we could give you a better more precise answer.
# 6  
Old 06-16-2008
UNIX Version : AIX

Thank you . Sorry for the late reply .I am using UNIX version : AIX .

$ uname -a
AIX rs29 3 4 000034954C00
# 7  
Old 06-18-2008
refresh ...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX command to copy files from Windows to UNIX box

Hi Folks, I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/ now the credentials of unix box are abc345 -->(dummyid) ftyiu88--->(dummy passwd) ... (4 Replies)
Discussion started by: punpun66
4 Replies

2. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

3. UNIX for Advanced & Expert Users

how to find the file size in unix

Anybody can help HOW TO FIND THE FILE SIZE IN UNIX (5 Replies)
Discussion started by: lmraochodisetti
5 Replies

4. UNIX for Dummies Questions & Answers

I need an scp command from a unix box to a windows box.

scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/ Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies

5. Shell Programming and Scripting

unix script to check whether particular file exists and to find its size

I want to find the size of particular file exists in a particular directory and i wnt to zip it. In the below mentioned code it should check the MQ.log in the particular directory.Please correct my code so that it will check for particular MQ.log but i could not able to check whether the... (9 Replies)
Discussion started by: Balachandar
9 Replies

6. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

7. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

8. Shell Programming and Scripting

calling a unix script in one box from another box

i have a unix script which is available in a box say box1 i want this script to be run in box box2 and put the output file in box2 what is the procedure to execute this script in box2 i will call the script in box1 using cybermation (1 Reply)
Discussion started by: trichyselva
1 Replies

9. Shell Programming and Scripting

how to find password for current user in unix box

hi all, kindly let me know the command to get password and user for current user in unix. thanks in advance. --Bali Reddy.Y (1 Reply)
Discussion started by: balireddy_77
1 Replies

10. UNIX Desktop Questions & Answers

how do I increase the character size in the Unix Box

do anybody has knowledge how do i increase the character size in the UNIX box (1 Reply)
Discussion started by: subir23
1 Replies
Login or Register to Ask a Question