Monitor jobs, schedules, events, and logs

Contributors netapp-soumikd netapp-asubhas

You can monitor the progress of your jobs, get information about scheduled jobs, and review events and logs from the Monitor page.

Monitor jobs

You can view information about SnapCenter backup, clone, restore, and verification jobs. You can filter this view based on start and end date, type of job, resource group, policy, or SnapCenter plug-in. You can also get additional details and log files for specified jobs.

You can also monitor jobs related to SnapMirror and SnapVault operations.

Note You can monitor only the jobs that you created and that are relevant to you unless you are assigned SnapCenter Admin or another super user role.

You can perform the following tasks related to monitoring jobs:

  • Monitor backup, clone, restore, and verification operations.

  • View job details and reports.

  • Stop a scheduled job.

Monitor schedules

You might want to view current schedules to determine when the operation starts, when it was last run, and when it runs next. You can also determine the host on which the operation runs, along with the operation’s resource group and policy information.

Steps

  1. In the left navigation pane, click Monitor.

  2. In the Monitor page, click Schedules.

  3. Select the resource group and the schedule type.

  4. View the list of scheduled operations.

Monitor events

You can view a list of SnapCenter events in the system, such as when a user creates a resource group or when the system initiates activities, such as creating a scheduled backup. You might want to view events to determine if an operation such as a backup or a restore operation is currently in progress.

About this task

All job information appears in the Events page. For example, when a backup job starts, a “backup start” event appears. When the backup completes, a “backup complete” event appears.

Steps

  1. In the left navigation pane, click Monitor.

  2. In the Monitor page, click Events.

  3. (Optional) In the Filter box, enter the start or end date, category of event (such as backup, resource group, or policy) and severity level, and click Apply. Alternatively, enter characters in the Search box.

  4. View the list of events.

Monitor logs

You can view and download SnapCenter Server logs, SnapCenter host agent logs, and plug-in logs. You might want to view the logs to help with troubleshooting.

About this task

You can filter the logs to show only a specific log severity level:

  • Debug

  • Info

  • Warn

  • Error

  • Fatal

You can also obtain job level logs, for example, logs that help you troubleshoot the reason for a backup job failure. For job level logs, use the Monitor > Jobs option.

Steps

  1. In the left navigation pane, click Monitor.

  2. In the Jobs page, select a job and click Download logs.

    The downloaded zipped folder contains the job logs and the common logs. The zipped folder name contains the job id and job type selected.

  3. In the Monitor page, click Logs.

  4. Select the log type, host, and instance.

    If you select log type as plugin, you can select a host or SnapCenter plug-in. You cannot do this if the log type is server.

  5. To filter the logs by a specific source, message, or log level, click the filter icon at the top of the column heading.

    To show all logs, choose Greater than or equal to as the Debug level.

  6. Click Refresh.

  7. View the list of logs.

  8. Click Download to download the logs.

    The downloaded zipped folder contains the job logs and the common logs. The zipped folder name contains the job id and job type selected.

In large configurations for optimum performance, you should set the log settings for SnapCenter to minimal level by using the PowerShell cmdlet.

Set-SmLogSettings -LogLevel All -MaxFileSize 10MB -MaxSizeRollBackups 10 -JobLogsMaxFileSize 10MB -Server

Note To access health or configuration information after a failover job finishes, run the cmdlet Get-SmRepositoryConfig.

Remove jobs and logs from SnapCenter

You can remove backup, restore, clone, and verification jobs and logs from SnapCenter. SnapCenter stores successful and failed job logs indefinitely unless you remove them. You might want to remove them to replenish storage.

About this task

There must be no jobs currently in operation. You can remove a specific job by providing a Job ID or you can remove jobs within a specified period.

You do not need to place the host in maintenance mode to remove jobs.

Steps

  1. Launch PowerShell.

  2. From the command prompt, enter: Open-SMConnection

  3. From the command prompt, enter: Remove-SmJobs

  4. In the left navigation pane, click Monitor.

  5. In the Monitor page, click Jobs.

  6. In the Jobs page, review the status of the job.

Find more information

The information regarding the parameters that can be used with the cmdlet and their descriptions can be obtained by running Get-Help command_name. Alternatively, you can also refer to the SnapCenter Software Cmdlet Reference Guide.