- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I get these information?
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
тАО08-26-2007 05:00 PM
тАО08-26-2007 05:00 PM
I have two questions about "sar"
SYNOPSIS
sar [-ubdycwaqvmAMPS] [-p psetid] [-o file] t [n]
sar [-ubdycwaqvmAMPS] [-p psetid] [-s time] [-e time] [-i sec] [-f
file]
1. I can use sar -p / sar -g on Solaris and sar -B on Linux to get pages page-in / pages page-out information.
However, on HP-UX, sar does not have -p/g/B parameter.
How can I get pages page-in / pages page-out information on HP-UX?
2. I can use sar -r -f
But HP-UX does not support this parameter to sar.
How can I get free memory information on HP-UX?
P.S. Using
vmstat 1 2 | tail -1 | awk '{printf "%d\n", ($5*4)}'
output to a file in cron job is probably a solution to this. Is there any other solutions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2007 05:28 PM
тАО08-26-2007 05:28 PM
SolutionHi Livia,
1) use Glance tool is the best solution to look at your KB Page IN/ KB Page Out
2) How to get free memory information on hpux?
Again use Glance tool
Glance -> Memory Report (at the bottom, left hand side will show Free memory)
See my attachment
WK
Please assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2007 06:02 PM
тАО08-26-2007 06:02 PM
Re: How can I get these information?
But I need to get historical information. (I usually use sar to get information of a whole month from /var/adm/sa/sadd) It seems glance only provide information about current status ?
So I have to run glance in cron job?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2007 06:19 PM
тАО08-26-2007 06:19 PM
Re: How can I get these information?
yes you can. But your need to use glance via cron
The following is an sample script:
#!/usr/bin/ksh
export TERM=hp
export PATH=$PATH:/opt/perf/bin
/opt/perf/bin/glance -adviser_only >/tmp/gl.log 2>/dev/null &
exit 0
Now schedule and launch the above script via cron.
cd /opt/perf/paperdocs/C
# ls
GP-install.pdf concepts.pdf gpinst.pdf metrics.txt
adviser.pdf gp-metrics.txt metrics.pdf
=> you can refer to this adviser.pdf to learn more.
WK
Please assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2007 11:35 PM
тАО08-26-2007 11:35 PM
Re: How can I get these information?
Since you have Glance, you probably have Measureware (try: mwa status) which automatically keeps many days of logs on more than 200 measurements. If you look at the /ope/perf/paperdocs directory you'll see the documentation on mwa and how to use the extract command to get all the stats you will ever need.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2007 08:55 PM
тАО08-27-2007 08:55 PM
Re: How can I get these information?
To Bill Hassel:
Seems I do not have "Measureware"......anyway, thanks for your reply :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2007 09:00 PM
тАО08-27-2007 09:00 PM
Re: How can I get these information?
http://www.hp.com.tw/ssn/unix/0702/unix070203.asp