errpt with param for yesterday and today


 
Thread Tools Search this Thread
Operating Systems AIX errpt with param for yesterday and today
# 1  
Old 06-05-2008
errpt with param for yesterday and today

Hi All,

I would like to create a script with "errpt" that will read the date yesterday and today and execute this: "errpt -a -s yesterdaydatetime -e todaydatetime".

For example:

>errpt -a -s 0604000008 -s 0605235908

Note: Time is fixed with start "0000" and end "2359". So read the month, day and year on the system.

Is this possible to create a script without passing a parameter.

Thanks in advance.

Best Regards to all of you,
itik
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX cluster disk usage report generation for yesterday & today and email

HI Team, I am trying to create a shell script to generate a yesterday and today report to compare and email in daily basis. can you please help me on the same. #!/bin/bash #Author: ******************* #Description: This script will return the following set of system information: ... (2 Replies)
Discussion started by: Mi4304
2 Replies

2. UNIX for Beginners Questions & Answers

When I run the code yesterday I am getting output,when I run same code today I am getting error?

If run the below code today its creating all directory and getting output files,I f run same code tomorrow I am getting error. can any one give suggestion to sortout this error. OSError: no such file or directory : '062518'My code looks like this import paramiko import sys import os ... (8 Replies)
Discussion started by: haribabu2229
8 Replies

3. Shell Programming and Scripting

[Solved] Replace yesterday date with today's date except from the first line

Hello, I have a file like this: 2012112920121130 12345620121130msABowwiqiq 34477420121129amABamauee e7748420121130ehABeheheei in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
Discussion started by: Lilu_CK
3 Replies

4. Shell Programming and Scripting

meaning of today=${1:-${today}}

what does today=${1:-${today}} mean??? I saw a script which has these two lines: today=`date '+%y%m%d'` today=${1:-${today}} but both gives the same value for $today user:/export/home/user>today=`date '+%y%m%d'` user:/export/home/user>echo $today 120326... (2 Replies)
Discussion started by: Vidhyaprakash
2 Replies

5. Shell Programming and Scripting

check for param values

I need to check for 4ht parameter values, if they are not in (17,18) in other words if they r not equal to 17 or 18 then exit. can u help pls (4 Replies)
Discussion started by: raopatwari
4 Replies

6. Shell Programming and Scripting

param with awk

Hi All, I have this script: #!/bin/ksh lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "mklvcopy ",$1," 2 $2 $3"}' I want to pass three param with "vg2 hdisk1 hdisk2" but the output is "mklvcopy lv1 2 $2 $3". I want to pass the hdisk1 and hdisk2 and not the $2 and $3. Please help! ... (3 Replies)
Discussion started by: itik
3 Replies

7. UNIX for Advanced & Expert Users

param with awk

Hi All, I have this script: #!/bin/ksh lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "mklvcopy ",$1," 2 $2 $3"}' I want to pass three param with "vg2 hdisk1 hdisk2" but the output is "mklvcopy lv1 2 $2 $3". I want to pass the hdisk1 and hdisk2 and not the $2 and $3. Please help! ... (1 Reply)
Discussion started by: itik
1 Replies

8. Shell Programming and Scripting

need help on korn passing param

Hi, I need to script this: lsvg -l vg10|grep -v vg10:|grep -v LV|awk '{print "chlv -u 2 ",$1}' > script_vg10.sh So that I could just pass the parameter of the volume group. When I did this on a script: #!/bin/ksh lsvg -l %1|grep -v %1:|grep -v LV|awk '{print "chlv -u 2",$1}' >... (4 Replies)
Discussion started by: itik
4 Replies

9. HP-UX

kernel param listings

Which shows the current kernel settings accurately? kmtune or sysdef. I ask because although some params show the same setting with both, some do not. Example >kmtune | grep nfile nfile 75008 - (15*NPROC+2048) >sysdef | grep nfile nfile 75018 ... (6 Replies)
Discussion started by: theninja
6 Replies

10. UNIX for Dummies Questions & Answers

errpt

Hello World, When I issue the errpt command 1581762B 0826133303 T H hdisk1 DISK OPERATION ERROR C14C511C 0826133303 T H scsi0 ADAPTER ERROR I found these two unusual errors, wat exactly do these mean ? Im on an aix box. Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies
Login or Register to Ask a Question
sqlgrey-logstats(1)					User Contributed Perl Documentation				       sqlgrey-logstats(1)

NAME
sqlgrey-logstats - SQLgrey log parser SYNOPSIS
sqlgrey-logstats [options...] < syslogfile -h, --help display this help and exit --man display man page --version output version information and exit --debug output detailed log parsing steps -y, --yesterday compute stats for yesterday -t, --today compute stats for today --lasthour compute stats for last hour -d, --lastday compute stats for last 24 hours -w, --lastweek compute stats for last 7 days --programname program name looked into log file --top-from how many from AWL entries to print (default: all) --top-domain how many domain AWL entries to print (default: all) --top-spam how many SPAM sources to print (default: all) --top-throttled how many throttled sources to print (default: all) --print-delayed print delayed sources (default: don't) DESCRIPTION
sqlgrey-logstats ... SEE ALSO
See <http://www.greylisting.org/> for a description of what greylisting is and <http://www.postfix.org/SMTPD_POLICY_README.html> for a description of how Postfix policy servers work. COPYRIGHT
Copyright (c) 2004 by Lionel Bouton. LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA AUTHOR
Lionel Bouton <lionel-dev@bouton.name> perl v5.14.2 2012-02-16 sqlgrey-logstats(1)