How to: Collect Logs from NetApp CDOT Array

Collecting logs from your NetApp CDOT Cluster Array provides a vital look in to the health of your CDOT array.

There are several reasons you may want to pull the logs: To determine what recent events occurred in the array in the event of a system error or failure or maybe your support company requested the logs to troubleshoot a problem, among others.

Here is a quick DIY on pulling the logs from your NetApp CDOT cluster:

 

 

 

How-to: Collect Logs on CDOT

ONTAP 8.3+:

  1. Create the .tgz file containing all of the files in the /mroot/etc/log directory (the /mroot/etc/log/stats is excluded). (Use the case number as the first part of the file name.)
    ::> set diag
    ::*> systemshell -node <node-name> -command sudo tar -cvzf /mroot/etc/crash/<case-number>.`hostname`_etc-logs.tar.gz --exclude stats /mroot/etc/logFor example, if the case number is ABCD, and the node is cm-node1, the command will be:
    ::*> systemshell -node cm-node1 -command sudo tar -cvzf /mroot/etc/crash/ABCD.`hostname`_etc-logs.tar.gz --exclude stats /mroot/etc/log
  2. The file can be collected using the cluster’s web interface.
    https://<cluster-mgmt-ip>/spi/<node_name>/etc/crash/
    For example:
    https://10.10.5.50/spi/cm-node1/etc/crash/
    The cluster-mgmt-ip can be obtained by running the following command:
    ::> net int show -role cluster-mgmt
  3. After the file has been copied off the node, ensure the file is deleted:
    ::*> systemshell -node cm-node1 -command sudo rm /mroot/etc/crash/123456789.`hostname`_etc-logs.tar.gz

 

ONTAP 8.2 and earlier:

  1. Access Systemshell of the node using the diag user
    ::> set diag
    ::*> systemshell -node <node_name>
  2. Create the /mroot/etc/crash/support directory if one does not already exist:
    % sudo mkdir /mroot/etc/crash/support
  3. Create the .tgz file containing all of the files in the /mroot/etc/log directory (the /mroot/etc/log/stats is excluded).
    Use the case number as the first part of the to be file name.
    % sudo tar -cvzf /mroot/etc/crash/support/<case-number>.`hostname`_etc-logs.tar.gz --exclude stats /mroot/etc/log
    For example, if the case number is 123456789, the file name will be:
    % sudo tar -cvzf /mroot/etc/crash/support/123456789.`hostname`_etc-logs.tar.gz --exclude stats /mroot/etc/log
  4. The file can be collected using the cluster’s web interface.
    https://<cluster-mgmt-ip>/spi/<node_name>/etc/crash/
    Example:
    https://10.10.5.50/spi/cm-node1/etc/crash/
  5. After the file has been copied off the node, ensure the file is deleted:
    % sudo rm /mroot/etc/crash/support

 

 

 

 

  Related Posts