Sponsored Content
Operating Systems AIX Question about Error Report script Post 302894746 by zaxxon on Thursday 27th of March 2014 05:05:32 AM
Old 03-27-2014
From man errpt

Code:
       -s StartDate
            Specifies all records posted on and after the StartDate variable, where the StartDate variable has the format mmddhhmmyy (month, day, hour, minute, and year).

The rest of the script iterates through the list of servers, opens rsh connections to run the commands, write files and collect the files.
You could have a look at the man pages next time yourself. If you don't have access to them, you can find any command online easily yourself in the IBM Info Center.

The command is AIX specific, while the rest of the script is not. Moving it to the AIX forum though.

Last edited by zaxxon; 03-27-2014 at 06:19 AM..
This User Gave Thanks to zaxxon For This Post:
 

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
BB-SNAPSHOT.CGI(1)					      General Commands Manual						BB-SNAPSHOT.CGI(1)

NAME
bb-snapshot.cgi - CGI program to rebuild the Xymon webpages for a specific point in time. SYNOPSIS
bb-snapshot.cgi DESCRIPTION
bb-snapshot.cgi is invoked as a CGI script via the bb-snapshot.sh CGI wrapper. It rebuilds the Xymon web pages to the look they had at a particular point in time, based upon the historical information logged about events. bb-snapshot.cgi is passed a QUERY_STRING environment variable with the following parameters: mon (Start month of the snapshot) day (Start day-of-month of the snapshot) yr (Start year of the snapshot) hour (Start hour of the snapshot) min (Start minute of the snapshot) sec (Start second of the snapshot) The "month" parameters must be specified as the three-letter english month name abbreviation: Jan, Feb, Mar ... "day" must be in the range 1..31; "yr" must be specified including century (e.g. "2003"). "hour" must be specified using a 24-hour clock. All of the processing involved in generating the report is done by invoking bbgen(1) with the proper "--snapshot" option. OPTIONS
--env=FILENAME Load environment from FILENAME before executing the CGI. bbgen-options All options except "--env" are passed on to the bbgen(1) program building the snapshot files. ENVIRONMENT VARIABLES
BBGENSNAPOPTS bbgen options passed by default to the bb-snapshot.cgi script. This happens in the bb-snapshot.sh CGI wrapper script. BBHOME Home directory of the Xymon server files BBSNAP Directory where generated snapshots are stored. This directory must be writable by the userid executing the CGI script, typically "www", "apache" or "nobody". Default: $BBHOME/www/snap/ BBSNAPURL The URL prefix to use when accessing the reports via a browser. Default: $BBWEB/snap SEE ALSO
bbgen(1), bb-hosts(5), hobbitserver.cfg(5) Xymon Version 4.2.3: 4 Feb 2009 BB-SNAPSHOT.CGI(1)
All times are GMT -4. The time now is 07:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy