The UNIX and Linux Forums  


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
Getting remote data through shell script armohans Shell Programming and Scripting 1 04-15-2008 09:07 PM
Shell script to format a .CSV data Uday1982 Shell Programming and Scripting 8 02-04-2008 05:28 AM
extract data from xml- shell script using awk nishana Shell Programming and Scripting 5 07-16-2007 10:20 AM
Pipe data to shell script tomjones07 Shell Programming and Scripting 3 03-14-2007 07:50 PM
How to cut, concatenate data in Shell Script vasan_srini Shell Programming and Scripting 2 12-07-2005 04:41 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-30-2006
rvrao77 rvrao77 is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 6
shell script for log files data!

Hi Team,

please write a shell script.

It is for veritas netbackup logs. The result we currently have is a single file for each day's backups. we will keep the files in the directory and the file names are like below mentioned.

example :/opt/openv/netbackup/reports/Daily/NB_success*. The No of files are above 2000 fiels are there.

The files contains like below mentioned :


SAP_DV4_Archive 11/18/06 18:17(2)
Billing_Grv 11/07/06 01:07
SAP_E4D_Archive 11/18/06 18:38
SAP_E4D_Database none
Granv_Clients 11/07/06 03:37(8)
SAP_E6T_Database none
SAP_FID_Archive 11/18/06 18:17(2)
SAP_FID_Database none
SAP_FIP_Archive 11/18/06 18:08(2)
SAP_FIP_Database none
SAP_FIS_Archive 11/18/06 18:20(2)
SAP_FIS_Database x
SAP_O1D_Archive i
SAP_O1D_Database i
SAP_P6D_Archive 11/18/06 18:40

The first column will contain the archive name and next column will have the date and time if the bacup success otherwise it will have 'x' or 'i','none'.

please write a script and the reuslt should be as given below. if you writen a shell script with name status.sh. the script should take flags like as given below.

1. SAP_DV4_Archive backups for the last month or year successful backups

example : status.sh -m=05 -y=06 -p=SAP_E4D_Archive

script name status.sh

-m month
-y year
-p backup policy name

You could include a "summary" option that will count up the number of input files as a baseline and report that SAP_E4D_Archive ran successfully on 26 of 31 days.

Thanks & Regards

Venkat
 

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 07:02 PM.


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