Hi Patrick,
On Thu, Feb 11, 2021 at 7:27 PM Agrain Patrick
<patrick.agrain(a)al-enterprise.com> wrote:
 Hello,
 I’m trying to setup an analyze procedure (with scripts) and would like to ‘check’ the
dumpfile before starting the interactive mode of ‘crash’.
 Is there a ‘crash’ option, command that would just :
 Return a status to say ‘dumpfile is OK to be processed by crash’. 
This should need to finish session initialization, and
 Display a header that I could parse. 
"help -D" command displays the dumpfile's header.
So I think the exit status and output of this might help, but it takes
some time as you know.
  $ echo 'help -D' | crash -s vmlinux vmcore
Thanks,
Kazu
 Or ?
 Or should I grab directly in the dumpfile (Hmm… kdump-compressed seems not to be easy to
parse) ?
 More possibilities with an ELF formatted dumpfile ?
 Thanks.
 Best regards,
 Patrick Agrain
 --
 Crash-utility mailing list
 Crash-utility(a)redhat.com
 
https://www.redhat.com/mailman/listinfo/crash-utility