Skip to main content
SnapCenter 5.0 cmdlets

Invoke-SmTechRefreshHost

Contributors

Perform tech refresh of source host with destination host.

Syntax

Invoke-SmTechRefreshHost [-OldHostName]  <String>  [-NewHostName]  <String>  [-IsDryRun]  <Boolean>  [-AutoMigrateManuallyAddedResource]  <Boolean>  [-SQLInstanceMapping]  <Hashtable[]>

Detailed Description

Perform tech refresh of source host with destination host.

Parameters

Name Description Required? Pipeline Input Default Value

OldHostName

Specify the name of source host whose resources needs to be relinked.

true

true (ByPropertyName)

NewHostName

Specify the name of destination host where you want to relink the resources of the source host.

true

true (ByPropertyName)

IsDryRun

Specify whether you want to perform a dry run to find the matching resources without relinking them.

false

true (ByPropertyName)

True

AutoMigrateManuallyAddedResource

Specify whether you want to migrate unmatched manually added resources.

false

true (ByPropertyName)

False

SQLInstanceMapping

Specify the list of SQL instance mapping, if resource is being migrated to another instance on new host.You must provide the instance mapping in a hashtable, and it must contain the OldInstanceName and NewInstanceName. For example,@{"OldInstanceName"="instance1";"NewInstanceName"="instance1_new"},@{"OldInstanceName"="instance2";"NewInstanceName"="instance2_new"} You can include comma-separated values for multiple instance mapping.

false

true (ByPropertyName)

Examples

Example 1: Tech refresh of old host with new host.

 Invoke-SmTechRefreshHost -OldHostName host.mva.gdl.netapp.com -NewHostName hostNew.mva.gdl.netapp.com -IsDryRun 0 -AutoMigrateManuallyAddedResource 1
Initiating host tech refresh..
Name: Tech refresh of host 'host.mva.gdl.netapp.com' with host 'hostNew.mva.gdl.netapp.com'
Id  : 811
StartTime   : 9/11/2023 6:10:43 PM
EndTime : 9/11/2023 6:10:43 PM
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status  : Running
Owner   :
Error   :
Priority: None
Tasks   : {Precheck validation}
ParentJobID : 0
EventId : 0
JobTypeId   : 10
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  : NONE
HostId  : 0
RoleId  :
JobIds  : {}
ScsJobId:
Invoke-SmTechRefreshHost Completed

This example does a tech refresh of old host with new host

Example 2: Tech refresh of old host with new host when SQL resource is migrated from one instance to another

 Invoke-SmTechRefreshHost -OldHostName host.mva.gdl.netapp.com -NewHostName hostNew.mva.gdl.netapp.com -IsDryRun 0 -AutoMigrateManuallyAddedResource 1
-SQLInstanceMapping @{"OldInstanceName"="instance1";"NewInstanceName"="instance1_new"},@{"OldInstanceName"="instance2";"NewInstanceName"="instance2_new"}
Initiating host tech refresh..
Name: Tech refresh of host 'host.mva.gdl.netapp.com' with host 'hostNew.mva.gdl.netapp.com'
Id  : 811
StartTime   : 9/11/2023 6:10:43 PM
EndTime : 9/11/2023 6:10:43 PM
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status  : Running
Owner   :
Error   :
Priority: None
Tasks   : {Precheck validation}
ParentJobID : 0
EventId : 0
JobTypeId   : 10
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  : NONE
HostId  : 0
RoleId  :
JobIds  : {}
ScsJobId:
Invoke-SmTechRefreshHost Completed

This example does a tech refresh of old host with new host