- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what commands I should use polling data and graph ...
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
тАО11-11-2009 12:41 PM
тАО11-11-2009 12:41 PM
Currently we are running sar command once a day.
Please help me out. Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2009 01:01 PM
тАО11-11-2009 01:01 PM
Re: what commands I should use polling data and graph CPU and MEM util.
from that, you should be able to generate a report to a text file that can go into excel so you can create your graphs...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2009 01:02 PM
тАО11-11-2009 01:02 PM
Re: what commands I should use polling data and graph CPU and MEM util.
Write a script (for cpu and memory data capture) and put in crontab run the script in every 15 minuts and take the output into a file.
take the data into Excel file and make a graph
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2009 03:28 PM
тАО11-11-2009 03:28 PM
Re: what commands I should use polling data and graph CPU and MEM util.
After that, you can draw graph based on that output file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2009 05:06 PM
тАО11-11-2009 05:06 PM
Re: what commands I should use polling data and graph CPU and MEM util.
It used to do the job but I have not used this since 2003 and I don't know if it still works correctly.
I now use Openview Performance Manager which by iself isn't free. However, the HP-UX agents are free if you have the VSOE and up and they can be used to extract high-quality data. You can then make graphs in Excel with some elbow grease.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 12:42 AM
тАО11-12-2009 12:42 AM
Solutionthis script uses glance to collect data every 60 seconds in a fiel for further use.
When you want trasfer file on your PC import in Excell and produce all chart you need.
#!/usr/bin/ksh
GlnCmd=/opt/perf/bin/glance
WrkDir=~gpsactv/CHECK/scripts
GlnSyn=$WrkDir/gln_syntax_file
GlnOpt="-j60 -adviser_only -nosort -iterations 2 -bootup -syntax $GlnSyn"
ResLog=$(date +%Y%m)-res-cop.log
#
cat<
print "-- ",
gbl_statdate,
" ",
gbl_stattime,
" ",
gbl_cpu_total_util|3|0,
" ",
gbl_disk_util_peak|3|0,
" ",
gbl_mem_util|3|0,
" ",
gbl_swap_space_util|3|0
EOD
#
#echo -- MM/DD/YY HH:MM:SS CPU DSK MEM SWA
$GlnCmd $GlnOpt 2>/dev/null |tail +2 >>$WrkDir/../dat/$ResLog
#eof
N.B. Take care to change the directory definitions to use your directories.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 08:47 AM
тАО11-12-2009 08:47 AM
Re: what commands I should use polling data and graph CPU and MEM util.
Thanks so much for sharing.
I tried your script on my server, and have 2 questions.
1. how would you make it run every 60seconds?
It seems the script itself won't get run every 60seconds, it only poll data everytime you execuate it. or do I have to put it in a cron job, then I will have to create a line "1,2,3,...60 * ..."
2. the format of the output file looks like this:
-- 11/12/2009 11:36:26 22 19 97 18
So, I just need to simply trasfer the file to PC, and import it in Excel?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 09:11 AM
тАО11-12-2009 09:11 AM
Re: what commands I should use polling data and graph CPU and MEM util.
a) HP Performance Agent which is found in the GlancePlus Pak is the tool you want. Once called Measureware and perfiew this application creates graphs and spreadsheets.
https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-15-28^9637_4000_100__
b) 60 seconds run
I know of no way other then cron using the wildcard character '*' in every column, min, hour, days, week days, month days. What a performance drain though.
c) file into excel
You will have fun doing this trying to import a text file incolumar format into either excel or word. Its time consuming so I recommend adding a comma delimeter in between every row or column.
Better to use Performance manager. This is what it was built for.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2009 09:55 AM
тАО11-23-2009 09:55 AM
Re: what commands I should use polling data and graph CPU and MEM util.
Based on Art's script, on axis line, I want to show the date only, not show the paticular in what mins, for instance, I don't want to show 12:10. What I should do in Excel?
Also, why we would want to put "-- " at the beginning of each row, based on Art's script?
I spent quite some time on the spreadsheet, but just could not figure it out. Appreciate your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2009 11:46 AM
тАО11-23-2009 11:46 AM
Re: what commands I should use polling data and graph CPU and MEM util.
...you are travelling down a well travelled road of frustation, and the reason I posted the Glance Plus download above. Else, you either have to find another HP-UX application that creates an ascii file in spreadsheet format or spend hours trimming away the bad data the way you are doing it, as you try to make your data readable and presentable to managers.