08-11-2003
prepare log for access
I need help with one of my log files I got following format:
This is only a smal part of the file !
.........
--------------------------------------
2003-08-05 12:23:13.939781
logNo : 1380008
Server started - Activate; 10.48.4.51
--------------------------------------
2003-08-05 12:23:15.732659
logNo : 1380008
Server started - drives; 10.48.4.51
--------------------------------------
2003-08-05 12:23:17.845895
logNo : 1380008
Server started - oltprogramm; 10.48.4.51
--------------------------------------
.............
I need this in following format:
date;time;event
....
2003-08-05;12:23:17;Server started - oltprogramm
I search the forum for comparable threads and tried it as csh script but the csh have problems with variables biger then 1000 entries.
Is there a posibility to use perl ?
I have no experience in perl!
Thanks in advance.
joerg
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I need some advice on dual booting a dell box so that I can have WinXP and Solaris 10 OS there. The question is, what is the best way of preparing the hdd for prior to installation?
I have used created two partition, one for xp and the and the other unallocated partition for Solaris.... (3 Replies)
Discussion started by: S0laris_B0y
3 Replies
2. Shell Programming and Scripting
File 1 data:
TestA
TestB
TestC
File 2 data:
TestA
TestD
TestE
My Output File (pick all from both and create a file without duplicate data)
----------------------------------------------------------------------
TestA
TestB
TestC (3 Replies)
Discussion started by: manmohanpv
3 Replies
3. UNIX for Dummies Questions & Answers
Hi
I am working on perl for last 3 yrs and as part of knowledge sharing i have been told to conduct sessions with other teams.Only 1 session with basic details. My problem is i am not sure what all should i cover in this tut ? because i learned perl on my own. so i am not sure where to start... (4 Replies)
Discussion started by: zedex
4 Replies
4. Shell Programming and Scripting
Hi,
Couldnt find the right string" to search for a similar question..so dont know if this has been answered yet...problem is that I want to prepare a command with the requisite parameters passed as a string before executing it...eg: the ls command ..
I can pass "-l", "-t" as parameters and... (12 Replies)
Discussion started by: harman_6
12 Replies
5. UNIX for Dummies Questions & Answers
I have installed apache2 on Solaris machine with the binary. So i dont want to install the same binary across all the systems but only want to copy the lib files and the files which have been updated in this installation process.
So in order to get those lib files and then prepare a tar package... (5 Replies)
Discussion started by: prash358
5 Replies
6. Red Hat
Hello,
I m working on virtualization and saved the templates in virtual server. On creating the new Virtual machine or linux system, is there a way where during booting, it should prompt for new IP address, gateway, DNS and hostname?
Or is there any configuration in linux where we can modify... (5 Replies)
Discussion started by: alnhk
5 Replies
7. Shell Programming and Scripting
I have a requirement to prepare a report.
We validate some incoming data fields and create validation_error reports which will contain records which do not pass validation. Once files are processed they will all be dropped under one folder.
EMPLOYEE_20140915.txt... (8 Replies)
Discussion started by: member2014
8 Replies
8. Shell Programming and Scripting
---file1 ( tables
A
B
C
D
E
F
...
...
Z
---file2
Joe
Bob
Mary
Sally
Fred
Elmer
David (1 Reply)
Discussion started by: rocking77
1 Replies
LEARN ABOUT CENTOS
prdb.db0
PRDB.DB0(5) AFS File Reference PRDB.DB0(5)
NAME
prdb.DB0, prdb.DBSYS1 - Contain the Protection Database and associated log
DESCRIPTION
The prdb.DB0 file contains the Protection Database, which maps AFS user, machine, and group names to their respective IDs (AFS UIDs and
GIDs) and tracks group memberships. The Protection Server (ptserver process) uses the information in the database to help the File Server
grant data access to authorized users.
The prdb.DBSYS1 file is a log file in which the Protection Server logs each database operation before performing it. When an operation is
interrupted, the Protection Server replays the log to complete the operation.
Both files are in binary format and reside in the /var/lib/openafs/db directory on each of the cell's database server machines. When the
Protection Server starts or restarts on a given machine, it establishes a connection with its peers and verifies that its copy of the
database matches the copy on the other database server machines. If not, the Protection Servers call on AFS's distributed database
technology, Ubik, to distribute to all of the machines the copy of the database with the highest version number.
Always use the commands in the pts suite to administer the Protection Database. It is advisable to create an archive copy of the database
on a regular basis, using a tool such as the UNIX tar command.
SEE ALSO
prdb_check(8), pts(1), ptserver(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 PRDB.DB0(5)