Skip to main content
SnapCenter 4.7 cmdlets

Set-SmDomain

Contributors

Modify a domain registered with SnapCenter Server.

Syntax

Set-SmDomain [-Name]  <String>  [-Protocol]  <String>  [-FQDN]  <String>  [-IPAddresses]  <String>  [-DCHostNames]  <String>  [-Credential]  <PSCredential>

Detailed Description

Modify a domain registered with SnapCenter Server.

Parameters

Name Description Required? Pipeline Input Default Value

Name

NETBIOS name of the registered domain to be modified.

true

true (ByPropertyName)

Protocol

Protocol of the domain to be modified.By default the protocol value is LDAP. You can specify LDAPS to use the secured windows active directory communication.

false

true (ByPropertyName)

FQDN

FQDN of the domain to be modified.Used for both LDAP and LDAPS protocol, when you provide the correct FQDN while adding or modifying the domain with LDAP protocol, the domain resolves and the IP address that you might have entered using the IPAddresses parameter is not stored.

false

true (ByPropertyName)

IPAddresses

Domain IP Addresses of the disjoint domain to be modified.When you provide the correct FQDN while adding or modifying the domain, the domain resolves and the IP address is not stored.

false

true (ByPropertyName)

DCHostNames

Domain host name of the disjoint or the same domain to be modified.For LDAPS protocol, DCHostNames is a mandatory parameter. The IP address should resolve and the user should not be permitted to manually provide the IP address.

false

true (ByPropertyName)

Credential

Provides local workgorup administrator credentials to execute a Set-SmDomain cmdlet.This is an optional parameter only can exercise if Open-SmConnection is broken due to Active Directory connectivity using LDAPS protocol.

false

true (ByPropertyName)

Examples

Example 1: Modify a domain registered with SnapCenter Server.

 Set-SmDomain -Name ad12 -FQDN ad12.test.netapp.com -IPAddresses 192.168.0.44
Modified the domain ad12.
Id : 0
Name   : ad12
DomainFQDN : ad12.test.netapp.com
DCHostIPAddresses  : 192.168.0.44
TrustedDomains :
CreatedOn  :
ModifiedOn :
Port   : 389
Protocol   : LDAP
DCHostNames:

Example 2: Modifying a registered domain protocol from LDAP to LDAPS.

 Set-SmDomain -Name ad12 -DCHostNames WS2K12DC.ad12.test.netapp.com -Protocol LDAPS
Modified the domain ad12.
Id : 0
Name   : ad12
DomainFQDN : ad12.test.netapp.com
DCHostIPAddresses  : 192.168.0.44
TrustedDomains :
CreatedOn  :
ModifiedOn :
Port   : 636
Protocol   : LDAPS
DCHostNames: WS2K12DC.ad12.test.netapp.com

Example 3: Modifying a registered domain protocol from LDAPS to LDAP.

 Set-SmDomain -Name ad12
Modified the domain ad12.
Id : 0
Name   : ad12
DomainFQDN : ad12.test.netapp.com
DCHostIPAddresses  :
TrustedDomains :
CreatedOn  :
ModifiedOn :
Port   : 389
Protocol   : LDAP
DCHostNames:

Example 4: Execute Set-SmDomain when Open-SmConnection is broken due to Active directory.

 Set-SmDomain -Name ad12 -FQDN ad12.test.netapp.com -Credential administrator
Modified the domain ad12.
Id : 0
Name   : ad12
DomainFQDN : ad12.test.netapp.com
DCHostIPAddresses  :
TrustedDomains :
CreatedOn  :
ModifiedOn :
Port   : 389
Protocol   : LDAP
DCHostNames: