1752638 Members
5607 Online
108788 Solutions
New Discussion юеВ

vmstat log files

 
Harishs
Occasional Advisor

vmstat log files

Hi ,
Could you please let us know the details of log files related to vmstat.

See Attached ouput of # vmstat 2 4

We want to visualise the virtual memory utlisation for last two days ,is there any way around to track it .

if we have to log the output of vmstat command on continues basis for 2 days ,how it can be logged ?

Any help is highly appreciated .

Thanks in anticipation.

Regards

harish
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: vmstat log files

Set up a cron job to run vmstat at your desired interval and redirect the output to a file with a datestamp suffix (if you want individual ones), or append it to one file.


Pete

Pete
Sajjad Sahir
Honored Contributor

Re: vmstat log files

u can make entry in crontab file and
redirect to another file
Sajjad Sahir
Honored Contributor

Re: vmstat log files

harish u got point if u want to schedule a process u can use cron.
Harishs
Occasional Advisor

Re: vmstat log files

Thanks Pete, Sajjad ,
It can be run as a cron job to capture info now & later, how can i track it for last few days.

i.e as in say var/asm/syslog/syslog.log we can get some info ,is their any log files where we can track iostat ,vmstat info for last few days.

Thanks in anticipation.

Regards

harish
Patrick Wallek
Honored Contributor

Re: vmstat log files

vmstat and iostat do NOT run on a regular basis unless you schedule a script for them to do so.

There is no history of any of that data.

If you have Measureware, now called OVPA (OpenView Performance Agent), running then there is the possibility to get data from the OVPA log files via the extract command.

If you do not have Measureware/OVPA running, then you are pretty much out of luck.
Harishs
Occasional Advisor

Re: vmstat log files

Thanks !!!