Set-SmServerConfig
Updates the SnapCenter Server URL in all or specified plug-in hosts.
Syntax
Set-SmServerConfig [-Credential] <PSCredential> [-UpdateSMSbaseUrlSwitchParameter] <SwitchParameter> [-HostNamesString] <String> [-OverwriteSmsUrlString] <String>
Detailed Description
Updates the SnapCenter Server URL in all or specified plug-in hosts.
Parameters
| Name | Description | Required? | Pipeline Input | Default Value | 
|---|---|---|---|---|
| Credential | Provide user credentials to update SnapCenter Server URL. | true | true (ByPropertyName) | |
| UpdateSMSbaseUrl | Update SnapCenter Server URL. | true | false | |
| HostNames | Specify comma separated host names. | false | false | |
| OverwriteSmsUrl | Overwrites SnapCenter Server URL. | false | false | 
Examples
Example 1: Updating SnapCenter Server URL in all the plug-in hosts
Set-SmServerConfig -Credential sddev\administrator -UpdateSMSbaseUrl
This example updates the SnapCenter Server URL in all the plug-in hosts
Name: Configuring for SnapCenter Server URL
Id  : 21
StartTime   : 9/3/2019 5:25:10 AM
EndTime :
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 0
Description :
Status  : Running
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 38
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  : NONE
HostId  : 0
RoleId  :
JobIds  : {}
Example 2: Updating SnapCenter Server URL in the specified plug-in hosts
Set-SmServerConfig -UpdateSMSbaseUrl -HostNames 10.225.13.94,10.225.13.96
This example updates the SnapCenter Server URL in the specified plug-in hosts.
Name: Configuring for SnapCenter Server URL
Id  : 21
StartTime   : 9/3/2019 5:25:10 AM
EndTime :
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 0
Description :
Status  : Running
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 38
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  : NONE
HostId  : 0
RoleId  :
JobIds  : {}
 PDFs
PDFs