- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX Shell Scripts
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
Discussions
Discussions
Forums
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
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
тАО02-13-2003 01:59 AM
тАО02-13-2003 01:59 AM
Please help me to pass some unix sheel scripts.
I would like to monitor the daily disk space utilisation i.e. if it is more than 80% I will get alert via pager or email. ---- and other
System Utilities also (monitoring the Cluster, Tape drive is online before backup etc etc..
((( GET 10 Points ))) ((( as a Thanks )))
With Regards
Harry
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 02:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 02:24 AM
тАО02-13-2003 02:24 AM
Re: HP-UX Shell Scripts
This posting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 02:40 AM
тАО02-13-2003 02:40 AM
Re: HP-UX Shell Scripts
Script samples
http://www.introcomp.co.uk/hpux/index.html
http://forums.itrc.hp.com/cm/TopSolutions/1,,CA592260!1!answers,00.html
Hope it helps
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 03:50 AM
тАО02-13-2003 03:50 AM
Re: HP-UX Shell Scripts
LOW=75
HIGH=90
DATE=$(date)
OUTFILE=/tmp/bdfrep
:>$OUTFILE
(bdf |egrep -v '(cdrom|vg12temp)' |sed -e "1d"|sed -e "/^.*:.*$/d"|sed -e "/^[
] [ ]*.*$/d"|
while read LVOL SIZE USED AVAIL PERCENTAGE MOUNT_PT
do
BREAK=PAUSE
PERCENTAGE=$(echo $PERCENTAGE | sed -e "s/%//")
if [ $PERCENTAGE -ge $HIGH ]; then
echo " $DATE - WARNING - The percentage of used space on filesystem $MOU
NT_PT is greater than $HIGH percent"
echo "TO:sysadm
FROM:root@system.com
SUBJECT:Check Filesystem Space
$DATE - WARNING - The percentage of used space on filesystem $MOU
NT_PT is greater than $HIGH percent"|sendmail -t
elif [ $PERCENTAGE -ge $LOW ]; then
echo " $DATE - WARNING - The percentage of used space on filesystem $MO
UNT_PT is greater than $LOW percent"
fi
done
) >> $OUTFILE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 05:10 AM
тАО02-13-2003 05:10 AM
Re: HP-UX Shell Scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 05:25 AM
тАО02-13-2003 05:25 AM
Re: HP-UX Shell Scripts
Hi Harry,
Here follows a script that I did in order to check the file system.
Regards,
Ricardo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 05:26 AM
тАО02-13-2003 05:26 AM
Re: HP-UX Shell Scripts
The most elegant way to do this is using HP's event monitoring services.
If not already installed download it from
ftp://software.hp.com/dist/swdepot/downloads/3596858471/B7609BA_11.11.depot
Configure it from SAM; its very easy a reliable.
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 05:36 AM
тАО02-13-2003 05:36 AM
Re: HP-UX Shell Scripts
Here we are using OVO (IT/O, VPO, or however you wanna call it) for all that stuff. Basically, it does all of that monitoring for us. I'm sure there is a cost associated to it, and was wondering if that's the reason you are looking for scripts. Cause if cost is not an issue, I would suggest to talk to HP about OVO.