- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script to monitor hard disk/cpu and memory
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
12-18-2003 09:24 PM
12-18-2003 09:24 PM
script to monitor hard disk/cpu and memory
Anyone has this script handy to monitor hd/cpu and memory. Need to monitor any increamnet on the partition.
Many thanks,
Zul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 09:33 PM
12-18-2003 09:33 PM
Re: script to monitor hard disk/cpu and memory
sar, vmstat and iostat are other ways of getting info like this.
Or do you need to monitor diskspaceusage? In that case you need to look at df/bdf output and compare it with the previous measurement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 09:54 PM
12-18-2003 09:54 PM
Re: script to monitor hard disk/cpu and memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2003 02:08 PM
12-19-2003 02:08 PM
Re: script to monitor hard disk/cpu and memory
and application performance" located at:
http://www.hp.com/products1/unix/java/infolibrary/tools/index.html
HPUX commands comes handy sometimes, if coupled with tools such as TUSC, LSOF (trace unix system calls from http://hpux.cs.utah.edu/) you can do some interesting investigative troubleshooting, here are some examples:
0- to detect any IO stacking on disk
#sar -d 5 100 (iteration every 5 seconds for 100 times)
1- to check if dynamic buffer caching is optimized (no waste) :
# sar -b 3 50
idealy you should see an average %wcacheof 95 or above, if it consistently less than 75% lower dbc_max_pct
2-For CPU usage & bottlenecks one can start looking at:
# sar -uM 2 50
3- to see how swap is used run:
# swapinfo -tma
check total PCT used
4- to verify filesystem usage run:
# bdf -i
5- dmesg
6- use Support tool manager comes with OnlineDiag:
# cstm -> ru -> logtools -> rs (run summary)look at IO errors, usually it shows alot of details about all devices seen by ur system.
7- check syslog.log, actually this should be Number 1, event.log & GSP logs if necessary.
With the above combined you can write customized scripts that grep for thresholds & sends emails alerts to the sysadmin .. but TEST TEST & TEST !
Good Luck
T+ pliz assign points<
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2003 01:46 AM
12-21-2003 01:46 AM
Re: script to monitor hard disk/cpu and memory
I aquired the attached script from a user on the ITRC_forums.
It's quite good
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 07:06 PM
12-22-2003 07:06 PM