I am able to create the desired csv and the $outfile ,but the data in the csv file is also getting written to the outfile. I want only the log messages in the outfile.How can this be achieved?
Hi All,
I was able to solve my previous problem (link directory)... but now i have this following problem.
I have mounted a disk from other machine using "mount -F nfs" command. When i run a batch which generates some files in that drive.... after a certain number of files i get... (1 Reply)
I'm using growisofs to write DVD, e.g.
$ growisofs -Z /dev/dvd -V "Personal Data, `date +"%b, %d %Y"`" -R -J /mnt/d/*
How can I test whether data was written correctly? md5sum or so? (0 Replies)
Hi all,
I have a large log file that gets created daily.
I need to be able to pull text out of the log when I hit a pattern including the 7 lines above it and the 3 lines below and output it to a new text file.
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Pattern
Line 9
Line 10... (11 Replies)
I have the following code which works on AIX 4.3 but fails at times on AIX 5.3
with:
cat: 0652-054 cannot write to output. There is no process to read data written to a pipe.
validator="${validator_exe} ${validator_parms}"
cmd_line="${CAT} ${data_file} | ${validator}... (6 Replies)
I need to extract data from logs for a mentioned date range..Its quite urgent can anyone help me out with it..its to be written in unix..just thought its better to specify.. (4 Replies)
Hi Everyone,
The machine I'm working on is an AIX 5.3 LPAR running on a P650. oslevel -r shows 5300-08. I'm trying to take a backup to a SCSI tape drive, which has been working up until this point. I know of nothing that has changed recently to cause this problem. But when I try to take a... (0 Replies)
We use SAP application cluster on AIX. Communication between 2 of its instances is failing randomly with the following error:
java.net.SocketException: There is no process to read data written to a pipe.
The above error causes a cluster restart if an important communication fails.
Can... (0 Replies)
Hi,
Yesterday I installed and configured logrotate on my Debian machine. I was expecting this to run at 06:25 in the morning and it actually did. All my old logs were compressed and zipped but the new logs were all with size equal to 0 bytes. Processes, while still running ok, they were not... (2 Replies)
Hi there,
I have a script running on some DNS servers to calculate TPS, Success Rate and other Performance Counters.
My challenge is to get a Linux Data Visualization Software to collect these performance logs and produce a visualization that will be appealing to Business peeps. A sample of... (2 Replies)
Hello Experts,
I need to write a shell script to check if a file is open and something is being written to it. I want to know how OS handles it. I checked with lsof command but it is not working. For a test I did this.
while true; do echo `date` >>abc.txt; done
then I checked
lsof |... (5 Replies)
Discussion started by: shekhar_4_u
5 Replies
LEARN ABOUT CENTOS
mrtg2pcp
MRTG2PCP(1) Performance Co-Pilot MRTG2PCP(1)NAME
mrtg2pcp - Import mrtg data and create a PCP archive
SYNOPSIS
mrtg2pcp hostname devname timezone infile outfile
DESCRIPTION
mrtg2pcp is intended to read an MRTG log file as created by mrtg(1) and translate this into a Performance Co-Pilot (PCP) archive with the
basename outfile. The hostname, devname, and timezone arguments specify information about the system for which the statistics were
gathered.
The resultant PCP achive may be used with all the PCP client tools to graph subsets of the data using pmchart(1), perform data reduction
and reporting, filter with the PCP inference engine pmie(1), etc.
A series of physical files will be created with the prefix outfile. These are outfile.0 (the performance data), outfile.meta (the metadata
that describes the performance data) and outfile.index (a temporal index to improve efficiency of replay operations for the archive). If
any of these files exists already, then mrtg2pcp will not overwrite them and will exit with an error message of the form
__pmLogNewFile: "blah.0" already exists, not over-written
mrtg2pcp is a Perl script that uses the PCP::LogImport Perl wrapper around the PCP libpcp_import library, and as such could be used as an
example to develop new tools to import other types of performance data and create PCP archives.
SEE ALSO logimport(3), PCP::LogImport(3pm), pmchart(1), pmie(1)pmlogger(1).
3.8.10 Performance Co-Pilot MRTG2PCP(1)