Operating System - HP-UX
1771159 Members
2700 Online
109004 Solutions
New Discussion

script for memory and cpu utilization

 
Aamir14
Regular Advisor

script for memory and cpu utilization

Dear All,

 

Please give me some commands or script for Average memory & Swap Utilization for the day and

Average CPU Utilization for the day

 

have you any suggestions  Please provide me?

 

Thanks for future

 

regards 

aamir

 

1 REPLY 1
Emil Velez_2
Trusted Contributor

Re: script for memory and cpu utilization

extract -xp -G -b today-1 -e today -f /tmp/global.txt

 

 

This will give you hourly metrics for many counters on the system that the performance agent is collecting.

 

you could use sar in cron to collect data and then use sar the next day.

 

look for the cron entries in the                          man sa1

 

That will allow the system to collect data using sar.. Then you can just use the sar commands to view the collected hourly data.

Emil Velez
Instructor Storage, Servers, HP-UX and Partner Courses
Hewlett Packard Enterprise Education Services
Ask me about training on StoreServ (3PAR) StoreOnce, StoreEasy, StoreAll, StoreVirtual, HP-UX, ServiceGuard and HPE Partner Ready Certification Training

internet: Linkedin: http://www.linkedin.com/in/emilvelez

HPE Master ASE Server Solutions Architect V3
HPE Master ASE Storage Solutions Architect V2
HP UNIX Certified (ASE HPUX 11iv3 Administration V1)
Certified HPE Instructor
HPE Product Certified - OneView [2016]
HP Sales Certified -Servers, Converged Systems and Services [2015]
HPE Product Certified - Converged Solutions [2017]