Skip to main content
NetApp Knowledge Base

How to collect SnapCenter database dump (NSM and SC_Quartz MySQL database dump)

Views:
9,750
Visibility:
Public
Votes:
6
Category:
snapcenter
Specialty:
snapx
Last Updated:

Applies to

SnapCenter Server

Description

How to collect SnapCenter database dump (NSM and SC_Quartz MySQL database dump) for further troubleshooting by NetApp

Procedure

Using SnapCenter PowerShell Toolkit (On SnapCenter 5.0 and up):

  1. Log in to the SnapCenter Server via Remote Desktop or Console.
  2. Open a Powershell command :
    • > Open-SmConnection

    • Provide a SnapCenter Admin user and password
  3. Create the Backup :
  4. Navigate to the location and compress the last timestamp folder c:\<yourpatch>\SnapCenter_DR\<SnapCenterhostname.fqdn.com>_<timestamp>

Use Command Line method and use MySqlDump (On all snapcenter version)

  1. Log in to the SnapCenter Server via Remote Desktop or Console.

  2. Open the command prompt with elevated privileges

  3. Change to the folder where MySQL is installed. The default paths are:

    • For versions before SnapCenter 5.0:  "C:\Program Files\MySQL\MySQL Server 5.7\bin

    • For SnapCenter 5.0 and up:  "C:\Program Files\MySQL\MySQL Server 8.0\bin"

  4. Run MySQLDump Command:

    •  Please note the path and the file name specified "C:\nsm.sql" are configurable and an alternate location / file name can be specified
    • Note: The following command will prompt the user for the root password
    • For backing up only the NSM database (all snapcenter versions):

      • > mysqldump.exe --user=root --host=localhost --password --protocol=tcp --port=3306 --default-character-set=utf8 --max_allowed_packet=1G --single-transaction=TRUE "nsm" --result-file "C:\nsm.sql"

    • For backing up both NSM and SC_Quartz databases (SnapCenter 6 and up):

      • > mysqldump.exe --user=root --host=localhost --password --protocol=tcp --port=3306 --default-character-set=utf8 --max_allowed_packet=1G --single-transaction=TRUE --databases "SC_quartz" "nsm" --result-file "C:\combined_dump.sql"

(There is no need to export the NSM database with the --routines --events parameters.)

  1. Compress and Upload the zip file to NetApp to the associated Technical Support Case

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.