No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Huawei Server Maintenance Manual 09

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Collecting OS Logs

Collecting OS Logs

Collect OS logs after an OS fault occurs.

Logs collected by InfoCollect may contain sensitive customer information, for example, bash_history. Obtain written authorization from the customer before using InfoCollect to collect logs and performing maintenance operations.

Table 3-6 describes the methods for collecting logs of different OSs.

Table 3-6 Methods for collecting OS logs

OS

Collection Method

Windows

Use InfoCollect to collect logs of Linux and Windows OSs.

For details, see FusionServer Tools InfoCollect User Guide.

Linux

VMware

  • If the purple screen of death (PSOD) does not occur, perform the following steps:
    1. Log in to the ESX server console as the root user.
    2. Run vm-support to collect all VMware logs.
    3. After collecting the logs, check that a log file in the esxsupport-YYYY-MM-DD@HH-MM-SS.tgz format is generated in the /var/tmp directory.
  • If the PSOD occurs and the customer retains the site environment, perform the following steps:
    1. Capture a screenshot of the PSOD or take a photo to save the displayed information.
    2. Press Alt+F12 to switch to forcible memory information output mode, and press Alt+PageUp/Alt+PageDown to capture screenshots and photos. Ensure that screenshots and photos of the last several screens are captured after the PSOD occurs.
    3. Perform a graceful restart on the system, and run the vm-support command to collect all VMware logs.
    4. After the logs are collected, check that a log file in the esxsupport-YYYY-MM-DD@HH-MM-SS.tgz format is generated in the /var/tmp directory.
  • If the PSOD occurs and the customer gracefully restarts the system, run vm-support to collect all of the VMware logs and check that a log file in the esxsupport-YYYY-MM-DD@HH-MM-SS.tgz format is generated in the /var/tmp directory.

Ubuntu

Log in to the OS CLI over Secure Shell (SSH), and copy all of the files in /var/log/.

Copy the boot.log file and all files prefixed with syslog (for example, syslog and syslog.0), dmesg, and kern in /var/log/ before copying other files.

FreeBSD

Log in to the OS CLI over SSH, and copy all of the files in /var/log/.

Copy the messages file and all files prefixed with messages (for example, messages.0) in /var/log/ before copying other files.

Solaris

Log in to the OS CLI over SSH, and copy all of the files in /var/log/ and /var/adm/.

Copy the syslog file and all files prefixed with syslog (for example, syslog.0) in /var/log/, and copy the messages file and files prefixed with messages (for example, messages.0) in /var/adm/ before copying other files.

Table 3-7 describes the methods for collecting logs of different OSs.

Table 3-7 Methods for collecting OS logs

OS

Collection Method

Linux

Use InfoCollect to collect logs of Linux and Windows. For details, see FusionServer Tools InfoCollect User Guide.

Ubuntu

Log in to the OS CLI over SSH, and copy all files in /var/log/.

Copy the boot.log file and files prefixed with syslog (for example, syslog and syslog.0), dmesg, and kern in /var/log/ before copying other files.

Translation
Download
Updated: 2019-02-25

Document ID: EDOC1000041338

Views: 69625

Downloads: 3772

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next