- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Monitoring Physical Memory usuage ?
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
09-12-2005 10:57 AM
09-12-2005 10:57 AM
I want to monitor the physical memory usuage on N4000-55 server , over 24 hours.
Can anyone suggest any good script or command.
Thanks ,
Veri.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 11:03 AM
09-12-2005 11:03 AM
Re: Monitoring Physical Memory usuage ?
util.sh
----------------------------------------------
DA=`date '+%m'`
/opt/perf/bin/glance -adviser_only -iterations 2 -syntax /root/util.fmt |grep "^$DA" |tail -1 >>/tmp/stats/util_stats.dat
----------------------------------------------
the fmt file looks like this
util.fmt
----------------------------------------------
print gbl_statdate, "-", gbl_stattime, gbl_cpu_total_util, gbl_mem_util, gbl_swap_space_util
----------------------------------------------
then I can place the output file into excel and graph it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 11:06 AM
09-12-2005 11:06 AM
Solutionutil.sh
----------------------------------------------
DA=`date '+%m'`
/opt/perf/bin/glance -adviser_only -iterations 2 -syntax /root/util.fmt 2>&1 |grep "^$DA" |tail -1 >>/tmp/stats/util_stats.dat
----------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 11:36 AM
09-12-2005 11:36 AM
Re: Monitoring Physical Memory usuage ?
Any one else want to add something ,
I want to get the physical memory usuage info in a report , to analyse later.
Thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:12 PM
09-12-2005 01:12 PM
Re: Monitoring Physical Memory usuage ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:27 PM
09-12-2005 01:27 PM
Re: Monitoring Physical Memory usuage ?
Here is a similar script that can help ,
1. run the /home/cpumem/cpumem.sh file by cron.
--------------------------------------------------------
###########################################################################
# script for capturing CPU and Memory usuage over a period. 48 hours. #
# File Name: cpumem.sh #
# can be run throguh cron or script with nohup . #
# Files required: 1. cpumem.sh 2. cpumem.syn #
###########################################################################
cd /home/cpumem
echo "----------------------------------------------------------------------------------" >> cpumem.log
echo " Date: Time: (%)CPU Used: (%)Memory Used: " >> cpumem.log
echo "----------------------------------------------------------------------------------" >> cpumem.log
cd /home/cpumem
/opt/perf/bin/glance -adviser_only -j 15 -iterations 11520 -syntax /home/cpumem/cpumem.syn >> cpumem.log
echo " " >> cpumem.log
echo "----------------------------------------------------------------------------------" >> cpu_mem.log
echo "Monitoring of CPU and Memory done at `date` . " >> cpumem.log
echo "UPTIME= `uptime ` " >> cpumem.log
echo "----------------------------------------------------------------------------------" >> cpumem.log
2. File name: cpumem.syn [ not to put the two dotted lines ]
-----------------------------------------------------------------------------------------
print gbl_statdate, " ", gbl_stattime, " ", gbl_cpu_total_util, " ", gbl_mem_util
-----------------------------------------------------------------------------------------
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:30 PM
09-12-2005 01:30 PM
Re: Monitoring Physical Memory usuage ?
I forgot to mention how to get the data out of measureware -
One is PerfView - an added cost GUI. Another is to use the extract command. A
a man on extract will give you a good idea how extensive the data is.
You can customize the measure data collection in /var/opt/perf/parm. /var/opt/perf/datafiles is where MW stores its data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:31 PM
09-12-2005 01:31 PM
Re: Monitoring Physical Memory usuage ?
cd /home/cpumem/
touch cpumem.log
2.Then tun the command cpumem.sh through cron.
------
The generated logfile will be cpumem.log
And will be looks like this:
----------------------------------------------------------------------------------
Date: Time: (%)CPU Used: (%)Memory Used:
----------------------------------------------------------------------------------
09/12/05 21:10:02 28.2 33.7
09/12/05 21:10:18 27.9 33.7
09/12/05 21:10:33 26.6 33.7
09/12/05 21:10:48 26.6 33.7
09/12/05 21:11:03 26.8 33.7
09/12/05 21:11:18 27.6 33.7
09/12/05 21:11:33 27.2 33.7
09/12/05 21:11:48 26.7 33.7
09/12/05 21:12:03 26.6 33.7
09/12/05 21:12:18 27.9 33.7
09/12/05 21:12:33 26.6 33.7
09/12/05 21:12:48 26.6 33.7
09/12/05 21:13:03 26.7 33.7
09/12/05 21:13:18 27.6 33.7
09/12/05 21:13:33 27.0 33.7
..
-----------------------------------------------------------------------------------
Cheers,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:35 PM
09-12-2005 01:35 PM
Re: Monitoring Physical Memory usuage ?
DCE,
How to run the extract command ,
any idea. I can see through # man extract
th.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:40 PM
09-12-2005 01:40 PM
Re: Monitoring Physical Memory usuage ?
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:42 PM
09-12-2005 01:42 PM
Re: Monitoring Physical Memory usuage ?
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:44 PM
09-12-2005 01:44 PM
Re: Monitoring Physical Memory usuage ?
cheers,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2005 01:48 PM
09-12-2005 01:48 PM