One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done
One of the problems I have with vmstat is that it doesn’t have the option to output timestamps (the way iostat does).
As a result, if you have vmstat logs and you don’t know exactly when it was run or at what interval it was collecting data, then it makes the data less meaningful or makes it a hassle to track down the information.
It is easy enough to add the date, using a simple shell script. Create a file, add_date.sh, containing the following:
#!/bin/bash
while read data; do
echo `date '+%m/%d/%Y %H:%M:%S'` $data
done