- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- VMSTAT OUTPUT WITH DATE & TIME
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
тАО05-19-2009 01:21 AM
тАО05-19-2009 01:21 AM
I want to take vmstat output with date & time, every 30 min time interval for 24 hous if its possible can any one suggest.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 01:50 AM
тАО05-19-2009 01:50 AM
Re: VMSTAT OUTPUT WITH DATE & TIME
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 check the manpage
man vmstat
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 01:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 01:57 AM
тАО05-19-2009 01:57 AM
Re: VMSTAT OUTPUT WITH DATE & TIME
Make a script and put this into cron job and set to run every 30 min of intervel.
suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 02:26 AM
тАО05-19-2009 02:26 AM
Re: VMSTAT OUTPUT WITH DATE & TIME
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 02:27 AM
тАО05-19-2009 02:27 AM
Re: VMSTAT OUTPUT WITH DATE & TIME
If the man page for vmstat can not do this for you then try a script like this:
while true
do
vmstat >> ouptut
date >> output
done
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com