Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

command procedure help

 
Scotty HD
Frequent Advisor

command procedure help

hello,

i am writing a command procedure to analyze crash dumps. to start, i write a procedure to analyze the crash dump, run some command, take output to file. but this not working.

crash.com -
$anal/crash
clue crash
$exit

$@crash.com/out=crash.log

when i run this, it waits in sda> prompt and does not execute the clue crash command in com file.

i dont want to put the commands in a file and run that from inside the crash dump at sda> prompt.

what i want is for the above procedure to open the crash dump, then execute the commands that i have given and take the output to logfile.

Scotty
3 REPLIES
Hein van den Heuvel
Honored Contributor

Re: command procedure help

What version/platform.

It works for me on Alpha 8.3, but some caveats...

1) you may want to provide a crash dump file. If not..

$ cre c.com
$anal/crash 'p1
clue crash
$exit
$ @c
%SDA-F-OPENIN, error opening ...CLUECRASH.DMP; as input
-RMS-E-FNF, file not found

2) do you have privs? if not...

$ dir sys$errorlog:*.dmp
x.DMP;1
$ @c sys$errorlog:x.DMP
%SDA-F-OPENIN, error opening x.DMP; as input
-RMS-E-FNF, file not found
%DCL-W-SKPDAT, image data (records not beginning with "$") ignored
$ set proc/priv=all
$ set veri
$ @c sys$errorlog:x.DMP
$anal/crash SYS$ERRORLOG:x.DMP

OpenVMS system dump analyzer

3) $define/user sys$command sys$input !as needed?

fwiw,
Hein



Ian Miller.
Honored Contributor

Re: command procedure help

See SYS$STARTUP:CLUE$STARTUP.COM
for some hints.
____________________
Purely Personal Opinion
Shael Richmond
Frequent Advisor

Re: command procedure help

This is what I use.

$ ANALYZE/CRASH_DUMP SYS$SYSTEM:SYSDUMP.DMP
COPY SYS$SYSTEM:SAVEDUMP.DMP
SET OUTPUT SYS$SYSTEM:SAVEDUMP.LIS
SHOW CRASH
SHOW STACK/ALL
SHOW SUMMARY
SHOW PROCESS/PCB/PHD/REGISTERS
EXIT