- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Do you have script to do this?
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
05-09-2005 01:33 PM
05-09-2005 01:33 PM
Do you have script to do this?
I have several servers and also have a adminstration server from where i can run the SSH to all the servers.
My aim is to make a script that will go and check all the filesystems in the ROOT vg and send me a mail saying that this server's the following filesystems are at "this" percentage like.
Nile's opt is 92%
Nile's var is 85%
Hudson's opt is 88% like that.
Do you any thought on this.
Tx,
Nair
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 01:55 PM
05-09-2005 01:55 PM
Re: Do you have script to do this?
#!/usr/bin/sh
for i in server1 server2 server3 server4
do
echo "${i} VG00 filesystems:"
ssh ${i} bdf | grep vg00
echo ""
echo ""
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 01:57 PM
05-09-2005 01:57 PM
Re: Do you have script to do this?
Please see attached. There are several others which I got from ITRC as well.
Regards,
Isralyn
P.S. Dunno how to do multiple attachments, though so I'll send you another one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 01:57 PM
05-09-2005 01:57 PM
Re: Do you have script to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 01:58 PM
05-09-2005 01:58 PM
Re: Do you have script to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 03:11 PM
05-09-2005 03:11 PM
Re: Do you have script to do this?
http://www.cs.virginia.edu/~an4m/books/oreilly/unix_bookshelf/sedawk/
HTH
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 05:22 PM
05-10-2005 05:22 PM
Re: Do you have script to do this?
the authır but i am still using;
function check_bdf {
bdf -l |grep -v cdrom | awk '$0 !~ /^F/' > /tmp/bdf_out
awk '{if (NF!=1){
if (NF==5){
print $4"\t" $5"\t"
}
else{
print $5"\t\t" $6"\t"
}
}}' < /tmp/bdf_out
rm /tmp/bdf_out
}
check_bdf | sed 's/'%'/''/' > /tmp/bdf_info
function panic {
while read percent dir ### If file system is >= 90% - email to addresses below
do
if [[ $percent -ge 95 ]] ; then
mailx -s "File system full-`hostname`:$dir is at $percent%" mailaddress < /dev/null
fi
done
} < /tmp/bdf_info
panic
rm /tmp/bdf_inf