Mount point usage


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Mount point usage
# 1  
Old 04-20-2012
Mount point usage

Hi Guys,

I have Solaris 9 and RHEL 5 boxes I implemented script to send me an email when my mount point is > 90.

Now the ouput id like these:
Code:
/dev/dsk/emcpower20a 1589461168 1509087840 64478720    96%     /data1
/dev/dsk/emcpower21a 474982909 451894234 18338846       97%     /data2
/dev/dsk/emcpower4a  216851376 213317425 1365438         100%    /data3
/dev/dsk/emcpower30a 782725328 747961996 26936079        97%    /data4

I want the output to be like these:
Code:
96%     /data1
97%     /data2
100%    /data3
97%    /data4

How do I do that ?

Thanks in advance...

Please Help !!!!!!!!!!

Last edited by Scrutinizer; 04-20-2012 at 06:07 AM.. Reason: Please use code tags
# 2  
Old 04-20-2012
Try:
Code:
awk '{print $5,$6}' OFS='\t' infile

or to also select the lines above 90%:
Code:
awk '$5+0>90{print $5,$6}' OFS='\t' infile

On Solaris use /usr/xpg4/bin/awk (you can change the PATH variable in your script)
This User Gave Thanks to Scrutinizer For This Post:
# 3  
Old 04-20-2012
Thanks a lot...

Your code did do the trick for me...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies

2. AIX

How to change the mount point of LV?

I have situation where my disk upon reboot, has its mount point as # LOGICAL VOLUME: disk4vol VOLUME GROUP: disk4vg LV IDENTIFIER: 00f609aa00004c0000000152414b786c.1 PERMISSION: read/write VG STATE: active/complete LV STATE: closed/syncd TYPE: jfs2 WRITE VERIFY: off MAX LPs: 512 PP SIZE: 512... (1 Reply)
Discussion started by: mrmurdock
1 Replies

3. Red Hat

Regarding NFS mount point

Dear All, We have two different mount points in Linux NFS one is 15 TB and another one is 15 TB. Can we club both of the two mount points and club in to a single volume in Linux. As we need to restore Database in that single volume. Kindly help us on this. Regards , rj (10 Replies)
Discussion started by: jegaraman
10 Replies

4. Shell Programming and Scripting

tracking high water usage of mount point

Oracle Linux 5.6 x86-64 This may or may not end up being a strictly 'scripting' issue, but I'll start here. I'm looking for a way of establishing the 'max' or 'high water' useage of a given mount point over a period of a week. My first thought was for a cron job, as: */5 * * * * df -h |... (4 Replies)
Discussion started by: edstevens
4 Replies

5. Solaris

Size of Mount Point

Hi, On Solaris 5.10, I have a following mount point: /dev/dsk/emcpower0a 492G 369G 118G 76% /u02 In /u02, from the du -h command, I can see that only 110G is used by couple of directories. I am wondering where the rest of 259G has gone? Any ideas please? How can I check... (17 Replies)
Discussion started by: fahdmirza
17 Replies

6. AIX

Creating a new mount point

Hello, I have an AIX Oracle database server that I need to create a new filesystem/mount where I can create a new ORacle home to install 11g on. What are the needed steps to create this? There are mounts for Oracle 9i and 10g already. Thank you. - David (7 Replies)
Discussion started by: dkranes
7 Replies

7. UNIX for Advanced & Expert Users

Mount point options

Hello all, I'm sharing 1 volume from a Sun Storage array (6130), out to 2 servers. Created a slice on one server and mounted a filesystem. On the other server the disk already sees the created slice from the other server (shared throught the storage array, so mounted this filesystem as well. ... (1 Reply)
Discussion started by: Sunguy222
1 Replies

8. UNIX for Dummies Questions & Answers

concept of mount point

Hi All I Know it is a really basic and stupid question perhaps...But I am going bonkers.. I have following valid paths in my unix system: 1. /opt/cdedev/informatica/InfSrv/app/bin 2. /vikas/cdedev/app Both refer to the same physical location. So if I created one file 'test' in first... (3 Replies)
Discussion started by: Vikas Sood
3 Replies

9. UNIX for Dummies Questions & Answers

mount point

hi people, I'm trying to create a mount point, but am having no sucess at all, with the following: mount -F ufs /dev/dsk/diskname /newdirectory but i keep getting - mount-point /newdirectory doesn't exist. What am i doing wrong/missing? Thanks Rc (1 Reply)
Discussion started by: colesy
1 Replies

10. UNIX for Dummies Questions & Answers

Recover mount point

A disk was sliced into 6 slices with m01 being the mount point for one of the slices. This mount point was deleted with rmdir (ie. rmdir m01). What is the easiest way to recover this mount point? (1 Reply)
Discussion started by: here2learn
1 Replies
Login or Register to Ask a Question