10-05-2012
I don't know what timezone you're in. Is this date/time correct (for four hours ago)? October 4, 22:31
If it is then your code seems to be working correctly for creating the timestamp file.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies
2. UNIX for Advanced & Expert Users
can someone tell me the meaning of this commnad,
If you want to see a grand total of CPU time for a program when it finishes running, you can use the time command. At the Unix prompt, enter:
time java myprog
Replace myprog with the name of the program you are running. The following is an... (2 Replies)
Discussion started by: ldpathak
2 Replies
3. Shell Programming and Scripting
Hi all,
I want to grep a file name with time stamp as 30 minutes how can i??.
Ex
I will getting outputs in a file every minutes
I want to grep it by a time intervals of 30 and show it . Any help will be great !
Thanks,
Arun. (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
4. Shell Programming and Scripting
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies
5. Shell Programming and Scripting
hi everyone
i am facing a strange problem here
suppose content of my file is
a=1,2,3
b=2,3,4
c=4,5,6
time=
now the problem is i want to add value in front of time variable
and the value should be i format only "HHMMSS"
so it should be like this
a=1,2,3
b=2,3,4
c=4,5,6... (3 Replies)
Discussion started by: aishsimplesweet
3 Replies
6. Shell Programming and Scripting
Here is two time I have:
Jul 12 16:02:01
Jul 13 01:02:01
and how can I do a simple match to get difference between two time which is 09:00:00
Thanks in advance. (3 Replies)
Discussion started by: ford99
3 Replies
7. Solaris
On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help
here is what i get when i check for system date
infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date
Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies
8. Shell Programming and Scripting
Hi,
I wish to change time stamp of a directory with all its subdirectories and files on server.
I am able to find following two ways but want to know which will be the better one. I have not tried anyone of them because I am not sure if it can effect my data:
find * -type d -exec touch... (5 Replies)
Discussion started by: bioinfo
5 Replies
9. Shell Programming and Scripting
I want to find a file using find or any utility having the current date time stamp.....
I have an alternate way to do that.... but that is too way out of logic... so looking out something with find itself (5 Replies)
Discussion started by: nikhil jain
5 Replies
10. Shell Programming and Scripting
I want to display the command output in a particular format. can you please suggest how can i do this
Output of the command
Name= XYZ
Company= Alpha
Department= Accounts
Country= Singapore
Name=MNC
Company= Beta
Department= Engineering
country=Malta
Name=ABC
Company=Gamma... (2 Replies)
Discussion started by: swets
2 Replies
LEARN ABOUT CENTOS
pmlogcheck
PMLOGCHECK(1) General Commands Manual PMLOGCHECK(1)
NAME
pmlogcheck - checks for invalid data in a PCP archive
SYNOPSIS
pmlogcheck [-lz] [-n pmnsfile] [-S start] [-T finish] [-Z timezone] archive
DESCRIPTION
pmlogcheck prints information about the nature of any invalid data which it detects in a PCP archive. Of particular interest are wrapped
values for metrics which are expected to have monotonically increasing values. The archive has the base name archive and must have been
previously created using pmlogger(1).
Normally pmlogcheck operates on the default Performance Metrics Namespace (pmns(5)), however if the -n option is specified an alternative
namespace is loaded from the file pmnsfile.
The command line options -S and -T can be used to specify a time window over which metrics should be summarized. These options are common
to many Performance Co-Pilot tools and are fully described in PCPIntro(1).
The -l option prints the archive label, showing the log format version, the time and date for the start and (current) end of the archive,
and the host from which the performance metrics values were collected.
By default, pmlogcheck reports the time of day according to the local timezone on the system where pmlogcheck is run. The -Z option
changes the timezone to timezone in the format of the environment variable TZ as described in environ(5). The -z option changes the time-
zone to the local timezone at the host that is the source of the performance metrics, as specified in the label record of the archive log.
OUTPUT FORMAT
For each metric having ``counter'' semantics (i.e. the metric is expected to increase monotonically) which has been detected as having
wrapped at some point in the archive, pmlogcheck produces output describing the metric name (with instance identifiers where appropriate),
the internal storage type for the metric, the value of the metric before the counter wrap (with its associated timestamp), and the value of
the metric after the wrap (also with a timestamp).
pmlogcheck produces two different timestamp formats, depending on the interval over which it is run. For an interval greater than 24
hours, the date is displayed in addition to the time at which the counter wrap occurred. If the extent of the data being checked is less
than 24 hours, a more precise format is used (time is displayed with millisecond precision, but without the date).
FILES
$PCP_VAR_DIR/pmns/*
default PMNS specification files
$PCP_LOG_DIR/pmlogger/hostname
default directory for PCP archives containing performance data collected from the host hostname.
PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the
file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura-
tion file, as described in pcp.conf(5).
SEE ALSO
PCPIntro(1), pmdumplog(1), pmlogextract(1), pmlogger(1), pmlogmerge(1), pmlogsummary(1), pmval(1), pcp.conf(5), pcp.env(5) and pmns(5).
DIAGNOSTICS
All are generated on standard error and are intended to be self- explanatory.
Performance Co-Pilot PCP PMLOGCHECK(1)