The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Increment userid in file dejavu88 Shell Programming and Scripting 2 05-26-2008 06:11 PM
userid sundaresh UNIX for Advanced & Expert Users 1 08-17-2007 08:03 PM
How to kill a process and its childs given pid and userid nani_g Shell Programming and Scripting 0 06-05-2006 08:57 AM
locking userid to 1 dir? amheck SUN Solaris 2 05-05-2006 04:46 PM
validating userid giannicello UNIX for Dummies Questions & Answers 2 05-07-2003 05:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-24-2005
gundu gundu is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 42
date and userid

Hi I am trying to write a script to check the log files for the trancactions based on usr input date and user input user id.

I will take the user input userid and user input date and check there are any creation deletion happened, if so mail it other wise say no transactions;

I got user input date and the log files, i am at user input date, not sure how to take both date and userid to check the log file

Any help is appreciated

Thanks,
Gundu
  #2 (permalink)  
Old 03-25-2005
muthukumar muthukumar is offline
Registered User
  
 

Join Date: Feb 2005
Location: Coimbatore, Tamilnadu, India
Posts: 119
Quote:
Originally Posted by gundu
Hi I am trying to write a script to check the log files for the trancactions based on usr input date and user input user id.

I will take the user input userid and user input date and check there are any creation deletion happened, if so mail it other wise say no transactions;

I got user input date and the log files, i am at user input date, not sure how to take both date and userid to check the log file

Any help is appreciated

Thanks,
Gundu
Can you give sample log file lines ?? And give input how to get the information from that log file?

HTH.
  #3 (permalink)  
Old 03-25-2005
gundu gundu is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 42
Quote:
Originally Posted by muthukumar
Can you give sample log file lines ?? And give input how to get the information from that log file?

HTH.
the logfiles are located in /export/home/$ENV/audit/audit4567

audit4567 can be opened with vi, cat or more has lines like:

2005-03-23 16:00:55 SYNIFSSS006003I1 49219 Provisioning Transaction Created by dc6728(USER ID)
2005-03-23 16:00:56 SYNIFSSS006070I1 49219 Provisioning Transaction Description: Provisioning by cd6728: Create, classname=SI
VXVPNAccessPath, name=Site
2005-03-23 16:00:56 SYNIFSSS006006I1 49219 Provisioning Transaction Opened by cd6728
2005-03-23 16:00:56 SYNIFSSS126003I1 49219 Provisioning Transaction 49219 processing with pid 3538 in /netprov/env7/server/lo
g/output/2005-03-22.13:02:42/SYCCSServer_3538.0
2005-03-23 16:01:00 SYNIFSSS006011I1 49219 VPN Access Path: VPN Access Path Created by cd6728
2005-03-23 16:01:01 SYNIFSSS006011I1 49219 Endpoint: Endpoint Created by cd6728
2005-03-23 16:01:01 SYNIFSSS006011I1 49219 IP over ATM Interface: / SBCIS / GSR10 / ATM7/3.10 Created by cd6728
2005-03-23 16:01:02 SYNIFSSS006011I1 49219 ATM: ATM Created by cd6728

I need to take userinput date to match this date and userid to match the userid here and check for the key words like create,modify,update or delete and send an e-mail

Thanks,
Gundu
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0