HPE GreenLake Administration
Operating System - HP-UX
1834230
Members
2607
Online
110066
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
03-11-2007 12:01 AM
03-11-2007 12:01 AM
Dear Gurus,
I am using HP-UX 11i
in my system DATA-BASE is creating archives in one LV.
I want on script when that LV goes upto 90%
one mail will generate and that mail will forward to my mail address.
Thanks in adv.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2007 12:38 AM
03-11-2007 12:38 AM
Solution
Hi:
Here's a simple script.
# bdf /mydatabase|awk 'NR==2 {split($5,a,"%");if (a[1]>=90) {exit 0};exit 1}' && mailx -s "Filesystem >= 90% full" prash < /dev/null
This assumes that the name of the monitored filesystem is "/mydatabase" and that when your filesystem utilization is greater than or equal to 90%, an email alert to you is generated.
The idea is that you would 'cron' this to run periodically.
Regards!
...JRF...
Here's a simple script.
# bdf /mydatabase|awk 'NR==2 {split($5,a,"%");if (a[1]>=90) {exit 0};exit 1}' && mailx -s "Filesystem >= 90% full" prash < /dev/null
This assumes that the name of the monitored filesystem is "/mydatabase" and that when your filesystem utilization is greater than or equal to 90%, an email alert to you is generated.
The idea is that you would 'cron' this to run periodically.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2007 12:38 AM
03-11-2007 12:38 AM
Re: SCRIPT
You don't neeed a script for that - SAM has an interface to the Event Monitoring System (EMS) which can do just what You want.
Fire up graphical SAM (text mode had issues with EMS for me) and roughly follow this tree:
SAM ->
Resource Management ->
Event Monitoring Service ->
Add ->
Monitoring Request ->
system ->
filesystem ->
availMb
set the database archive log filesystem to email at condition availMb < FS_Size/10
Set Email on 'initial'
Enter Email address
I suggest You use this over a script, it's reasonably flexible and OS internal, thus more reliable.
Fire up graphical SAM (text mode had issues with EMS for me) and roughly follow this tree:
SAM ->
Resource Management ->
Event Monitoring Service ->
Add ->
Monitoring Request ->
system ->
filesystem ->
availMb
set the database archive log filesystem to email at condition availMb < FS_Size/10
Set Email on 'initial'
Enter Email address
I suggest You use this over a script, it's reasonably flexible and OS internal, thus more reliable.
yesterday I stood at the edge. Today I'm one step ahead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2007 06:01 PM
03-11-2007 06:01 PM
Re: SCRIPT
thanks for your Valuable information I done it through SAM
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP