- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cpu memory and disk utilization
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
04-05-2006 01:59 AM
04-05-2006 01:59 AM
I need to run sort of script to log cpu, memory & disk utilizatin as shown in glance to a file for approx. one hour, anyone hav somthing ready to use.
Ahmed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 02:07 AM
04-05-2006 02:07 AM
Solutionhttp://www.hpux.ws/system.perf.sh
Collects them in the background to the /tmp filesystem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 02:18 AM
04-05-2006 02:18 AM
Re: cpu memory and disk utilization
Nice script. It will help in future.
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 02:20 AM
04-05-2006 02:20 AM
Re: cpu memory and disk utilization
U r the best...
How can I stop it ?
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 02:21 AM
04-05-2006 02:21 AM
Re: cpu memory and disk utilization
You can check this thread,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=991381
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 02:23 AM
04-05-2006 02:23 AM
Re: cpu memory and disk utilization
It stops itself.
nohup sar -qM 1 600 > /tmp/HP_perf_info.report &
This says run it for 600 seconds.
I normally change the stock code to look like this:
# $1 must be run time in seconds
RT=$1
uname -a > /tmp/HP_info
model >> /tmp/HP_info
uptime >> /tmp/HP_info
swlist -l bundle >> /tmp/HP_info
bdf >> /tmp/HP_info
swapinfo -ta >> /tmp/HP_info
cat /etc/fstab >> /tmp/HP_info
lvlnboot -v >> /tmp/HP_info
vgdisplay -v >> /tmp/HP_info
lanscan >> /tmp/HP_info
ioscan -fn >> /tmp/HP_info
cat /etc/inittab >> /tmp/HP_info
dmesg >> /tmp/HP_info
crontab -l >> /tmp/HP_info
swlist -l fileset >> /tmp/HP_info
/usr/bin/top -f /tmp/HP_perf_info
cat /stand/system >> /tmp/HP_perf_info
nohup sar -qM 1 $RT > /tmp/HP_perf_info.report &
nohup sar -uM 1 $RT > /tmp/HP_perf_info.cpu &
nohup sar -b 1 $RT > /tmp/HP_perf_info.buffer &
nohup sar -d 1 $RT > /tmp/HP_perf_info.disk &
nohup sar -w 1 $RT > /tmp/HP_perf_info.swap &
nohup sar -v 1 $RT > /tmp/HP_perf_info.inode &
sysdef >> /tmp/HP_perf_info
Why I've not changed the version on my website, I don't know.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 02:56 AM
04-05-2006 02:56 AM
Re: cpu memory and disk utilization
How can I use ur script to have every say 5 minutes intervel.
by the way I can't see for memory usage?
Thanks Ahmed