- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extract command parameter
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-25-2003 09:26 PM
05-25-2003 09:26 PM
I am trying to get a per day average within one month in mw data, I am using extract command but I dont know the parameter to come out this data.
Tnxs in advance
Joseph ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2003 09:32 PM
05-25-2003 09:32 PM
Re: Extract command parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2003 10:45 PM
05-25-2003 10:45 PM
Re: Extract command parameter
This will extract global summary information for the month of May(5) for all the metrics specified in /var/opt/perf/reptfile and output the data to /tmp/mwa_output.
You can customise what metrics you what to extract by using a customised file in place of reptfile and just use the metrics you are interested in.
extract -G -r /var/opt/perf/reptfile -xp m 5 -f /tmp/mwa_output
I don't know of a way to get mwa to average the figures. However you could easily write a script that parses the data and averages all the relevant metrics.
What I have done in the past is to extract on a weekly basis all the metrics I'm interested in, then run a script using the data in the output file and generate a weekly report displaying average, highest figures etc for the week.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 12:52 AM
05-26-2003 12:52 AM
Re: Extract command parameter
Can give a sample of your script
Joseph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 03:44 PM
05-26-2003 03:44 PM
Re: Extract command parameter
I have attached a copy of my script. However it is fairly customised for the last company I worked for & relies on you already having generated mwa data file using the extract command. Hopefully it will give you some ideas on using awk to get average, highest figures etc. If you need any explanations, let me know.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2003 03:08 AM
05-27-2003 03:08 AM
Re: Extract command parameter
Thanks for the script, can you also post the collectperf.sh script.
Many tnxs
Joseph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2003 04:40 PM
05-27-2003 04:40 PM
SolutionI've attached the mwa_extract.sh script which is the script used to extract all the data from the measureware log files. It is the data that this script generates that is used by the perfsummary.sh script to generate performance reports. The collectperf.sh script is just a wrapper script specific to my company that calls mwa_extract.sh.
Hope this is of some help to you. If you need further explanations let me know.
Cheers
Con