Skip to main content
SnapCenter 6.0 cmdlets

Get-SmSchedule

Contributors

Retrieves the schedule information. This command migrates data from SnapManager to SnapCenter plug-in for SQL Server. (This command works only if there are schedules present for SQL Server in SnapManager.)

Syntax

Get-SmSchedule [-HostName]  <String>  [-DisableCurrentGenSchedule]  <>  [-PluginCode]  <PluginCode>  [-SMSBaseUrl]  <String>

Detailed Description

Retrieve the schedule information based on the host name and the plug-in code.

Parameters

Name Description Required? Pipeline Input Default Value

HostName

true

true (ByPropertyName)

DisableCurrentGenSchedule

false

true (ByPropertyName)

PluginCode

true

true (ByPropertyName)

SMSBaseUrl

false

true (ByPropertyName)

Examples

- Example : Retrieve the schedule information based on the host name and the plug-in code. -

 Get-SmSchedule -HostName windows2016 -PluginCode SCSQL

This example syntax retrieves the schedule information based on the host name and the plug-in code.

Schedule detail for the following Resources :
*****************
Windows2016\INSTANCE1\anu1
Schedule Information :
*****************

ScheduleStatus  : Enabled
Schedule: Backup Schedule
BackupType  : FullBackupAndLogBackup
TaskName: New2
ScheduleType: OneTime
SchedulerType   : WINDOWS
StartTime   : 9/13/2020 11:32:00 PM
EndTime :
DaysInterval:
DaysoftheMonth  :
DaysOfTheWeek   :
IntervalDuration:
MonthlyFrequency:
MonthsofTheYear :
RepeatTask_Every_Hour   :
RepeatTask_Every_Mins   :
SchedulerSQLInstance:
retention   : {SmPSSnapin.GetSmSchedule+Retention, SmPSSnapin.GetSmSchedule+Retention,
  SmPSSnapin.GetSmSchedule+Retention}
verificationsettings: SmPSSnapin.GetSmSchedule+VerificationSettings
hasVerificationSettings : False

Retention Information :
*****************
BackupType : DATA
RetentionCount : 7
RetentionDays  : 0

BackupType : LOG
RetentionCount : 0
RetentionDays  : 7

BackupType : LOG_SNAPSHOT
RetentionCount : 8
RetentionDays  : 0

***********************************************************************************
Schedule detail for the following Resources :
*****************
Windows2016\INSTANCE1\anu1
Schedule Information :
*****************
ScheduleStatus  : Enabled
Schedule: Backup Schedule
BackupType  : FullBackupAndLogBackup
TaskName: NEW6
ScheduleType: OneTime
SchedulerType   : WINDOWS
StartTime   : 9/14/2020 4:52:00 AM
EndTime :
DaysInterval:
DaysoftheMonth  :
DaysOfTheWeek   :
IntervalDuration:
MonthlyFrequency:
MonthsofTheYear :
RepeatTask_Every_Hour   :
RepeatTask_Every_Mins   :
SchedulerSQLInstance:
retention   : {SmPSSnapin.GetSmSchedule+Retention, SmPSSnapin.GetSmSchedule+Retention,
  SmPSSnapin.GetSmSchedule+Retention}
verificationsettings: SmPSSnapin.GetSmSchedule+VerificationSettings
hasVerificationSettings : False

Retention Information :
*****************
BackupType : DATA
RetentionCount : 7
RetentionDays  : 0

BackupType : LOG
RetentionCount : 0
RetentionDays  : 7

BackupType : LOG_SNAPSHOT
RetentionCount : 8
RetentionDays  : 0

***********************************************************************************
Schedule detail for the following Resources :
*****************
Windows2016\INSTANCE1\anu1
Schedule Information :
*****************
ScheduleStatus  : Enabled
Schedule: Backup Schedule
BackupType  : FullBackupAndLogBackup
TaskName: NEW7
ScheduleType: OneTime
SchedulerType   : WINDOWS
StartTime   : 9/14/2020 4:52:00 AM
EndTime :
DaysInterval:
DaysoftheMonth  :
DaysOfTheWeek   :
IntervalDuration:
MonthlyFrequency:
MonthsofTheYear :
RepeatTask_Every_Hour   :
RepeatTask_Every_Mins   :
SchedulerSQLInstance:
retention   : {SmPSSnapin.GetSmSchedule+Retention, SmPSSnapin.GetSmSchedule+Retention,
  SmPSSnapin.GetSmSchedule+Retention}
verificationsettings: SmPSSnapin.GetSmSchedule+VerificationSettings
hasVerificationSettings : False

Retention Information :
*****************
BackupType : DATA
RetentionCount : 7
RetentionDays  : 0

BackupType : LOG
RetentionCount : 0
RetentionDays  : 7

BackupType : LOG_SNAPSHOT
RetentionCount : 8
RetentionDays  : 0

***********************************************************************************