Sponsored Content
Operating Systems AIX Question about Error Report script Post 302894741 by scriptor on Thursday 27th of March 2014 04:46:21 AM
Old 03-27-2014
Question about Error Report script

Hi

i need to understand what "errpt -s 0328000014" will do in script.
will this only capture data for 28th march at 00:00 hrs. if issue happen it is ok else nothing
or for 28th march and onwords it will run and and check every day at 00:00 hrs for issue to occur


below is the snippet taken from script

Code:
 
#!/bin/ksh
while true
do
for i in ds51tp1 ds55tp1 ds59tp1 ds63tp1
do
rsh $i errpt -s 0917000013 > $i.out
grep 'SOFTWARE PROGRAM ABNORMALLY TERMINATED' $i.out
if [ $? = 0 ];then
rsh $i "cp -p /node/alarms.out.?? /work/"
rsh $i "cp -p err/node/*core /work/"
rsh $i "gzip /work/alarms.out.?? /work/*core*"
echo capture alarms files on $i
exit
fi
done | tee -a collectErrptLogs.out.$$
sleep 180
done

thx in advance and sorry if my question looks vague.

Scriptor

Last edited by scriptor; 03-27-2014 at 05:49 AM.. Reason: missed few lins
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Newb scripting question, I get the error script not found

This is probably a really simple problem, but goes easy on me I'm still a newb. The problem I have is that a script (we'll call it script.script) I edited won't run for some reason, I get the error "ksh: script.script: not found" The location of my script is as follows: /home/users/arkitech ... (3 Replies)
Discussion started by: Arkitech
3 Replies

2. UNIX for Dummies Questions & Answers

basic question about error report in AIX

Hello everybody, iam new to unix. here is a question i had. when i run errpt -a , sample out put is as follows LABEL: FCP_ARRAY_ERR4 IDENTIFIER: D5385D18 Date/Time: Mon Sep 25 11:15:59 Sequence Number: 182869 Machine Id: 000166784C00 Node Id: ... (0 Replies)
Discussion started by: karthikosu
0 Replies

3. Shell Programming and Scripting

Question on error from script

I used set -n FS.sh to check for syntax errors. No problems. I run the script with set -x and set -v with the following error: find: bad option ; find: path-list predicate-list Reviewing the verbose output everything is read correctly. The files transfer and the script completes. I can't seem... (4 Replies)
Discussion started by: BigSky
4 Replies

4. Shell Programming and Scripting

compare strings to report error

Hi, I am a newbie in unix. I have to solve a problem. I have a file ( properties.file) with different (key=value) values, as below agent.x=xyz agent.y=xyz agent.z=xyz I have some other files in the system in different locations with different (key=value) values. ... (5 Replies)
Discussion started by: raghu.amilineni
5 Replies

5. Programming

Newbie Question.. -> error: syntax error before ';' token

Hello, the following is generating a error at the line "tmprintf(&tmBundle, _TMC("{0}"),Prompt);"... a bit lost as I am diving into this debug... Thank you in advance... int H_YesNo(TMCHAR *Prompt, int DefVal) { TMCHAR YesNo = '\0'; tmprintf(&tmBundle, _TMC("{0}"),Prompt); while... (3 Replies)
Discussion started by: reelflytime
3 Replies

6. AIX

Re-Generate error report

Hi Is there a way to re-generate AIX error report after clearing it? I mean if I did errclear 0, Does the error log get erased? Is there a command that will get entries back in errpt? I hope that made sense. (5 Replies)
Discussion started by: Dardeer
5 Replies

7. Shell Programming and Scripting

Hiding error report

Hi Guys, Error report is still displaying on the console after executing the below command. Is there any error in the syntax? check_event=$(cat /sbt/driver/RegressionTests/ResultsArchive/${environment}/$backupPath/TestEvents.txt | g rep "Test Cases FAIL" | cut -c 18-) 2> log2 (4 Replies)
Discussion started by: ajincoep
4 Replies

8. UNIX for Dummies Questions & Answers

Capture crash out error report...

Google is not helpful here. It is probably trivial but I can't get my head around it. How do I capture an error which crashes out due to say a syntax error to a file? (Note that I manually reset error.log to zero length.) Consider this junk code:- #!/bin/sh # Launch as ./trap.sh... (2 Replies)
Discussion started by: wisecracker
2 Replies

9. AIX

How to put customized error report on errpt ?

Hi Gurus, Here is a requirement from my side, i have a script root password expiary, means this script will examine if root password has been expired or not, if it's expired then it will write into a file and mail to certain mail id till here everything is fine. But i want it to write to errpt,... (3 Replies)
Discussion started by: linux.amrit
3 Replies

10. Shell Programming and Scripting

Error Report Script

Hello, I am trying to write a script that I would run daily that would check the nightly error report for the last 24 hours. I am running Red Hat. I would like the script to just look at the last 24 hours. Please advise and thanks in advance. (1 Reply)
Discussion started by: Thunderchild
1 Replies
script(1)							   User Commands							 script(1)

NAME
script - make record of a terminal session SYNOPSIS
script [-a] [filename] DESCRIPTION
The script utility makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the record is saved in the file typescript. See WARNINGS. The script command forks and creates a sub-shell, according to the value of $SHELL, and records the text from this session. The script ends when the forked shell exits or when Control-d is typed. OPTIONS
The following option is supported: -a Appends the session record to filename, rather than overwriting it. NOTES
script places everything that appears on the screen in filename, including prompts. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) WARNINGS
script can pose a security risk when used in directories that are writable by other users (for example, /tmp), especially when run by a privileged user, that is, root. Be sure that typescript is not a link before running script. SunOS 5.10 30 Jan 2004 script(1)
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy