- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script bdf /mount_point with certain percentage us...
Operating System - HP-UX
1748223
Members
4812
Online
108759
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2009 11:34 PM
тАО08-11-2009 11:34 PM
script bdf /mount_point with certain percentage usage and then do certain action
Dear All Unix masters,
I have script below:
bdf /u11|awk '{print $5}'|tail -1|cut -c 1-2
How to improve the above script if /u11 reach 75% usage then do the following actions:
a)mailx to certain list mail address
b)move all file in /u11 to the temporary mount point
Please help.Many thanks.
I have script below:
bdf /u11|awk '{print $5}'|tail -1|cut -c 1-2
How to improve the above script if /u11 reach 75% usage then do the following actions:
a)mailx to certain list mail address
b)move all file in /u11 to the temporary mount point
Please help.Many thanks.
- Tags:
- bdf
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 01:50 AM
тАО08-12-2009 01:50 AM
Re: script bdf /mount_point with certain percentage usage and then do certain action
There is a great script that I have attached that does what your asking for, the author of the script is Bill Hassell, so the points should be for him
Windows?, no thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 02:17 AM
тАО08-12-2009 02:17 AM
Re: script bdf /mount_point with certain percentage usage and then do certain action
Hi Zap,
Please find attached file contained the require script. Attached script search all mounted file system above 90%.
a) mailx to certain list mail address - included
b) Move all file in /u11 to the temporary mount point - files move as per size, subject or extension. ?
Hope this will help you.
Please find attached file contained the require script. Attached script search all mounted file system above 90%.
a) mailx to certain list mail address - included
b) Move all file in /u11 to the temporary mount point - files move as per size, subject or extension. ?
Hope this will help you.
Good judgment comes from experience and experience comes from bad judgment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2009 01:06 AM
тАО08-14-2009 01:06 AM
Re: script bdf /mount_point with certain percentage usage and then do certain action
I wrote a script as other friends did here, it can meet your requirements, if directory usage reach a defined value it will delete file you stated; before deletion check ,if it is open ,and close it to prevent possible corruption.
It is good for Solaris , but I do think ,,you can easily midfy for HP-UX. and beside do not forget to set ref=75 ..
Regards
It is good for Solaris , but I do think ,,you can easily midfy for HP-UX. and beside do not forget to set ref=75 ..
Regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP