How to collect SnapCenter database dump (NSM and SC_Quartz MySQL database dump)
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):
- Log in to the SnapCenter Server via Remote Desktop or Console.
- Open a Powershell command :
-
> Open-SmConnection
- Provide a SnapCenter Admin user and password
-
- Create the Backup :
> New-SmServerBackup -targetpath c:\<yourpath>
- This command will create a folder containing the different config files and MySQL dump of SnapCenter.
- Navigate to the location and compress the last timestamp folder
c
:\<yourpatch>\SnapCenter_DR\<SnapCenterhostname.fqdn.com>_<timestamp>
- Compress and Upload the zip file to NetApp to the associated Technical Support Case
Use Command Line method and use MySqlDump (On all snapcenter version)
-
Log in to the SnapCenter Server via Remote Desktop or Console.
-
Open the command prompt with elevated privileges
-
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"
-
-
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"
-
- Please note the path and the file name specified
(There is no need to export the NSM database with the --routines --events
parameters.)
- Compress and Upload the zip file to NetApp to the associated Technical Support Case