Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / May 2007

Tip: Looking for answers? Try searching our database.

Include date time with VMSTAT

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Justin - 09 May 2007 17:41 GMT
When running VMSTAT 3 5, in provides a snapshot every 3 seconds for 5
intervals.

Is there a way to add date / time as one of the parameters (AIX
environment)?

Thanks,

jb
Nonejm - 14 May 2007 14:58 GMT
for time

vmstat -t

-t
    Prints the time-stamp next to each line of output of vmstat. The
    time-stamp is displayed in the HH:MM:SS format. Note: Time stamp
    will not be printed if -f, -s, or -i flags are specified.

My example for daily 8 hour  with date in filename :
vmstat -t 1 28800 >> /home/db2inst1/nncron/vmstats/nnVmstat8h_`date +%Y
%m%d"-"%H%M`.log

or

man vmstat

Bye

> When running VMSTAT 3 5, in provides a snapshot every 3 seconds for 5
> intervals.
[quoted text clipped - 5 lines]
>
> jb
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.