- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
01-30-2005 05:00 PM
01-30-2005 05:00 PM
GM,
I need a exact script which should alert me when a f/s is full.
Urg. pls
tar
avis
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 05:59 PM
01-30-2005 05:59 PM
Re: Script
This is the script which alert you when file system is upper then 90% or full
bdf|grep -v File |awk '{ if ( $(NF-1) > 90 || $(NF-1) == "100%" ) print}'
you can make a script file then make it in cronjob to check it frequently.
HMT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 11:02 PM
01-30-2005 11:02 PM
Re: Script
Change that script to alert when an FS reaches anywhere from 80%-94%, especially when an FS is SMALL. The larger the FS, then the more room to grow into, thus you might be able to increase the % to a larger number before alerting. There is NO magic bullet.
Additionally you need to PLOT your FS usage and be prepared to add additional storage if necessary.
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 02:22 AM
01-31-2005 02:22 AM
Re: Script
Make the Execution of this script with cron schedular.
#!/bin/ksh
# Alerter
for line in `bdf | awk '!/^Filesystem/ { print $5" "$6 }'`
do
per=$(echo $line | awk '{ print $1 }'
fs=$(echo $line | awk '{ print $1 }'
per1=$(echo $per | cut -d'%' -f1)
if [[ $per1 -gt 90 ]]
then
echo "$fs is greater than 90%" | mailx -s "Alert"
fi
done
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 02:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 04:26 AM
02-01-2005 04:26 AM
Re: Script
free.sh 5 will return filesystem that have less the 5% free space.
or
free.sh 20 will return filesystem that have less than 20% free space
The following snippet runs from cron,
you can easily modify to send page
SPACEWARN=20
for arg in $(free.sh ${SPACEWARN}|cut -f1 -d" ")
do
if
[ -n ${arg} ]
then
echo $(free.sh ${SPACEWARN}|grep ${arg}) | mailx -s "$arg low on space" root
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 08:12 AM
02-01-2005 08:12 AM
Re: Script
I emails me when 80% of the space has been used.
Marty