Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
basename.c | 2020-05-11 | 1.3 kB | |
clnpath.c | 2020-05-11 | 4.7 kB | |
clnpath.h | 2020-05-11 | 658 Bytes | |
cpinfxdir.1 | 2020-05-11 | 1.4 kB | |
cpinfxdir.sh | 2020-05-11 | 3.5 kB | |
crontab | 2020-05-11 | 598 Bytes | |
dirname.c | 2020-05-11 | 2.8 kB | |
fl.c | 2020-05-11 | 16.2 kB | |
getopt.h | 2020-05-11 | 1.4 kB | |
getpwd.c | 2020-05-11 | 5.8 kB | |
informix.1 | 2020-05-11 | 8.8 kB | |
Install.mk | 2020-05-11 | 829 Bytes | |
instfile.sh | 2020-05-11 | 691 Bytes | |
ius.rc | 2020-05-11 | 988 Bytes | |
ixadm.bod | 2020-05-11 | 2.8 kB | |
ixadm.ins | 2020-05-11 | 1.4 kB | |
ixadm.lst | 2020-05-11 | 6.0 kB | |
ixcheck-cc | 2020-05-11 | 243 Bytes | |
ixcheck-cD | 2020-05-11 | 172 Bytes | |
ixcheck-ce | 2020-05-11 | 170 Bytes | |
ixcheck-cI | 2020-05-11 | 180 Bytes | |
ixcheck-cr | 2020-05-11 | 698 Bytes | |
ixcheck.sh | 2020-05-11 | 1.5 kB | |
ixchkperm.sh | 2020-05-11 | 931 Bytes | |
ixclean.sh | 2020-05-11 | 421 Bytes | |
ixcomp.sh | 2020-05-11 | 368 Bytes | |
ixconfig.sh | 2020-05-11 | 1.0 kB | |
ixcreate.1 | 2020-05-11 | 1.9 kB | |
ixcreate.sh | 2020-05-11 | 6.3 kB | |
ixcrontab.sh | 2020-05-11 | 279 Bytes | |
ixdaily.sh | 2020-05-11 | 275 Bytes | |
ixhourly.sh | 2020-05-11 | 407 Bytes | |
ixmail.sh | 2020-05-11 | 691 Bytes | |
ixmsgpath.sh | 2020-05-11 | 1.7 kB | |
ixremove.1 | 2020-05-11 | 717 Bytes | |
ixremove.sh | 2020-05-11 | 3.0 kB | |
ixrestart.sh | 2020-05-11 | 684 Bytes | |
ixrstmsg.sh | 2020-05-11 | 1.6 kB | |
ixsetperm.sh | 2020-05-11 | 1.4 kB | |
ixstats.sh | 2020-05-11 | 497 Bytes | |
ixwarn.sh | 2020-05-11 | 2.2 kB | |
ixweekly.sh | 2020-05-11 | 310 Bytes | |
ixzero.sh | 2020-05-11 | 305 Bytes | |
jlss.h | 2020-05-11 | 903 Bytes | |
jlss.sh | 2020-05-11 | 10.5 kB | |
Makefile | 2020-05-11 | 916 Bytes | |
mkbod.sh | 2020-05-11 | 1.0 kB | |
mkinfxdir.1 | 2020-05-11 | 2.1 kB | |
mkinfxdir.sh | 2020-05-11 | 2.7 kB | |
mkixcpio.1 | 2020-05-11 | 2.3 kB | |
mkixcpio.sh | 2020-05-11 | 2.2 kB | |
mkpath.sh | 2020-05-11 | 913 Bytes | |
ods.rc | 2020-05-11 | 1.0 kB | |
README.txt | 2020-05-11 | 2.6 kB | |
stderr.c | 2020-05-11 | 3.4 kB | |
stderr.h | 2020-05-11 | 1.6 kB | |
tokenise.c | 2020-05-11 | 2.9 kB | |
unixwarn.sh | 2020-05-11 | 621 Bytes | |
vstrcpy.c | 2020-05-11 | 2.0 kB | |
Totals: 59 Items | 125.7 kB | 0 |
Subject: parsing oncheck output From: johnl@informix.com (Jonathan Leffler) Date: Tue, 17 Jun 1997 11:26:30 -0700 >I've written a short script to run all of the consistency checks >recommended in chapter 31 of the Administrator's Guide: > >[...script deleted...] (I'd say in the interests of brevity if it weren't for the volume of this message:-) >What I'd like to do is run it from crontab and have it mail its output >to a few people. But, oncheck is really verbose! I'd like it to send >mail only if there's an actual problem that someone needs to worry >about. It would be trivial for me to change those backtick calls into >opens of pipes, and have perl parse the output to figure out if it's >worth mailing out. Unfortunately, I have no clue what to look for. >There doesn't seem to be any regular format for what oncheck spews >out, nor is the format of its messages and error indications >documented anywhere that I can find. > >One possible rule might be: > Look for the word "error". Starting with the line that has the word >"error", continue until you reach a blank line. That block of text is >the entire error message for an actual problem. > >If that were true, I could write my script accordingly. It seems like >a plausible rule to me, based on what I've seen of oncheck output so >far, but without documentation I just don't *know*. I don't want to >make a guess that will end up suppressing actual error messages that >we need to see, leading to a false sense of confidence. But I also >don't want to mail out the entire output every day, because people >will stop reading it. > >Can anyone help? Well, I've not tested this code on databases later than about 5.01, but this is an Informix Administration package I put together a few years ago. Don't let the recent dates on the changes fool you; it is rather long-toothed code. It includes ixcheck (a shell script to run oncheck, pretty much as you asked), with a set of sed filters ixcheck-cX where the X is one of the oncheck options. You will probably need to adjust the filters -- let me know about the changes. It is designed to be run by cron; there is an outgoing mail filter which only send non-empty emails. There are also the startup scripts which I use to run ODS and IUS on my machine at boot time, and which take ODS and IUS down when the machine is shutdown gracefully (as opposed to disgracefully just switching it off:-) And there are the current versions of the scripts I use to copy parts of Informix installations around. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>