Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

errlog

Status
Not open for further replies.

voltaire

Technical User
Jul 12, 2001
2
CH
for all experts,

How to re-create errlog @ /usr/lib? i am using errpt but having problem.

 
errclear 0 clears the errpt out........

To terminate the errdemon daemon, enter:
/usr/lib/errstop

To start the error-logging daemon, enter:
/usr/lib/errdemon
errdemon [ [ -B BufferSize ] [ -i File ] [ -s LogSize ] | -l ]
-i File Uses the error log file specified by the File variable. The specified file
name is saved in the error log configuration database and is immediately
put into use.


There are three files in /var/adm/ras that are part of the errlog process
-rw-r--r-- 1 bin bin 197206 Apr 20 09:33 codepoint.cat
-rw-r--r-- 1 root system 47857 Jun 07 16:43 errlog
-r--r--r-- 1 bin bin 110900 May 21 17:01 errtmplt
sometimes if something is really corrupt you can restore them from a mksysb
and then do an errclear...

You can also run errpt -a >> /myerrorlog
then errclear 0
and the log is empty and you still have a copy of the errpt...

You didn't say why you wanted a new log?


I am not sure but I believe if you have no errorlog file when the system is rebooted it is recreated....... but not 100% sure.........
 
you are really a queen - aixqueen.

confirmation:
if errlog is missing in /var/adm/ras/, the system will re-create it once re-booted. i am using aix 4.3.3 and tested it.

but, only got/have these files:

errlog
errtmplt

don't have this file and wondering what's this for:

codepoint.cat

thanks again.

p.s.

i wanted i new log coz our system is online and can't be re-booted anytime, so what we did was copied "errlog" from other machine. tedious, eh?

correction from my original query: "errlog" file is in /var/adm/ras, commands are in /usr/lib.

 

The errinstall command can be used to add messages to the
Codepoint.cat the error log message catalog. It used to be in /var/adm/ras...
Guess it is moved.....

/usr/lib/nls/msg/$LANG/codepoint.cat
Contains the error log message catalog. In
the United States, the value of the $LANG
environment variable is En_US.

I thought it would be automatically recreated. I imagine it would be
recreated if you did a /usr/lib/errstop and then /usr/lib/errdemon

Glad it is fixed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top