Machine Administration Guide 2.6
Contents Index PreviousNext

Chapter 4 Command Reference

4.21 savelogs (1M)

Name
savelogs - Saves the hardware log information.
Format
/usr/sbin/FJSVmadm/savelogs [-o] [filename]
/usr/sbin/FJSVmadm/savelogs -m[o] [-R root_path] [directory]
/usr/sbin/FJSVmadm/savelogs -r [-R root_path] [directory]
Function
The savelogs command collects and saves hardware information together as data for investigation when a hardware failure occurs. A file is made in the tar format and compressed.
The logs to be saved are:

The savelogs command starts the scferrlog command, updates the SCF error log information, and then saves the information.

Option
The options are:
filename
Specify the name of the file you want to save the collected information in. If no name is specified, the system saves the information in a file with the following file name:
/var/opt/FJSVmadm/tmp/FJSVmadmlogs.tar.Z
directory
Specify the directory to save the collected information to or the directory of the restore source.
If no directory is specified, the system uses the following directory:
/var/opt/FJSVmadm/tmp
-m
Saves the monitoring and setting information for machine administration and remote support.
-o
Unconditionally overwrites a storage file, if the storage file name exists.
The file is not overwritten by default.
-r
Restores the monitoring and setting information for machine administration and remote support.
If the specified directory does not contain the storage file with the monitoring and setting information for machine administration and remote support, an abnormal end results.
-R root_path
Specify the full path name of the directory to use in root_path.
Machine administration saves or restores monitoring and setting information in the boot environment mounted in root_path.
Example of use
The following is an example of saving data in the file used by default.
# /usr/sbin/FJSVmadm/savelogs   

The following is an example of saving data in a file named /tmp/abc001.

# /usr/sbin/FJSVmadm/savelogs /tmp/abc001
End status
The end status can be:
0: Normal end
Other than 0: Error
Related item
scferrlog (1M), prtconf (1M), fjprtdiag (1M), or prtdiag (1M)

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2001-2005
All Rights Reserved, Copyright (C) PFU LIMITED 2001-2005