Skip to main content
SnapCenter 6.0 cmdlets

Set-SmMaintenanceMode

Contributors

Sets a host to maintenance or production mode.

Syntax

Set-SmMaintenanceMode [-HostNames]  <String>  [-MaintenanceStatus]  <SmMaintenanceStatus>

Detailed Description

Sets a host to maintenance or production mode. No scheduled jobs are executed for a host in maintenance mode.

Parameters

Name Description Required? Pipeline Input Default Value

HostNames

The names of the hosts for which you want to change the maintenance mode.

true

true (ByPropertyName)

MaintenanceStatus

Specifies the maintenance status of the specified hosts. The maintenance status is Production or UnderMaintenance.

true

true (ByPropertyName)

Examples

Example 1: Setting a host to production mode

 Set-SmMaintenanceMode -HostNames @("SQL_Host") -MaintenanceStatus Production

This example syntax sets the specified host to production mode.

Example 2: Setting multiple hosts to maintenance mode

 Set-SmMaintenanceMode -HostNames @("SQL_Host", "Verification_Host") -MaintenanceStatus UnderMaintenance

This example syntax sets the specified hosts to maintenance mode.