


_O_n_l_i_n_e _M_a_n_u_a_l        System Manager Commands          savecore(8)



NNNNAAAAMMMMEEEE
     savecore - save a system core dump

SSSSYYYYNNNNTTTTAAAAXXXX
     ////eeeettttcccc////ssssaaaavvvveeeeccccoooorrrreeee [ ----dddd _d_i_s_k ] [ ----uuuu ] _d_i_r_n_a_m_e | _t_a_p_e_n_a_m_e | _h_o_s_t_-
     _n_a_m_e

     ////eeeettttcccc////ssssaaaavvvveeeeccccoooorrrreeee [ ----dddd _d_i_s_k ] ----nnnn

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     _s_a_v_e_c_o_r_e should be called from ////eeeettttcccc////iiiinnnniiiittttttttaaaabbbb when entering
     multi-user mode.  The utility saves the memory dump of the
     system (assuming one was made) and writes a reboot message
     in the shutdown log.

     _d_i_r_n_a_m_e   Names a directory to save dumps.

     _t_a_p_e_n_a_m_e  Names a tape device to receive dumps.

     _h_o_s_t_n_a_m_e  Specifies the system host (as returned from the
               _h_o_s_t_n_a_m_e command) where the _b_f_i process will col-
               lect and save the dump.  This causes a TCP socket
               connection to the remote host.

     ----dddd _d_i_s_k   Specifies the single disk to use as the dump dev-
               ice (the disk to read the dump from).  The name is
               given in the ////ddddeeeevvvv////ddddssss__d_i_s_k form.  With this option,
               _s_a_v_e_c_o_r_e reads any dump from the specified disk,
               else _s_a_v_e_c_o_r_e reads all dumps, on all disks, done
               by itself.

     ----nnnn        Causes _s_a_v_e_c_o_r_e to clear all dumps.

     ----uuuu        Causes _s_a_v_e_c_o_r_e to write an informative message to
               ////uuuussssrrrr////aaaaddddmmmm////wwwwttttmmmmpppp.

     _s_a_v_e_c_o_r_e saves as many dumps as it finds, in files named
     _d_i_r_n_a_m_e////ttttxxxxccccoooorrrreeee....nnnn.  The trailing ``.n'' is replaced by a
     number that is incremented every time _s_a_v_e_c_o_r_e is run in
     that directory.

     Before _s_a_v_e_c_o_r_e writes out a memory image, it ensures that
     at least the minimum free space is available on the filesys-
     tem that contains _d_i_r_n_a_m_e.  The minimum free space is speci-
     fied by a number in the file _d_i_r_n_a_m_e////mmmmiiiinnnnffffrrrreeeeeeee.  If the
     minimum free space is not available, the memory dump is not
     written.  If the mmmmiiiinnnnffffrrrreeeeeeee file does not exist, _s_a_v_e_c_o_r_e
     always writes out the memory file (assuming that a core dump
     was taken).

     If mmmmiiiinnnnffffrrrreeeeeeee exists, we recommend setting it to at least the
     size of physical memory (Kbytes).  For example, mmmmiiiinnnnffffrrrreeeeeeee
     would be 8192 for an 8-Mbyte  system.

     If there is insufficient space in the file system to contain
     the dump, _s_a_v_e_c_o_r_e prints a diagnostic on the console and
     then exits with non-zero status.  The error exit aborts the
     automatic reboot, and the system enters single-user mode.







     The _s_a_v_e_c_o_r_e utility also writes a reboot message in the
     shutdown log.  If the system crashed as a result of a panic,
     _s_a_v_e_c_o_r_e records the panic string in the shutdown log.

FFFFIIIILLLLEEEESSSS
     /usr/adm/shutdownlog     shut down log

SSSSEEEEEEEE AAAALLLLSSSSOOOO
     User Commands (1):  hostname
     File Formats (5):  hosts, voldesc
     System Manager Commands (8):  bfi, crash, mkvol

DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
     DDDDuuuummmmpppp oooommmmiiiitttttttteeeedddd,,,, nnnnooootttt eeeennnnoooouuuugggghhhh ssssppppaaaacccceeee oooonnnn ddddeeeevvvviiiicccceeee
     _s_a_v_e_c_o_r_e prints these diagnostics to the console for tight-
     space conditions.

August 1991                        TX System Manager's Reference










































