1748266 Members
3350 Online
108760 Solutions
New Discussion юеВ

Monitoring bugchecks

 
SOLVED
Go to solution
Wim Van den Wyngaert
Honored Contributor

Monitoring bugchecks

How can I detect that VMS generated a bugcheck that deleted a process (without using diag) ?

Wim
Wim
4 REPLIES 4
Hein van den Heuvel
Honored Contributor

Re: Monitoring bugchecks

ANALYZE/ERROR_LOG/ELV TRANSLATE/INCL=BUG

See example belows.
hth,
Hein.

$ show sys/noproc
OpenVMS V8.3 on node ... 21-JAN-2008 ...
$create cmexec_crash.mar
.psect code,exe,nowrt
.entry start, ^M<>
pushl #0
pushal sub
calls #2, sys$cmexec
ret
.entry sub, ^M<>
clrl 0
ret
.end start
$ macro cmexec_crash
$ link cmexec_crash
$ set proc/priv=(noall,cmexec,tmpmbx)
$ spawn/priv=current run cmexec_crash
%DCL-S-SPAWNED, process HEIN_52036 spawned
%DCL-S-ATTACHED, terminal now attached to process HEIN_52036
%DCL-S-RETURNED, control returned to process HEIN
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=000000000000000C, PC=000000000000000C, PS=7FF9DEBA
$
$ set proc/priv=(noall,read)
$ ANALYZE/ERROR_LOG/ELV TRANSLATE/INCL=BUG
Output file SYS$OUTPUT: created at 21-JAN-2008...
Output for SYS$SYSROOT:[SYSERR]ERRLOG.SYS;1
EVENT EVENT_TYPE__ TIMESTAMP_ NODE_ EVENT_CLASS
4 System Bugcheck 21-JAN-2008....... ...... BUGCHECKS
Wim Van den Wyngaert
Honored Contributor

Re: Monitoring bugchecks

Hein,

I would like to aboid doing the anal/error or diag or ca. Is there a way to find the last bugcheck date very quickly ? Or is there somewhere a counter that increases (e.g. in ana/sys) ?

Wim
Wim
Jur van der Burg
Respected Contributor

Re: Monitoring bugchecks

The only way to get specific info is to retrieve it from errlog.sys. It's not stored anywhere else.

Jur.
Volker Halle
Honored Contributor
Solution

Re: Monitoring bugchecks

Wim,

you could use the unsupported and undocumented $DERLMB (Declare Errlog Mailbox) system service and thus receive errlog entries in a program in realtime.

You would need to decode the received errlog entry and react appropriately, if it's a non-fatal bugcheck.

Volker.