Set-SmServerConfig
Contributors
Suggest changes
Updates the High Availability cluster configuration on the SnapCenter Server and all the plug-in hosts.
Syntax
Set-SmServerConfig [-Credential] <PSCredential> [-UpdateSMSbaseUrlSwitchParameter] <SwitchParameter> [-HostNamesString] <String> [-OverwriteSmsUrlString] <String>
Detailed Description
Updates High Availability cluster configuration on the plug-in hosts. If no hostnames are specified, it will be updated to all the registered hosts.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
Credential |
Provides domain user credentials for the user to update High Availability cluster configuration. |
true |
true (ByPropertyName) |
|
UpdateSMSbaseUrl |
Update SnapCenter Server URL. |
true |
false |
|
HostNames |
Comma separated host names. |
false |
false |
|
OverwriteSmsUrl |
Overwrites the SMSBaseURL. |
false |
false |
Examples
Example 1: Updating High Availability cluster configuration on the SnapCenter Server
Set-SmServerConfig -Credential sddev\administrator -UpdateSMSbaseUrl
This example updates the High Availability cluster configuration on all the plug-in hosts and on the SnapCenter Server.
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 High Availability cluster configuration on the specific hosts
Set-SmServerConfig -UpdateSMSbaseUrl -HostNames 10.225.13.94,10.225.13.96
This example updates the High Availability cluster configuration on the specified 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 : {}