HP-UX HB v13.00 Ch-15 - Serviceguard
HP-UX Handbook – Rev 13.00 Page 58 (of 108)
Chapter 15 Serviceguard
October 29, 2013
closes frdump.cmcld.9.
Format a dump file to make a readable outfile using this example:
$ /usr/contrib/bin/cmfmtfr frdump.cmcld.0 > /tmp/frdump0_formatted
Use this syntax to identify when the flight recorder file was dumped:
$ grep Dumped /tmp/frdump0.formatted
Dumped time: 2011/04/25 07:59:49
Obtaining Flight Recorder Logs from an HPUX crashdump (SG
A.11.15 and later) using q4
To retrieve SGFR log from a system crash dump, use q4, the HP-UX crash dump analyzer.
Follow these steps:
1. Run q4 on the latest system crash dump stored in /var/adm/crash/.
2. Load the cmfr.pl script (provided with SG in /usr/contrib/lib/Q4) in q4, using the
include command.
q4> include cmfr.pl
3. While in q4, execute DumpFRB to extract the SGFR log buffer from the crash dump and
puts it into an SGFR binary file, dumpfile.
q4> run DumpFRBin dumpfr
4. Quit q4.
5. Apply the cmfmtfr command to convert the SGFR binary file, dumpfile, into readable
form. The output goes to standard output.
# /usr/contrib/bin/cmfmtfr dumpfr
One can also extract the Flight Recorder logs from a SG TOC dump (or INIT on IA64) by using
crashinfo version 3.48 or later. Simply run
# crashinfo -sgfr > fr.out
For more informations about crashinfo see the section titled ‘Tools’
Obtaining Flight Recorder Logs from a cmcld core file (SG A.11.15
and later on HPUX)
1. Run the cmcorefr command thus:
# /usr/contrib/bin/cmcorefr -o dumpfr corefile